]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit80aab73de4a076fc70ad5cc60395d935c40e605d
tree894965a07b8077c8c1eaf07d256f6f693709ae75
parent69301eaa7fdab984c55c227359905fd522dbfc9c
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: 459d5f626da7 ("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