]> git.karo-electronics.de Git - linux-beck.git/commitdiff
cls_cgroup.h netprio_cgroup.h: Remove extern from function prototypes
authorJoe Perches <joe@perches.com>
Thu, 1 Aug 2013 00:31:39 +0000 (17:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Aug 2013 00:50:02 +0000 (17:50 -0700)
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>
include/net/cls_cgroup.h
include/net/netprio_cgroup.h

index 0fee0617fb7d243728583ee351de284f36aca14a..f55c14510bd60e06930e1f95850b0d9ea6d38649 100644 (file)
@@ -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)
index 50ab8c26ab59b7ebe840e50d6f696d16f32969b8..379dd5db0f2f3d08955a2632c90a0d9633732c31 100644 (file)
@@ -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)