diff options
author | Cong Wang <amwang@redhat.com> | 2013-08-01 05:10:24 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-02 00:10:58 +0200 |
commit | dfcefb0be1231982784df2152213103ad33c1cfd (patch) | |
tree | 70dc6ca20c23745ce7bee67cbe5b1c9e2dd13032 /include/net/busy_poll.h | |
parent | net/mlx4_core: VFs must ignore the enable_64b_cqe_eqe module param (diff) | |
download | linux-dfcefb0be1231982784df2152213103ad33c1cfd.tar.xz linux-dfcefb0be1231982784df2152213103ad33c1cfd.zip |
net: fix a compile error when CONFIG_NET_LL_RX_POLL is not set
When CONFIG_NET_LL_RX_POLL is not set, I got:
net/socket.c: In function ‘sock_poll’:
net/socket.c:1165:4: error: implicit declaration of function ‘sk_busy_loop’ [-Werror=implicit-function-declaration]
Fix this by adding a nop when !CONFIG_NET_LL_RX_POLL.
Cc: Eliezer Tamir <eliezer.tamir@linux.intel.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/busy_poll.h')
-rw-r--r-- | include/net/busy_poll.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/busy_poll.h b/include/net/busy_poll.h index a14339c2985f..6cd8848fec68 100644 --- a/include/net/busy_poll.h +++ b/include/net/busy_poll.h @@ -181,5 +181,10 @@ static inline bool busy_loop_timeout(unsigned long end_time) return true; } +static inline bool sk_busy_loop(struct sock *sk, int nonblock) +{ + return false; +} + #endif /* CONFIG_NET_LL_RX_POLL */ #endif /* _LINUX_NET_BUSY_POLL_H */ |