Skip to content

Commit

Permalink
net: don't include ndisc.h from ipv6.h
Browse files Browse the repository at this point in the history
Nothing in ipv6.h needs ndisc.h, drop it.

Link: https://lore.kernel.org/r/[email protected]
Acked-by: Jeremy Kerr <[email protected]>
Acked-by: Stefan Schmidt <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
kuba-moo committed Feb 4, 2022
1 parent c531ada commit c78b8b2
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/net/bonding/bond_alb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions drivers/net/usb/cdc_mbim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion include/net/ipv6.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions include/net/ipv6_frag.h
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
1 change: 1 addition & 0 deletions net/6lowpan/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* (C) 2015 Pengutronix, Alexander Aring <[email protected]>
*/

#include <linux/if_arp.h>
#include <linux/module.h>

#include <net/6lowpan.h>
Expand Down
1 change: 1 addition & 0 deletions net/ieee802154/6lowpan/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
1 change: 1 addition & 0 deletions net/mctp/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c78b8b2

Please sign in to comment.