Skip to content

Commit

Permalink
cls_cgroup.h netprio_cgroup.h: Remove extern from function prototypes
Browse files Browse the repository at this point in the history
There are a mix of function prototypes with and without extern
in the kernel sources.  Standardize on not using extern for
function prototypes.

Function prototypes don't need to be written with extern.
extern is assumed by the compiler.  Its use is as unnecessary as
using auto to declare automatic/local variables in a block.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Joe Perches authored and David S. Miller committed Aug 1, 2013
1 parent 4fc7074 commit 3783072
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/net/cls_cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct cgroup_cls_state
u32 classid;
};

extern void sock_update_classid(struct sock *sk);
void sock_update_classid(struct sock *sk);

#if IS_BUILTIN(CONFIG_NET_CLS_CGROUP)
static inline u32 task_cls_classid(struct task_struct *p)
Expand Down
2 changes: 1 addition & 1 deletion include/net/netprio_cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct cgroup_netprio_state {
struct cgroup_subsys_state css;
};

extern void sock_update_netprioidx(struct sock *sk);
void sock_update_netprioidx(struct sock *sk);

#if IS_BUILTIN(CONFIG_NETPRIO_CGROUP)

Expand Down

0 comments on commit 3783072

Please sign in to comment.