]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix compilation when busy poll is not enabled
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 11 Aug 2017 16:31:24 +0000 (18:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 21:59:24 +0000 (14:59 -0700)
commitae5d1ce0e1bf68b7352f16a618d4743fa3bad64e
tree13006687b3b33d59f0388bfb2347033a6e12ebce
parenta454d001d912e4029d049b59de645c44eff42aac
net: fix compilation when busy poll is not enabled

MIN_NAPI_ID is used in various places outside of
CONFIG_NET_RX_BUSY_POLL wrapping, so when it's not set
we run into build errors such as:

  net/core/dev.c: In function 'dev_get_by_napi_id':
  net/core/dev.c:886:16: error: ‘MIN_NAPI_ID’ undeclared (first use in this function)
    if (napi_id < MIN_NAPI_ID)
                  ^~~~~~~~~~~

Thus, have MIN_NAPI_ID always defined to fix these errors.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/busy_poll.h