Commit 5f10376b authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Paolo Abeni
Browse files

add missing includes and forward declarations to networking includes under linux/

Similarly to a recent include/net/ cleanup, this patch adds
missing includes to networking headers under include/linux.
All these problems are currently masked by the existing users
including the missing dependency before the broken header.

Link: https://lore.kernel.org/all/20220723045755.2676857-1-kuba@kernel.org/

 v1
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20220726215652.158167-1-kuba@kernel.org


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 4158e389
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@

#include <uapi/linux/atm_tcp.h>

struct atm_vcc;
struct module;

struct atm_tcp_ops {
	int (*attach)(struct atm_vcc *vcc,int itf);
+5 −0
Original line number Diff line number Diff line
@@ -3,6 +3,11 @@
#ifndef __TAG_QCA_H
#define __TAG_QCA_H

#include <linux/types.h>

struct dsa_switch;
struct sk_buff;

#define QCA_HDR_LEN	2
#define QCA_HDR_VERSION	0x2

+4 −0
Original line number Diff line number Diff line
@@ -23,6 +23,10 @@

#ifdef __KERNEL__

struct neigh_parms;
struct net_device;
struct sk_buff;

struct hippi_cb {
	__u32	ifield;
};
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@

#include <linux/timer.h>
#include <linux/spinlock.h>
#include <net/net_trackers.h>
#include <uapi/linux/if_eql.h>

typedef struct slave {
+4 −0
Original line number Diff line number Diff line
@@ -2,6 +2,10 @@
#ifndef _LINUX_IF_HSR_H_
#define _LINUX_IF_HSR_H_

#include <linux/types.h>

struct net_device;

/* used to differentiate various protocols */
enum hsr_version {
	HSR_V0 = 0,
Loading