[NET]: deinline some functions
Several functions are marked inline or forced inline, but it would be better to let the compiler decide. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2de979bd7d
commit
6f05f62971
@@ -1673,7 +1673,7 @@ static void net_tx_action(struct softirq_action *h)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline__ int deliver_skb(struct sk_buff *skb,
|
static inline int deliver_skb(struct sk_buff *skb,
|
||||||
struct packet_type *pt_prev,
|
struct packet_type *pt_prev,
|
||||||
struct net_device *orig_dev)
|
struct net_device *orig_dev)
|
||||||
{
|
{
|
||||||
@@ -2065,7 +2065,7 @@ static int dev_ifconf(char __user *arg)
|
|||||||
* This is invoked by the /proc filesystem handler to display a device
|
* This is invoked by the /proc filesystem handler to display a device
|
||||||
* in detail.
|
* in detail.
|
||||||
*/
|
*/
|
||||||
static __inline__ struct net_device *dev_get_idx(loff_t pos)
|
static struct net_device *dev_get_idx(loff_t pos)
|
||||||
{
|
{
|
||||||
struct net_device *dev;
|
struct net_device *dev;
|
||||||
loff_t i;
|
loff_t i;
|
||||||
@@ -2836,7 +2836,7 @@ static int dev_boot_phase = 1;
|
|||||||
static DEFINE_SPINLOCK(net_todo_list_lock);
|
static DEFINE_SPINLOCK(net_todo_list_lock);
|
||||||
static struct list_head net_todo_list = LIST_HEAD_INIT(net_todo_list);
|
static struct list_head net_todo_list = LIST_HEAD_INIT(net_todo_list);
|
||||||
|
|
||||||
static inline void net_set_todo(struct net_device *dev)
|
static void net_set_todo(struct net_device *dev)
|
||||||
{
|
{
|
||||||
spin_lock(&net_todo_list_lock);
|
spin_lock(&net_todo_list_lock);
|
||||||
list_add_tail(&dev->todo_list, &net_todo_list);
|
list_add_tail(&dev->todo_list, &net_todo_list);
|
||||||
|
Reference in New Issue
Block a user