Skip to content

Commit 34641c6

Browse files
author
Paul Gortmaker
committed
nf_conntrack.h: fix up fallout from implicit moduleparam.h presence
The implicit presence of module.h everywhere meant that this header also was getting moduleparam.h which defines struct kernel_param. Since it only needs to know that kernel_param is a struct, call that out instead of adding an include of moduleparam.h -- to get rid of this: include/net/netfilter/nf_conntrack.h:316: warning: 'struct kernel_param' declared inside parameter list include/net/netfilter/nf_conntrack.h:316: warning: its scope is only this definition or declaration, which is probably not what you want Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
1 parent de47725 commit 34641c6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/net/netfilter/nf_conntrack.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ static inline bool nf_is_loopback_packet(const struct sk_buff *skb)
313313
return skb->dev && skb->skb_iif && skb->dev->flags & IFF_LOOPBACK;
314314
}
315315

316+
struct kernel_param;
317+
316318
extern int nf_conntrack_set_hashsize(const char *val, struct kernel_param *kp);
317319
extern unsigned int nf_conntrack_htable_size;
318320
extern unsigned int nf_conntrack_max;

0 commit comments

Comments
 (0)