mm,thp: reduce ifdef'ery for THP in generic code
authorVineet Gupta <vgupta@synopsys.com>
Thu, 9 Jul 2015 11:52:44 +0000 (17:22 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Sat, 17 Oct 2015 12:18:20 +0000 (17:48 +0530)
commitbd5e88ad72b26ebf7ecb231bc22ceecd6cbdb951
treecb9da0478c769d706cec2e9fbd140172e05b5366
parent52585bcc2505d6f888d4ac68ca6c55f6d1ad736a
mm,thp: reduce ifdef'ery for THP in generic code

- pgtable-generic.c: Fold individual #ifdef for each helper into a top
  level #ifdef. Makes code more readable

- Converted the stub helpers for !THP to BUILD_BUG() vs. runtime BUG()

Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Link: http://lkml.kernel.org/r/20151009133450.GA8597@node
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
include/asm-generic/pgtable.h
mm/pgtable-generic.c