]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: fix unsued cpu variable
authorJohn Fastabend <john.fastabend@gmail.com>
Tue, 16 Sep 2014 06:30:26 +0000 (23:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Sep 2014 19:59:36 +0000 (15:59 -0400)
commit1db041e93f47768a7e53a509cfee0d51c7e321de
tree894965a07b8077c8c1eaf07d256f6f693709ae75
parent876edb93a1f874e8b67df6c7463f7e84cd746d7a
net: sched: fix unsued cpu variable

kbuild test robot reported an unused variable cpu in cls_u32.c
after the patch below. This happens when PERF and MARK config
variables are disabled

Fix this is to use separate variables for perf and mark
and define the cpu variable inside the ifdef logic.

Fixes: 09dcb288407a ("net: sched: make cls_u32 per cpu")'
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_u32.c