Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 342709ef authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by David S. Miller
Browse files

[NET]: Remove in-code externs for some functions from net/core/dev.c



Inconsistent prototype and real type for functions may have worse
consequences, than those for variables, so move them into a header.

Since they are used privately in net/core, make this file reside in
the same place.

Signed-off-by: default avatarPavel Emelyanov <xemul@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a37ae408
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -120,6 +120,8 @@
#include <linux/ctype.h>
#include <linux/ctype.h>
#include <linux/if_arp.h>
#include <linux/if_arp.h>


#include "net-sysfs.h"

/*
/*
 *	The list of packet types we will receive (as opposed to discard)
 *	The list of packet types we will receive (as opposed to discard)
 *	and the routines to invoke.
 *	and the routines to invoke.
@@ -249,10 +251,6 @@ static RAW_NOTIFIER_HEAD(netdev_chain);


DEFINE_PER_CPU(struct softnet_data, softnet_data);
DEFINE_PER_CPU(struct softnet_data, softnet_data);


extern int netdev_kobject_init(void);
extern int netdev_register_kobject(struct net_device *);
extern void netdev_unregister_kobject(struct net_device *);

#ifdef CONFIG_DEBUG_LOCK_ALLOC
#ifdef CONFIG_DEBUG_LOCK_ALLOC
/*
/*
 * register_netdevice() inits dev->_xmit_lock and sets lockdep class
 * register_netdevice() inits dev->_xmit_lock and sets lockdep class
+2 −0
Original line number Original line Diff line number Diff line
@@ -18,6 +18,8 @@
#include <linux/wireless.h>
#include <linux/wireless.h>
#include <net/iw_handler.h>
#include <net/iw_handler.h>


#include "net-sysfs.h"

#ifdef CONFIG_SYSFS
#ifdef CONFIG_SYSFS
static const char fmt_hex[] = "%#x\n";
static const char fmt_hex[] = "%#x\n";
static const char fmt_long_hex[] = "%#lx\n";
static const char fmt_long_hex[] = "%#lx\n";

net/core/net-sysfs.h

0 → 100644
+8 −0
Original line number Original line Diff line number Diff line
#ifndef __NET_SYSFS_H__
#define __NET_SYSFS_H__

int netdev_kobject_init(void);
int netdev_register_kobject(struct net_device *);
void netdev_unregister_kobject(struct net_device *);

#endif