]> Git Repo - linux.git/commit - include/linux/mmdebug.h
bug: completely remove code generated by disabled VM_BUG_ON()
authorKonstantin Khlebnikov <[email protected]>
Tue, 29 May 2012 22:06:28 +0000 (15:06 -0700)
committerLinus Torvalds <[email protected]>
Tue, 29 May 2012 23:22:20 +0000 (16:22 -0700)
commit02602a18c32d76f0e0f50eefa91b2d53c8a3a751
tree64a2645d05cd57731e7d2f5bd0ef390de8b5e76b
parentbaf05aa9271bdbc07d3160035a231abc5fbd429a
bug: completely remove code generated by disabled VM_BUG_ON()

Even if CONFIG_DEBUG_VM=n gcc genereates code for some VM_BUG_ON()

for example VM_BUG_ON(!PageCompound(page) || !PageHead(page)); in
do_huge_pmd_wp_page() generates 114 bytes of code.

But they mostly disappears when I split this VM_BUG_ON into two:

  -VM_BUG_ON(!PageCompound(page) || !PageHead(page));
  +VM_BUG_ON(!PageCompound(page));
  +VM_BUG_ON(!PageHead(page));

weird... but anyway after this patch code disappears completely.

  add/remove: 0/0 grow/shrink: 7/97 up/down: 135/-1784 (-1649)

Signed-off-by: Konstantin Khlebnikov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Cong Wang <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/mmdebug.h
This page took 0.054858 seconds and 4 git commands to generate.