net: don't include ndisc.h from ipv6.h
Subsystems (11)
Jakub Kicinski
maintainerPATCH 1/1 net: don't include ndisc.h from ipv6.h
Nothing in ipv6.h needs ndisc.h, drop it.
---
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
--- drivers/net/bonding/bond_alb.c | 1 + drivers/net/usb/cdc_mbim.c | 1 + include/net/ipv6.h | 1 - include/net/ipv6_frag.h | 1 + include/net/ndisc.h | 1 - net/6lowpan/core.c | 1 + net/ieee802154/6lowpan/core.c | 1 + net/mctp/device.c | 1 + 8 files changed, 6 insertions(+), 2 deletions(-)
drivers/net/bonding/bond_alb.c +1 -0
@@ -19,6 +19,7 @@#include <linux/in.h> #include <net/arp.h> #include <net/ipv6.h> +#include <net/ndisc.h> #include <asm/byteorder.h> #include <net/bonding.h> #include <net/bond_alb.h>
drivers/net/usb/cdc_mbim.c +1 -0
@@ -21,6 +21,7 @@#include <net/ipv6.h> #include <net/addrconf.h> #include <net/ipv6_stubs.h> +#include <net/ndisc.h> /* alternative VLAN for IP session 0 if not untagged */ #define MBIM_IPS0_VID 4094
include/net/ipv6.h +0 -1
@@ -15,7 +15,6 @@#include <linux/refcount.h> #include <linux/jump_label_ratelimit.h> #include <net/if_inet6.h> -#include <net/ndisc.h> #include <net/flow.h> #include <net/flow_dissector.h> #include <net/snmp.h>
include/net/ipv6_frag.h +1 -0
@@ -1,6 +1,7 @@/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _IPV6_FRAG_H#define _IPV6_FRAG_H +#include <linux/icmpv6.h> #include <linux/kernel.h> #include <net/addrconf.h> #include <net/ipv6.h>
include/net/ndisc.h +0 -1
@@ -71,7 +71,6 @@ do { \struct ctl_table ;struct inet6_dev ; -struct net_device ;struct net_proto_family ;struct sk_buff ;struct prefix_info ;
net/6lowpan/core.c +1 -0
@@ -5,6 +5,7 @@* (C) 2015 Pengutronix, Alexander Aring <[email protected]> */ +#include <linux/if_arp.h> #include <linux/module.h> #include <net/6lowpan.h>
net/ieee802154/6lowpan/core.c +1 -0
@@ -47,6 +47,7 @@#include <linux/module.h> #include <linux/netdevice.h> #include <linux/ieee802154.h> +#include <linux/if_arp.h> #include <net/ipv6.h>
net/mctp/device.c +1 -0
@@ -6,6 +6,7 @@* Copyright (c) 2021 Google */ +#include <linux/if_arp.h> #include <linux/if_link.h> #include <linux/mctp.h> #include <linux/netdevice.h>
Signature · 1 line
2.34.1
Hi Jakub,
Quoted 1 line
Nothing in
ipv6.hneedsndisc.h, drop it.
Looks good, we lose the ARPHRD definitions without ndisc.h, but your change to add if_arp.h addresses that:
Quoted 10 lines
net/mctp/device.c +0
-0@@ -6,6 +6,7 @@* Copyright (c) 2021 Google */
+#include <linux/if_arp.h>
#include <linux/if_link.h>
#include <linux/mctp.h>
#include <linux/netdevice.h>
So, for the net/mctp part:
Cheers,
Jeremy
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=610900
---Test result---
Test Summary:
CheckPatch PASS 2.97 seconds GitLint PASS 0.99 seconds SubjectPrefix FAIL 0.88 seconds BuildKernel PASS 34.97 seconds BuildKernel32 PASS 31.56 seconds Incremental Build with patchesPASS 44.18 seconds TestRunner: Setup PASS 554.52 seconds TestRunner: l2cap-tester PASS 15.40 seconds TestRunner: bnep-tester PASS 6.96 seconds TestRunner: mgmt-tester PASS 116.67 seconds TestRunner: rfcomm-tester PASS 8.70 seconds TestRunner: sco-tester PASS 8.99 seconds TestRunner: smp-tester PASS 8.75 seconds TestRunner: userchan-tester PASS 7.12 seconds
Details
##############################
Test: SubjectPrefix - FAIL - 0.88 seconds
Check subject contains "Bluetooth" prefix
"Bluetooth: " is not specified in the subject
---
Regards,
Linux Bluetooth
Hello.
Quoted 18 lines · Jakub Kicinski
Nothing in
ipv6.hneedsndisc.h, drop it.Signed-off-by Jakub Kicinski <[email protected]>---
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
Quoted 8 lines
--- drivers/net/bonding/bond_alb.c | 1 + drivers/net/usb/cdc_mbim.c | 1 + include/net/ipv6.h | 1 - include/net/ipv6_frag.h | 1 + include/net/ndisc.h | 1 - net/6lowpan/core.c | 1 + net/ieee802154/6lowpan/core.c | 1 +
For ieee802154:
regards
Stefan Schmidt
Quoted 29 lines · Jakub Kicinski
include/net/ipv6.h +0
-1@@ -15,7 +15,6 @@#include <linux/refcount.h> #include <linux/jump_label_ratelimit.h> #include <net/if_inet6.h> -#include <net/ndisc.h> #include <net/flow.h> #include <net/flow_dissector.h> #include <net/snmp.h> include/net/ipv6_frag.h +1
-0@@ -1,6 +1,7 @@/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _IPV6_FRAG_H#define _IPV6_FRAG_H +#include <linux/icmpv6.h> #include <linux/kernel.h> #include <net/addrconf.h> #include <net/ipv6.h> include/net/ndisc.h +0
-0
include/net/ndisc.h do { \ · line 74
Quoted 4 lines
include/net/ndisc.h +0
-1@@ -71,7 +71,6 @@ do { \struct ctl_table ;struct inet6_dev ; -struct net_device ;
ndisc_parse_options references net_device. This part seems unrelated to the patch intent.
Quoted 3 lines
include/net/ndisc.h +0
-0struct net_proto_family ;struct sk_buff ;struct prefix_info ;
Jakub Kicinski
maintainerQuoted 10 lines · On Thu, 3 Feb 2022 15:48:28 -0700 David Ahern wrote:
include/net/ndisc.h do { \ · line 74
Quoted 7 lines
include/net/ndisc.h +0
-1@@ -71,7 +71,6 @@ do { \struct ctl_table ;struct inet6_dev ; -struct net_device ;
ndisc_parse_optionsreferencesnet_device. This part seems unrelated to the patch intent.
Indeed, I'll post v2 with this fixed. The reason was this header includes linux/netdevice.h so the forward declaration is unnecessary.