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
  • scripts
  • kernel-doc
Find file BlameHistoryPermalink
  • Pavan Kumar Linga's avatar
    scripts: kernel-doc: parse DEFINE_DMA_UNMAP_[ADDR|LEN] · be98edcb
    Pavan Kumar Linga authored Aug 15, 2023
    
    
    At present, if the macros DEFINE_DMA_UNMAP_ADDR() and
    DEFINE_DMA_UNMAP_LEN() are used in the structures as shown
    below, instead of parsing the parameter in the parentheses,
    kernel-doc parses 'DEFINE_DMA_UNMAP_ADDR(' and
    'DEFINE_DMA_UNMAP_LEN(' which results in the following
    warnings:
    
    drivers/net/ethernet/intel/idpf/idpf_txrx.h:201: warning: Function
    parameter or member 'DEFINE_DMA_UNMAP_ADDR(dma' not described in
    'idpf_tx_buf'
    drivers/net/ethernet/intel/idpf/idpf_txrx.h:201: warning: Function
    parameter or member 'DEFINE_DMA_UNMAP_LEN(len' not described in
    'idpf_tx_buf'
    
    struct idpf_tx_buf {
    	DEFINE_DMA_UNMAP_ADDR(dma);
    	DEFINE_DMA_UNMAP_LEN(len);
    };
    
    Fix the warnings by parsing DEFINE_DMA_UNMAP_ADDR() and
    DEFINE_DMA_UNMAP_LEN().
    
    Cc: Jonathan Corbet <corbet@lwn.net>
    Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Signed-off-by: default avatarPavan Kumar Linga <pavan.kumar.linga@intel.com>
    Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
    Link: https://lore.kernel.org/r/20230815210417.98749-2-pavan.kumar.linga@intel.com
    be98edcb
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7