• Ingo Molnar's avatar
    dma-debug: Fix bug causing build warning · a8fe9ea2
    Ingo Molnar authored
    Stephen Rothwell reported the following build warning:
    
     lib/dma-debug.c: In function 'dma_debug_device_change':
     lib/dma-debug.c:680: warning: 'return' with no value, in function returning non-void
    
    Introduced by commit f797d988
    ("dma-debug: Do not add notifier when dma debugging is disabled").
    
    Return 0 [notify-done] when disabled. (this is standard bus notifier behavior.)
    Signed-off-by: default avatarShaun Ruffell <sruffell@digium.com>
    Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: <stable@kernel.org>
    LKML-Reference: <20091231125624.GA14666@liondog.tnic>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    a8fe9ea2
dma-debug.c 31.5 KB