]> git.baikalelectronics.ru Git - kernel.git/commit
rtnl: Add #ifdef CONFIG_RPS around num_rx_queues reference
authorMark A. Greer <mgreer@animalcreek.com>
Fri, 20 Jul 2012 13:35:13 +0000 (13:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jul 2012 19:28:11 +0000 (12:28 -0700)
commit4e7e811193d00e7bb481a7afebf9fd20ea62f52a
tree1d3741024e7a8c4197955e013be318b28e68df72
parent03407fa9c0924d66fcc75f7fdcbefb3e20d8b8af
rtnl: Add #ifdef CONFIG_RPS around num_rx_queues reference

Commit f01949ad6f974e450ad4c019d062ddad3da35de7
(rtnl: allow to specify number of rx and tx queues
on device creation) added a reference to the net_device
structure's 'num_rx_queues' member in

net/core/rtnetlink.c:rtnl_fill_ifinfo()

However, the definition for 'num_rx_queues' is surrounded
by an '#ifdef CONFIG_RPS' while the new reference to it is
not.  This causes a compile error when CONFIG_RPS is not
defined.

Fix the compile error by surrounding the new reference to
'num_rx_queues' by an '#ifdef CONFIG_RPS'.

CC: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c