Skip to content

Commit

Permalink
ipx: move extern sysctl_ipx_pprop_broadcasting to header file
Browse files Browse the repository at this point in the history
include ipx.h from sysctl_net_ipx.c

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Fabian Frederick authored and David S. Miller committed Oct 27, 2014
1 parent ce25698 commit 5e96d78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions include/net/ipx.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ struct ipxhdr {
struct ipx_address ipx_source __packed;
};

/* From af_ipx.c */
extern int sysctl_ipx_pprop_broadcasting;

static __inline__ struct ipxhdr *ipx_hdr(struct sk_buff *skb)
{
return (struct ipxhdr *)skb_transport_header(skb);
Expand Down
4 changes: 1 addition & 3 deletions net/ipx/sysctl_net_ipx.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
#include <linux/mm.h>
#include <linux/sysctl.h>
#include <net/net_namespace.h>
#include <net/ipx.h>

#ifndef CONFIG_SYSCTL
#error This file should not be compiled without CONFIG_SYSCTL defined
#endif

/* From af_ipx.c */
extern int sysctl_ipx_pprop_broadcasting;

static struct ctl_table ipx_table[] = {
{
.procname = "ipx_pprop_broadcasting",
Expand Down

0 comments on commit 5e96d78

Please sign in to comment.