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
  • linux
  • lib
  • dma-debug.c
Find file BlameHistoryPermalink
  • Shuah Khan's avatar
    dma-debug: fix to not have dependency on get_dma_ops() interface · bfe0fb0f
    Shuah Khan authored Nov 03, 2012
    dma-debug depends on get_dma_ops() interface. Several architectures
    do not define dma_ops and get_dma_ops(). When dma debug interfaces are
    used on an architecture (e.g: c6x) that doesn't define get_dmap_ops(),
    compilation fails. Changing dma-debug to call dma_mapping_error() instead
    of defining its own that calls get_dma_ops(), such that the internal use of
    dma_mapping_error() doesn't interfere with the debug_dma_mapping_error()
    interface's mapping error checks. Moving dma_mapping_error() checks in
    check_unmap() under the dma debug entry not found is sufficient to fix the
    problem.
    
    Reference: https://lkml.org/lkml/2012/10/26/367
    
    
    
    Signed-off-by: default avatarShuah Khan <shuah.khan@hp.com>
    Reported-by: default avatarMark Salter <msalter@redhat.com>
    Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
    bfe0fb0f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7