diff options
author | Mina Almasry <[email protected]> | 2024-09-13 03:28:24 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-09-12 21:00:26 -0700 |
commit | 52fa3b6532ec6f3a1e39bf869b304d3560dd983b (patch) | |
tree | 8efb7ffe762abcc0b99e120a2afc1966a7ae1e47 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | b523f23f5c747d83c76b609dd268a76f7ec34975 (diff) |
memory-provider: fix compilation issue without SYSFS
When CONFIG_SYSFS is not set, the kernel fails to compile:
net/core/page_pool_user.c:368:45: error: implicit declaration of function 'get_netdev_rx_queue_index' [-Werror=implicit-function-declaration]
368 | if (pool->slow.queue_idx == get_netdev_rx_queue_index(rxq)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
When CONFIG_SYSFS is not set, get_netdev_rx_queue_index() is not defined
as well.
Fix by removing the ifdef around get_netdev_rx_queue_index(). It is not
needed anymore after commit e817f85652c1 ("xdp: generic XDP handling of
xdp_rxq_info") removed most of the CONFIG_SYSFS ifdefs.
Fixes: 0f9214046893 ("memory-provider: dmabuf devmem memory provider")
Cc: Matthieu Baerts (NGI0) <[email protected]>
Signed-off-by: Mina Almasry <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions