]> git.baikalelectronics.ru Git - kernel.git/commit
net: make xps_needed and xps_rxqs_needed static
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 22 Mar 2021 11:30:19 +0000 (13:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Mar 2021 20:13:55 +0000 (13:13 -0700)
commit5da9ace3405f40d8d93c1b519696f47bc4402318
tree19ffc4abcae9a66fc02e8d123678f1366c04fd7e
parentf5fcca89f59c84a917e6d470258a12eb3244875e
net: make xps_needed and xps_rxqs_needed static

Since their introduction in commit 04157469b7b8 ("net: Use static_key
for XPS maps"), xps_needed and xps_rxqs_needed were never used outside
net/core/dev.c, so I don't really understand why they were exported as
symbols in the first place.

This is needed in order to silence a "make W=1" warning about these
static keys not being declared as static variables, but not having a
previous declaration in a header file nonetheless.

Cc: Amritha Nambiar <amritha.nambiar@intel.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c