net: add missing includes and forward declarations under net/

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>
This commit is contained in:
Jakub Kicinski
2022-07-20 16:57:58 -07:00
committed by David S. Miller
parent 735dbc69ab
commit 949d6b405e
63 changed files with 183 additions and 11 deletions

View 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

View 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"

View 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,

View 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;

View 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))

View 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[] */

View 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];

View File

@@ -8,6 +8,8 @@
#ifndef _DCB_EVENT_H
#define _DCB_EVENT_H
struct notifier_block;
enum dcbevent_notif_type {
DCB_APP_EVENT = 1,
};

View File

@@ -10,6 +10,8 @@
#include <linux/dcbnl.h>
struct net_device;
struct dcb_app_type {
int ifindex;
struct dcb_app app;

View File

@@ -2,6 +2,7 @@
#ifndef _NET_DN_DEV_H
#define _NET_DN_DEV_H
#include <linux/netdevice.h>
struct dn_dev;

View 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[];

View 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

View 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);

View 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);

View 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 */

View 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)
{

View 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;

View 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 {

View 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;
/**

View 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

Some files were not shown because too many files have changed in this diff Show More