Message ID | 20210322113148.3789438-1-olteanv@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 744b8376632208137fe4acc9967b93e2970732a3 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] net: move the ptype_all and ptype_base declarations to include/linux/netdevice.h | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Link |
netdev/fixes_present | success | Link |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Clearly marked for net-next |
netdev/subject_prefix | success | Link |
netdev/cc_maintainers | warning | 1 maintainers not CCed: pabeni@redhat.com |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Link |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 6874 this patch: 6872 |
netdev/kdoc | success | Errors and warnings before: 1 this patch: 1 |
netdev/verify_fixes | success | Link |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 18 lines checked |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 7088 this patch: 7086 |
netdev/header_inline | success | Link |
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Mon, 22 Mar 2021 13:31:48 +0200 you wrote: > From: Vladimir Oltean <vladimir.oltean@nxp.com> > > ptype_all and ptype_base are declared in net/core/dev.c as non-static, > because they are used by net-procfs.c too. However, a "make W=1" build > complains that there was no previous declaration of ptype_all and > ptype_base in a header file, so this way of declaring things constitutes > a violation of coding style. > > [...] Here is the summary with links: - [net-next] net: move the ptype_all and ptype_base declarations to include/linux/netdevice.h https://git.kernel.org/netdev/net-next/c/744b83766322 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 8f003955c485..3f5e27e93972 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -5318,6 +5318,9 @@ do { \ #define PTYPE_HASH_SIZE (16) #define PTYPE_HASH_MASK (PTYPE_HASH_SIZE - 1) +extern struct list_head ptype_all __read_mostly; +extern struct list_head ptype_base[PTYPE_HASH_SIZE] __read_mostly; + extern struct net_device *blackhole_netdev; #endif /* _LINUX_NETDEVICE_H */ diff --git a/net/core/net-procfs.c b/net/core/net-procfs.c index c714e6a9dad4..d8b9dbabd4a4 100644 --- a/net/core/net-procfs.c +++ b/net/core/net-procfs.c @@ -10,9 +10,6 @@ #define get_offset(x) ((x) & ((1 << BUCKET_SPACE) - 1)) #define set_bucket_offset(b, o) ((b) << BUCKET_SPACE | (o)) -extern struct list_head ptype_all __read_mostly; -extern struct list_head ptype_base[PTYPE_HASH_SIZE] __read_mostly; - static inline struct net_device *dev_from_same_bucket(struct seq_file *seq, loff_t *pos) { struct net *net = seq_file_net(seq);