]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net: add missing includes and forward declarations under net/
authorJakub Kicinski <kuba@kernel.org>
Wed, 20 Jul 2022 23:57:58 +0000 (16:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jul 2022 11:53:22 +0000 (12:53 +0100)
This patch adds missing includes to headers under include/net.
All these problems are currently masked by the existing users
including the missing dependency before the broken header.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
63 files changed:
include/linux/lapb.h
include/net/af_vsock.h
include/net/amt.h
include/net/ax88796.h
include/net/bond_options.h
include/net/codel_qdisc.h
include/net/datalink.h
include/net/dcbevent.h
include/net/dcbnl.h
include/net/dn_dev.h
include/net/dn_fib.h
include/net/dn_neigh.h
include/net/dn_nsp.h
include/net/dn_route.h
include/net/erspan.h
include/net/esp.h
include/net/ethoc.h
include/net/firewire.h
include/net/fq.h
include/net/garp.h
include/net/gtp.h
include/net/gue.h
include/net/hwbm.h
include/net/ila.h
include/net/inet6_connection_sock.h
include/net/inet_common.h
include/net/inet_frag.h
include/net/ip6_route.h
include/net/ipcomp.h
include/net/ipconfig.h
include/net/llc_c_ac.h
include/net/llc_c_st.h
include/net/llc_s_ac.h
include/net/llc_s_ev.h
include/net/mpls_iptunnel.h
include/net/mrp.h
include/net/ncsi.h
include/net/netevent.h
include/net/netns/can.h
include/net/netns/core.h
include/net/netns/generic.h
include/net/netns/ipv4.h
include/net/netns/mctp.h
include/net/netns/mpls.h
include/net/netns/nexthop.h
include/net/netns/sctp.h
include/net/netns/unix.h
include/net/netrom.h
include/net/p8022.h
include/net/phonet/pep.h
include/net/phonet/phonet.h
include/net/phonet/pn_dev.h
include/net/pptp.h
include/net/psnap.h
include/net/regulatory.h
include/net/rose.h
include/net/secure_seq.h
include/net/smc.h
include/net/stp.h
include/net/transp_v6.h
include/net/tun_proto.h
include/net/udplite.h
include/net/xdp_priv.h

index eb56472f23b23011586bc30fa9e4ae0c7c4d4767..b5333f9413dcaad2815af0432fcaed2de3d60c02 100644 (file)
@@ -6,6 +6,11 @@
 #ifndef        LAPB_KERNEL_H
 #define        LAPB_KERNEL_H
 
+#include <linux/skbuff.h>
+#include <linux/timer.h>
+
+struct net_device;
+
 #define        LAPB_OK                 0
 #define        LAPB_BADTOKEN           1
 #define        LAPB_INVALUE            2
index f742e50207fbde4516b5743502d7875573a02fd4..1c53c4c4d88fecc3e0b8e1632b9132f644fea403 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <linux/kernel.h>
 #include <linux/workqueue.h>
+#include <net/sock.h>
 #include <uapi/linux/vm_sockets.h>
 
 #include "vsock_addr.h"
index 08fc30cf2f34c48c8826cd96be07fb7c753580f7..c881bc8b673b3c47200471f9da73cbce4a6d6fd4 100644 (file)
@@ -7,6 +7,9 @@
 
 #include <linux/siphash.h>
 #include <linux/jhash.h>
+#include <linux/netdevice.h>
+#include <net/gro_cells.h>
+#include <net/rtnetlink.h>
 
 enum amt_msg_type {
        AMT_MSG_DISCOVERY = 1,
index 2ed23a3686029a539a6959a85345dc787afc808d..b658471f97f023ecb7eb8af5a866a6d104a2df2e 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __NET_AX88796_PLAT_H
 #define __NET_AX88796_PLAT_H
 
+#include <linux/types.h>
+
 struct sk_buff;
 struct net_device;
 struct platform_device;
index d2aea5cf1e41a64fbafee7b091f6834322901059..69292ecc03257f066f4f614b3f4a5982a3b9a5f1 100644 (file)
@@ -7,6 +7,14 @@
 #ifndef _NET_BOND_OPTIONS_H
 #define _NET_BOND_OPTIONS_H
 
+#include <linux/bits.h>
+#include <linux/limits.h>
+#include <linux/types.h>
+#include <linux/string.h>
+
+struct netlink_ext_ack;
+struct nlattr;
+
 #define BOND_OPT_MAX_NAMELEN 32
 #define BOND_OPT_VALID(opt) ((opt) < BOND_OPT_LAST)
 #define BOND_MODE_ALL_EX(x) (~(x))
index 58b6d0ebea105d2f0ac1016af2b349ddd0216005..7d3d9219f4fee0fea32c0b2322ab130d4338376c 100644 (file)
@@ -49,6 +49,7 @@
  * Implemented on linux by Dave Taht and Eric Dumazet
  */
 
+#include <net/codel.h>
 #include <net/pkt_sched.h>
 
 /* Qdiscs using codel plugin must use codel_skb_cb in their own cb[] */
index d9b7faaa539f22ba375f0212db4fd2225c330a6e..c837ffc7ebf8aa8444be724526d1dd89bfa4973a 100644 (file)
@@ -2,6 +2,13 @@
 #ifndef _NET_INET_DATALINK_H_
 #define _NET_INET_DATALINK_H_
 
+#include <linux/list.h>
+
+struct llc_sap;
+struct net_device;
+struct packet_type;
+struct sk_buff;
+
 struct datalink_proto {
         unsigned char   type[8];
 
index 43e34131a53f1df3b3a88dcd8f06044a58409eac..02700262f71ac045044aa7086fc54f6d611b0650 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef _DCB_EVENT_H
 #define _DCB_EVENT_H
 
+struct notifier_block;
+
 enum dcbevent_notif_type {
        DCB_APP_EVENT = 1,
 };
index e4ad58c4062c29c40addf6430b6f067a2da6fc8e..2b2d86fb3131af7046a87a30885619504ae62d80 100644 (file)
@@ -10,6 +10,8 @@
 
 #include <linux/dcbnl.h>
 
+struct net_device;
+
 struct dcb_app_type {
        int     ifindex;
        struct dcb_app    app;
index 595b4f6c1eb10aa6615f5fa86796b8505035dc87..bec303ea8367965418c1f5f77f85d3518abc22e9 100644 (file)
@@ -2,6 +2,7 @@
 #ifndef _NET_DN_DEV_H
 #define _NET_DN_DEV_H
 
+#include <linux/netdevice.h>
 
 struct dn_dev;
 
index ddd6565957b35e7ee1d051a652a1015d8dc20652..1929a3cd5ebe9cabb5f72073d532de7eafa6dfce 100644 (file)
@@ -4,6 +4,8 @@
 
 #include <linux/netlink.h>
 #include <linux/refcount.h>
+#include <linux/rtnetlink.h>
+#include <net/fib_rules.h>
 
 extern const struct nla_policy rtm_dn_policy[];
 
index 2e3e7793973a8beeae42460986cd28e6111368be..1f7df98bfc33027e3ac1d68c91b241ec4480edca 100644 (file)
@@ -2,6 +2,8 @@
 #ifndef _NET_DN_NEIGH_H
 #define _NET_DN_NEIGH_H
 
+#include <net/neighbour.h>
+
 /*
  * The position of the first two fields of
  * this structure are critical - SJW
index f83932b864a93f9fb21b6c03e50f7c0964818de5..a4a18fee0b7c07b1eb6af90fdfb1638f0c5378e7 100644 (file)
@@ -6,6 +6,12 @@
     
 *******************************************************************************/
 /* dn_nsp.c functions prototyping */
+#include <linux/atomic.h>
+#include <linux/types.h>
+#include <net/sock.h>
+
+struct sk_buff;
+struct sk_buff_head;
 
 void dn_nsp_send_data_ack(struct sock *sk);
 void dn_nsp_send_oth_ack(struct sock *sk);
index 6f1e94ac0bdfcc8011e2e4a105cd3d4c11b51ebc..88c0300236cc246f2434a1cbd5bdd89d455d4b54 100644 (file)
@@ -7,6 +7,9 @@
     
 *******************************************************************************/
 
+#include <linux/types.h>
+#include <net/dst.h>
+
 struct sk_buff *dn_alloc_skb(struct sock *sk, int size, gfp_t pri);
 int dn_route_output_sock(struct dst_entry __rcu **pprt, struct flowidn *,
                         struct sock *sk, int flags);
index 0d9e86bd98934be23d3d699ca421b59754047755..6cb4cbd6a48fe383dce3daa7b031786764b8f76d 100644 (file)
@@ -58,6 +58,9 @@
  * GRE proto ERSPAN type I/II = 0x88BE, type III = 0x22EB
  */
 
+#include <linux/ip.h>
+#include <linux/ipv6.h>
+#include <linux/skbuff.h>
 #include <uapi/linux/erspan.h>
 
 #define ERSPAN_VERSION 0x1     /* ERSPAN type II */
index 9c5637d41d95168052686caf7b3ff51b517e6b9b..322950727dd0a1589042cb3f5ac591d44c7bdfb9 100644 (file)
@@ -5,6 +5,7 @@
 #include <linux/skbuff.h>
 
 struct ip_esp_hdr;
+struct xfrm_state;
 
 static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb)
 {
index 78519ed42ab4d828b029b5cc38e7edceb976562f..73810f3ca49226996116b11fc1a591fccd39153a 100644 (file)
@@ -10,6 +10,9 @@
 #ifndef LINUX_NET_ETHOC_H
 #define LINUX_NET_ETHOC_H 1
 
+#include <linux/if.h>
+#include <linux/types.h>
+
 struct ethoc_platform_data {
        u8 hwaddr[IFHWADDRLEN];
        s8 phy_id;
index 299e5df385524c07d5c97ae5bead51adb3fe3990..2442d645e4123034073a2c63e089e3222934bfe1 100644 (file)
@@ -2,6 +2,8 @@
 #ifndef _NET_FIREWIRE_H
 #define _NET_FIREWIRE_H
 
+#include <linux/types.h>
+
 /* Pseudo L2 address */
 #define FWNET_ALEN     16
 union fwnet_hwaddr {
index 2eccbbd2b55958869a6b8d277a6ae20d3cbc1fe3..07b5aff6ec583923d0fd4992873c2a273d44005c 100644 (file)
@@ -7,6 +7,10 @@
 #ifndef __NET_SCHED_FQ_H
 #define __NET_SCHED_FQ_H
 
+#include <linux/skbuff.h>
+#include <linux/spinlock.h>
+#include <linux/types.h>
+
 struct fq_tin;
 
 /**
index 4d9a0c6a2e5f35caf95727449b898c0f832bb0eb..59a07b171def107eb210b0352cbbdf712d87417d 100644 (file)
@@ -2,6 +2,8 @@
 #ifndef _NET_GARP_H
 #define _NET_GARP_H
 
+#include <linux/if_ether.h>
+#include <linux/types.h>
 #include <net/stp.h>
 
 #define GARP_PROTOCOL_ID       0x1
index c1d6169df331efda79b64e7f5bbc1eebe625be03..2a503f035d18860b93a9b4d8492fae7373198fb1 100644 (file)
@@ -2,6 +2,10 @@
 #ifndef _GTP_H_
 #define _GTP_H_
 
+#include <linux/netdevice.h>
+#include <linux/types.h>
+#include <net/rtnetlink.h>
+
 /* General GTP protocol related definitions. */
 
 #define GTP0_PORT      3386
index e42402f180b75a1b7d9abe8e8548cb1caf76a2e0..dfca298bec9ccd0ee99fb3826d2cc1da2028eb55 100644 (file)
@@ -30,6 +30,9 @@
  * may refer to options placed after this field.
  */
 
+#include <asm/byteorder.h>
+#include <linux/types.h>
+
 struct guehdr {
        union {
                struct {
index c81444611a228e51413fd162a67b2bec44400012..aa495decec35b24a3e64ca5ce56522d5dfcbb4c4 100644 (file)
@@ -2,6 +2,8 @@
 #ifndef _HWBM_H
 #define _HWBM_H
 
+#include <linux/mutex.h>
+
 struct hwbm_pool {
        /* Capacity of the pool */
        int size;
index f98dcd5791b0428796d2d7b5254338544856fbdd..73ebe5eab2720bf057c624bf71a17cd9f76e9a7a 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef _NET_ILA_H
 #define _NET_ILA_H
 
+struct sk_buff;
+
 int ila_xlat_outgoing(struct sk_buff *skb);
 int ila_xlat_incoming(struct sk_buff *skb);
 
index 7392f959a4052b039f73125ea172ea45a139db12..025bd8d3c769abddb835e7645023f401dcdd3b4a 100644 (file)
@@ -11,6 +11,8 @@
 
 #include <linux/types.h>
 
+struct flowi;
+struct flowi6;
 struct request_sock;
 struct sk_buff;
 struct sock;
index cad2a611efde4960b1333499094df94c24708ec3..cec453c18f1d6f79198f1a186ae26d9f4be199da 100644 (file)
@@ -3,6 +3,10 @@
 #define _INET_COMMON_H
 
 #include <linux/indirect_call_wrapper.h>
+#include <linux/net.h>
+#include <linux/netdev_features.h>
+#include <linux/types.h>
+#include <net/sock.h>
 
 extern const struct proto_ops inet_stream_ops;
 extern const struct proto_ops inet_dgram_ops;
@@ -12,6 +16,8 @@ extern const struct proto_ops inet_dgram_ops;
  */
 
 struct msghdr;
+struct net;
+struct page;
 struct sock;
 struct sockaddr;
 struct socket;
index 911ad930867dfb79de4a92a48e80075d236a0958..0b0876610553fca80ca1ce8d53026265b316d052 100644 (file)
@@ -4,6 +4,9 @@
 
 #include <linux/rhashtable-types.h>
 #include <linux/completion.h>
+#include <linux/in6.h>
+#include <linux/rbtree_types.h>
+#include <linux/refcount.h>
 
 /* Per netns frag queues directory */
 struct fqdir {
index ca2d6b60e1eceeb3839f413726fb4f93e1835a0e..035d61d50a989491e061e7e159ab3e313a89d839 100644 (file)
@@ -2,6 +2,16 @@
 #ifndef _NET_IP6_ROUTE_H
 #define _NET_IP6_ROUTE_H
 
+#include <net/addrconf.h>
+#include <net/flow.h>
+#include <net/ip6_fib.h>
+#include <net/sock.h>
+#include <net/lwtunnel.h>
+#include <linux/ip.h>
+#include <linux/ipv6.h>
+#include <linux/route.h>
+#include <net/nexthop.h>
+
 struct route_info {
        __u8                    type;
        __u8                    length;
@@ -19,16 +29,6 @@ struct route_info {
        __u8                    prefix[];       /* 0,8 or 16 */
 };
 
-#include <net/addrconf.h>
-#include <net/flow.h>
-#include <net/ip6_fib.h>
-#include <net/sock.h>
-#include <net/lwtunnel.h>
-#include <linux/ip.h>
-#include <linux/ipv6.h>
-#include <linux/route.h>
-#include <net/nexthop.h>
-
 #define RT6_LOOKUP_F_IFACE             0x00000001
 #define RT6_LOOKUP_F_REACHABLE         0x00000002
 #define RT6_LOOKUP_F_HAS_SADDR         0x00000004
index fee6fc451597929a8294896446437de3627f1655..c31108295079d67fa9ad66840baab315314472c2 100644 (file)
@@ -2,11 +2,13 @@
 #ifndef _NET_IPCOMP_H
 #define _NET_IPCOMP_H
 
+#include <linux/skbuff.h>
 #include <linux/types.h>
 
 #define IPCOMP_SCRATCH_SIZE     65400
 
 struct crypto_comp;
+struct ip_comp_hdr;
 
 struct ipcomp_data {
        u16 threshold;
index e3534299bd2aa12692f0fd1c297e308a62b5de98..8276897d0c2e295ab4044f5a9fa60606818bdcb9 100644 (file)
@@ -7,6 +7,8 @@
 
 /* The following are initdata: */
 
+#include <linux/types.h>
+
 extern int ic_proto_enabled;   /* Protocols enabled (see IC_xxx) */
 extern int ic_set_manually;    /* IPconfig parameters set manually */
 
index e766300b3e993f72ecfbb3c75041e832438616aa..3e1f76786d7ba560aeb12ed381603deb817992cc 100644 (file)
  * Connection state transition actions
  * (Fb = F bit; Pb = P bit; Xb = X bit)
  */
+
+#include <linux/types.h>
+
+struct sk_buff;
+struct sock;
+struct timer_list;
+
 #define LLC_CONN_AC_CLR_REMOTE_BUSY                     1
 #define LLC_CONN_AC_CONN_IND                            2
 #define LLC_CONN_AC_CONN_CONFIRM                        3
index 48f3f891b2f96157b47a8e4bee054f9558c2aef3..53823d61d8b6780a6e6f6fac0130b6abec1c2de6 100644 (file)
  *
  * See the GNU General Public License for more details.
  */
+
+#include <net/llc_c_ac.h>
+#include <net/llc_c_ev.h>
+
 /* Connection component state management */
 /* connection states */
 #define LLC_CONN_OUT_OF_SVC             0      /* prior to allocation */
index a61b98c108ee2c4df241a7d2318249427b686951..f71790305bc96da9bafcd13f624777e7d485df56 100644 (file)
  *
  * See the GNU General Public License for more details.
  */
+
+struct llc_sap;
+struct sk_buff;
+
 /* SAP component actions */
 #define SAP_ACT_UNITDATA_IND   1
 #define SAP_ACT_SEND_UI                2
index 84db3a59ed2880bb4b797fd64ea012beb9136ea1..fb7df1d70af3e9424884adb1f63e63b4ecdd5f8f 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include <linux/skbuff.h>
+#include <net/llc.h>
 
 /* Defines SAP component events */
 /* Types of events (possible values in 'ev->type') */
index 9deb3a3735da0129d13861501db5b1ce070c7ab7..0c71c27979fb396af556eca228b7bff563807aae 100644 (file)
@@ -6,6 +6,9 @@
 #ifndef _NET_MPLS_IPTUNNEL_H
 #define _NET_MPLS_IPTUNNEL_H 1
 
+#include <linux/types.h>
+#include <net/lwtunnel.h>
+
 struct mpls_iptunnel_encap {
        u8      labels;
        u8      ttl_propagate;
index 1c308c034e1a6835cd9e4cf9b2f4069a58060a04..92cd3fb6cf9da5b07992b8b63da7c4faf0002da6 100644 (file)
@@ -2,6 +2,10 @@
 #ifndef _NET_MRP_H
 #define _NET_MRP_H
 
+#include <linux/netdevice.h>
+#include <linux/skbuff.h>
+#include <linux/types.h>
+
 #define MRP_END_MARK           0x0
 
 struct mrp_pdu_hdr {
index fbefe80361eea1f1873e4a4ea60291c35b707051..08a50d9acb0a84df9e4ea3567624354dc1874256 100644 (file)
@@ -2,6 +2,8 @@
 #ifndef __NET_NCSI_H
 #define __NET_NCSI_H
 
+#include <linux/types.h>
+
 /*
  * The NCSI device states seen from external. More NCSI device states are
  * only visible internally (in net/ncsi/internal.h). When the NCSI device
index 4107016c3bb46d3eb6b31dcf16b3a2b76b75b2e9..1be3757a8b7f0c2ef979624301ff8b8e218bb6de 100644 (file)
@@ -14,6 +14,7 @@
 
 struct dst_entry;
 struct neighbour;
+struct notifier_block ;
 
 struct netevent_redirect {
        struct dst_entry *old;
index 52fbd8291a962ac10451bc6c07e6f5c21ab74bec..48b79f7e6236d9b4cf4bd57655f89e161faff05d 100644 (file)
@@ -7,6 +7,7 @@
 #define __NETNS_CAN_H__
 
 #include <linux/spinlock.h>
+#include <linux/timer.h>
 
 struct can_dev_rcv_lists;
 struct can_pkg_stats;
index 388244e315e739a360baa85ea89239068f6426f7..8249060cf5d0063de5295f7a1bc0e3c77f1f90fc 100644 (file)
@@ -2,6 +2,8 @@
 #ifndef __NETNS_CORE_H__
 #define __NETNS_CORE_H__
 
+#include <linux/types.h>
+
 struct ctl_table_header;
 struct prot_inuse;
 
index 8a1ab47c3fb3f9ea9fbadf8c30025a30f27d7eaa..7ce68183f6e180cdf1032e6edc60da00b9aed25a 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/bug.h>
 #include <linux/rcupdate.h>
+#include <net/net_namespace.h>
 
 /*
  * Generic net pointers are to be used by modules to put some private
index ce0cc4e8d8c73f4b903108921281c734c98c38b3..c7320ef356d940aefba708ea98de502253d2b04d 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/uidgid.h>
 #include <net/inet_frag.h>
 #include <linux/rcupdate.h>
+#include <linux/seqlock.h>
 #include <linux/siphash.h>
 
 struct ctl_table_header;
index acedef12a35e817578ad767a647bf8c99b5568d7..1db8f9aaddb4b96f4803df9f30a762f5f88d7f7f 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef __NETNS_MCTP_H__
 #define __NETNS_MCTP_H__
 
+#include <linux/mutex.h>
 #include <linux/types.h>
 
 struct netns_mctp {
index a7bdcfbb0b286aad8fa966c3fd5ac46543c0c7d7..19ad2574b267ca4bb08980cae6ed05bfa0fc20ae 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef __NETNS_MPLS_H__
 #define __NETNS_MPLS_H__
 
+#include <linux/types.h>
+
 struct mpls_route;
 struct ctl_table_header;
 
index 1849e77eb68ab04f9304783e22cff4aff3edeb7f..434239b370141e7a83305cb5a10b1516f2fc1869 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef __NETNS_NEXTHOP_H__
 #define __NETNS_NEXTHOP_H__
 
+#include <linux/notifier.h>
 #include <linux/rbtree.h>
 
 struct netns_nexthop {
index 40240722cdca1461d6be3a5dae5815684a9cea6d..a681147aecd8f917674497fc62c88d349729d335 100644 (file)
@@ -2,6 +2,9 @@
 #ifndef __NETNS_SCTP_H__
 #define __NETNS_SCTP_H__
 
+#include <linux/timer.h>
+#include <net/snmp.h>
+
 struct sock;
 struct proc_dir_entry;
 struct sctp_mib;
index 6f1a33df061d0e8d335663877a44c20bc896a09b..9859d134d5a89c3c65d8faf943eb611b99938f03 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef __NETNS_UNIX_H__
 #define __NETNS_UNIX_H__
 
+#include <linux/spinlock.h>
+
 struct unix_table {
        spinlock_t              *locks;
        struct hlist_head       *buckets;
index 80f15b1c1a489a71479845ae0d077875b1a52f66..f0565a5987d1bfa93e632e21b88b5888352faea1 100644 (file)
@@ -14,6 +14,7 @@
 #include <net/sock.h>
 #include <linux/refcount.h>
 #include <linux/seq_file.h>
+#include <net/ax25.h>
 
 #define        NR_NETWORK_LEN                  15
 #define        NR_TRANSPORT_LEN                5
index c2bacc66bfbc0911e2ca7aff71894570afa53066..b690ffcad66b7814628788cff92b6f6fa9a36b40 100644 (file)
@@ -1,6 +1,11 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 #ifndef _NET_P8022_H
 #define _NET_P8022_H
+
+struct net_device;
+struct packet_type;
+struct sk_buff;
+
 struct datalink_proto *
 register_8022_client(unsigned char type,
                     int (*func)(struct sk_buff *skb,
index 27b1ab5e4e6d3c37a512ff26b17241f364ed8d6f..645dddf5ce77b0eb72948f22bbab93c224442fa8 100644 (file)
@@ -10,6 +10,9 @@
 #ifndef NET_PHONET_PEP_H
 #define NET_PHONET_PEP_H
 
+#include <linux/skbuff.h>
+#include <net/phonet/phonet.h>
+
 struct pep_sock {
        struct pn_sock          pn_sk;
 
index a27bdc6cfeab767a38241041a424921282a561a5..862f1719b523023b7caed1e7439c60c98210ab17 100644 (file)
 #ifndef AF_PHONET_H
 #define AF_PHONET_H
 
+#include <linux/phonet.h>
+#include <linux/skbuff.h>
+#include <net/sock.h>
+
 /*
  * The lower layers may not require more space, ever. Make sure it's
  * enough.
index 05b49d4d2b111697824fed7178f07d3f529bf4be..e9dc8dca5817b8d7b4663b634058473f690fd25f 100644 (file)
 #ifndef PN_DEV_H
 #define PN_DEV_H
 
+#include <linux/list.h>
+#include <linux/mutex.h>
+
+struct net;
+
 struct phonet_device_list {
        struct list_head list;
        struct mutex lock;
index 383e25ca53a7668a335c313bf0b4b5de62c51dab..e63176bdd4c8b976b07973e728a7caeed64625d8 100644 (file)
@@ -2,6 +2,9 @@
 #ifndef _NET_PPTP_H
 #define _NET_PPTP_H
 
+#include <linux/types.h>
+#include <net/gre.h>
+
 #define PPP_LCP_ECHOREQ 0x09
 #define PPP_LCP_ECHOREP 0x0A
 #define SC_RCV_BITS     (SC_RCV_B7_1|SC_RCV_B7_0|SC_RCV_ODDP|SC_RCV_EVNP)
index 7cb0c8ab4171274ff0a44e388df63891f03ba149..88802b0754ad1c91726df12d2ca1b3b1df61d205 100644 (file)
@@ -2,6 +2,11 @@
 #ifndef _NET_PSNAP_H
 #define _NET_PSNAP_H
 
+struct datalink_proto;
+struct sk_buff;
+struct packet_type;
+struct net_device;
+
 struct datalink_proto *
 register_snap_client(const unsigned char *desc,
                     int (*rcvfunc)(struct sk_buff *, struct net_device *,
index 47f06f6f5a67cca76a30d37458ec43ca3ee0efe4..896191f420d50f9c4fd765f388ccaa45850106c2 100644 (file)
@@ -1,3 +1,4 @@
+
 #ifndef __NET_REGULATORY_H
 #define __NET_REGULATORY_H
 /*
@@ -19,6 +20,8 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <linux/ieee80211.h>
+#include <linux/nl80211.h>
 #include <linux/rcupdate.h>
 
 /**
index 0f0a4ce0fee7cc5e125507a8fc3cfb8cb826be73..f192a64ddef23b272d0fdacd9d5c30e03d2bbebd 100644 (file)
@@ -9,6 +9,7 @@
 #define _ROSE_H 
 
 #include <linux/rose.h>
+#include <net/ax25.h>
 #include <net/sock.h>
 
 #define        ROSE_ADDR_LEN                   5
index dac91aa38c5af389648e84971b0ad17947ef844c..21e7fa2a181386a75a36675d4b69bed0383d663d 100644 (file)
@@ -4,6 +4,8 @@
 
 #include <linux/types.h>
 
+struct net;
+
 u64 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport);
 u64 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr,
                               __be16 dport);
index e441aa97ad61b1834f4983d10e15a34a7936f916..37f829d9c6e5c33ffb13deb02bae8705bfdff93c 100644 (file)
 #ifndef _SMC_H
 #define _SMC_H
 
+#include <linux/device.h>
+#include <linux/spinlock.h>
+#include <linux/types.h>
+#include <linux/wait.h>
+
+struct sock;
+
 #define SMC_MAX_PNETID_LEN     16      /* Max. length of PNET id */
 
 struct smc_hashinfo {
index 2914e6d534904ae4ca53c1425f33edb3a9d86bb0..528103fce2c08f15f9b9e94ec08ea6a44906c944 100644 (file)
@@ -2,6 +2,8 @@
 #ifndef _NET_STP_H
 #define _NET_STP_H
 
+#include <linux/if_ether.h>
+
 struct stp_proto {
        unsigned char   group_address[ETH_ALEN];
        void            (*rcv)(const struct stp_proto *, struct sk_buff *,
index da06613c9603a215902a3057ff327b878c1fe953..b830463e3dff04a79a6f8a34c00c462f36e3e4ac 100644 (file)
@@ -3,6 +3,7 @@
 #define _TRANSP_V6_H
 
 #include <net/checksum.h>
+#include <net/sock.h>
 
 /* IPv6 transport protocols */
 extern struct proto rawv6_prot;
@@ -12,6 +13,7 @@ extern struct proto tcpv6_prot;
 extern struct proto pingv6_prot;
 
 struct flowi6;
+struct ipcm6_cookie;
 
 /* extension headers */
 int ipv6_exthdrs_init(void);
index 2ea3deba4c99ce7fe5dece97c5d1e7972f5d1de1..7b0de785290876ac056bceaf66dcfded70d549c8 100644 (file)
@@ -1,7 +1,8 @@
 #ifndef __NET_TUN_PROTO_H
 #define __NET_TUN_PROTO_H
 
-#include <linux/kernel.h>
+#include <linux/if_ether.h>
+#include <linux/types.h>
 
 /* One byte protocol values as defined by VXLAN-GPE and NSH. These will
  * hopefully get a shared IANA registry.
index a3c53110d30b512df225d804d47836a9ee198f22..0143b373602ec547e5f133f9c02ae4e539ecfcfa 100644 (file)
@@ -6,6 +6,7 @@
 #define _UDPLITE_H
 
 #include <net/ip6_checksum.h>
+#include <net/udp.h>
 
 /* UDP-Lite socket options */
 #define UDPLITE_SEND_CSCOV   10 /* sender partial coverage (as sent)      */
index a2d58b1a12e155249964f928f912d17fba26b0a5..c9df68d5f2587acb8f61564c78e410d21eaeb9f6 100644 (file)
@@ -3,6 +3,7 @@
 #define __LINUX_NET_XDP_PRIV_H__
 
 #include <linux/rhashtable.h>
+#include <net/xdp.h>
 
 /* Private to net/core/xdp.c, but used by trace/events/xdp.h */
 struct xdp_mem_allocator {