Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • include
  • net
  • netdev_rx_queue.h
Find file BlameHistoryPermalink
  • Mina Almasry's avatar
    memory-provider: fix compilation issue without SYSFS · 52fa3b65
    Mina Almasry authored Sep 13, 2024
    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 e817f856 ("xdp: generic XDP handling of
    xdp_rxq_info") removed most of the CONFIG_SYSFS ifdefs.
    
    Fixes: 0f921404
    
     ("memory-provider: dmabuf devmem memory provider")
    Cc: Matthieu Baerts (NGI0) <matttbe@kernel.org>
    Signed-off-by: default avatarMina Almasry <almasrymina@google.com>
    Link: https://patch.msgid.link/20240913032824.2117095-1-almasrymina@google.com
    
    
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    52fa3b65
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7