Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321971
b: refs/heads/master
c: 77ab8a5
h: refs/heads/master
i:
  321969: 83f100a
  321967: 4e7346c
v: v3
  • Loading branch information
Amerigo Wang authored and David S. Miller committed Aug 14, 2012
1 parent d3c0c6d commit 8f955e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e15c3c2294605f09f9b336b2f3b97086ab4b8145
refs/heads/master: 77ab8a54d9a8dcc4a46484a04133314f33f2aba6
14 changes: 7 additions & 7 deletions trunk/include/linux/netpoll.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static inline void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb)


#ifdef CONFIG_NETPOLL
static inline int netpoll_rx_on(struct sk_buff *skb)
static inline bool netpoll_rx_on(struct sk_buff *skb)
{
struct netpoll_info *npinfo = rcu_dereference_bh(skb->dev->npinfo);

Expand Down Expand Up @@ -125,19 +125,19 @@ static inline void netpoll_poll_unlock(void *have)
}
}

static inline int netpoll_tx_running(struct net_device *dev)
static inline bool netpoll_tx_running(struct net_device *dev)
{
return irqs_disabled();
}

#else
static inline bool netpoll_rx(struct sk_buff *skb)
{
return 0;
return false;
}
static inline int netpoll_rx_on(struct sk_buff *skb)
static inline bool netpoll_rx_on(struct sk_buff *skb)
{
return 0;
return false;
}
static inline int netpoll_receive_skb(struct sk_buff *skb)
{
Expand All @@ -153,9 +153,9 @@ static inline void netpoll_poll_unlock(void *have)
static inline void netpoll_netdev_init(struct net_device *dev)
{
}
static inline int netpoll_tx_running(struct net_device *dev)
static inline bool netpoll_tx_running(struct net_device *dev)
{
return 0;
return false;
}
#endif

Expand Down

0 comments on commit 8f955e3

Please sign in to comment.