]> xenbits.xensource.com Git - people/julieng/linux-arm.git/commit
include/linux/mmdebug.h: should include linux/bug.h dev
authorJames Morse <james.morse@arm.com>
Mon, 14 Dec 2015 16:31:50 +0000 (16:31 +0000)
committerJulien Grall <julien.grall@citrix.com>
Tue, 15 Dec 2015 13:52:10 +0000 (13:52 +0000)
commitc048692ce9ef01abe8e59ff9603417b82e2d81cb
tree4b69ae7ee47f048924cd8a7dca0b54e2c18cdaeb
parent289a69530d5eb27ee4724ae093c43df39079d381
include/linux/mmdebug.h: should include linux/bug.h

mmdebug.h uses BUILD_BUG_ON_INVALID(), assuming someone else included
linux/bug.h. Include it ourselves.

This saves build-failures such as:
arch/arm64/include/asm/pgtable.h: In function 'set_pte_at':
arch/arm64/include/asm/pgtable.h:281:3: error: implicit declaration of
function 'BUILD_BUG_ON_INVALID' [-Werror=implicit-function-declaration]
   VM_WARN_ONCE(!pte_young(pte),

Fixes: 02602a18c32d7 ("bug: completely remove code generated by disabled VM_BUG_ON()")
Signed-off-by: James Morse <james.morse@arm.com>
include/linux/mmdebug.h