]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix a compile error when CONFIG_NET_LL_RX_POLL is not set
authorCong Wang <amwang@redhat.com>
Thu, 1 Aug 2013 03:10:24 +0000 (11:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Aug 2013 22:10:58 +0000 (15:10 -0700)
commit0f885e18bc61e7887affd984a6c2a1fb3bf0f7db
tree70dc6ca20c23745ce7bee67cbe5b1c9e2dd13032
parent068461308f1344f96bcc6f8c5e291cebcc939b32
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>
include/net/busy_poll.h