]> git.baikalelectronics.ru Git - kernel.git/commit
net: dst: move cpu inside ifdef to avoid compilation warning
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 10 Oct 2017 22:05:39 +0000 (15:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Oct 2017 22:55:58 +0000 (15:55 -0700)
commit557f91d306a1df3692c388de98d08d73abb4563c
tree169563716e6f404fcdf26aca6a2027c0ba44ad87
parenta9e82babdcf491aaab44d81594728002f5854a15
net: dst: move cpu inside ifdef to avoid compilation warning

If CONFIG_DST_CACHE is not selected cpu variable
will be unused and we will see a compilation warning.
Move it under the ifdef.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: af716f8cee5c ("bpf: don't rely on the verifier lock for metadata_dst allocation")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dst.c