* [PATCH net-next] net: add an empty __netif_set_xps_queue() stab in the !CONFIG_XPS case
@ 2018-08-10 1:04 Andrei Vagin
2018-08-12 17:25 ` kbuild test robot
0 siblings, 1 reply; 2+ messages in thread
From: Andrei Vagin @ 2018-08-10 1:04 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev, Andrei Vagin
From: Andrei Vagin <avagin@gmail.com>
__netif_set_xps_queue() is used in drivers/net/virtio_net.c.
Fixes: 4d99f6602cb5 ("net: allow to call netif_reset_xps_queues() under cpus_read_lock")
Signed-off-by: Andrei Vagin <avagin@gmail.com>
---
include/linux/netdevice.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 282e2e95ad5b..a5e4b0a18f90 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -3406,6 +3406,13 @@ static inline int netif_attrmask_next_and(int n, const unsigned long *src1p,
return n + 1;
}
#else
+static inline int __netif_set_xps_queue(struct net_device *dev,
+ const unsigned long *mask,
+ u16 index, bool is_rxqs_map)
+{
+ return 0;
+}
+
static inline int netif_set_xps_queue(struct net_device *dev,
const struct cpumask *mask,
u16 index)
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH net-next] net: add an empty __netif_set_xps_queue() stab in the !CONFIG_XPS case
2018-08-10 1:04 [PATCH net-next] net: add an empty __netif_set_xps_queue() stab in the !CONFIG_XPS case Andrei Vagin
@ 2018-08-12 17:25 ` kbuild test robot
0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2018-08-12 17:25 UTC (permalink / raw)
To: Andrei Vagin; +Cc: kbuild-all, David S. Miller, netdev, Andrei Vagin
[-- Attachment #1: Type: text/plain, Size: 2264 bytes --]
Hi Andrei,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Andrei-Vagin/net-add-an-empty-__netif_set_xps_queue-stab-in-the-CONFIG_XPS-case/20180813-001123
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
In file included from include/linux/icmpv6.h:13:0,
from include/linux/ipv6.h:86,
from include/net/ipv6.h:16,
from include/linux/sunrpc/clnt.h:28,
from include/linux/nfs_fs.h:32,
from init/do_mounts.c:32:
>> include/linux/netdevice.h:3423:19: error: redefinition of '__netif_set_xps_queue'
static inline int __netif_set_xps_queue(struct net_device *dev,
^~~~~~~~~~~~~~~~~~~~~
include/linux/netdevice.h:3409:19: note: previous definition of '__netif_set_xps_queue' was here
static inline int __netif_set_xps_queue(struct net_device *dev,
^~~~~~~~~~~~~~~~~~~~~
vim +/__netif_set_xps_queue +3423 include/linux/netdevice.h
c9fbb2d2 Krzysztof Kozlowski 2018-08-10 3422
c9fbb2d2 Krzysztof Kozlowski 2018-08-10 @3423 static inline int __netif_set_xps_queue(struct net_device *dev,
c9fbb2d2 Krzysztof Kozlowski 2018-08-10 3424 const unsigned long *mask,
c9fbb2d2 Krzysztof Kozlowski 2018-08-10 3425 u16 index, bool is_rxqs_map)
c9fbb2d2 Krzysztof Kozlowski 2018-08-10 3426 {
c9fbb2d2 Krzysztof Kozlowski 2018-08-10 3427 return 0;
c9fbb2d2 Krzysztof Kozlowski 2018-08-10 3428 }
537c00de Alexander Duyck 2013-01-10 3429 #endif
537c00de Alexander Duyck 2013-01-10 3430
:::::: The code at line 3423 was first introduced by commit
:::::: c9fbb2d25295a566b97d62e6904741e8e1702d83 net: Provide stub for __netif_set_xps_queue if there is no CONFIG_XPS
:::::: TO: Krzysztof Kozlowski <krzk@kernel.org>
:::::: CC: David S. Miller <davem@davemloft.net>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 6369 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-12 20:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-10 1:04 [PATCH net-next] net: add an empty __netif_set_xps_queue() stab in the !CONFIG_XPS case Andrei Vagin
2018-08-12 17:25 ` kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox