ARC: thp: unbork !CONFIG_TRANSPARENT_HUGEPAGE build
authorVineet Gupta <vgupta@synopsys.com>
Thu, 17 Mar 2016 09:30:59 +0000 (15:00 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 17 Mar 2016 10:01:45 +0000 (15:31 +0530)
commitc511eaaa7851cda0657b2d5a401d33cf4dba52ad
treefbc0995cd9b005aabca1a858e975b3d6b35b8aae
parentdf420fd68811c98e2a563e8b6ff7eb04aa9c8141
ARC: thp: unbork !CONFIG_TRANSPARENT_HUGEPAGE build

linux-next for 4.6-rc1 timeline reported ARC build failures !THP

| arch/arc/include/asm/tlbflush.h:29:0: warning: "flush_pmd_tlb_range" redefined [enabled by default]
| arch/arc/include/asm/tlbflush.h:29:0: warning: "flush_pmd_tlb_range" redefined [enabled by default]
| arch/arc/include/asm/tlbflush.h:29:0: warning: "flush_pmd_tlb_range" redefined [enabled by default]

Turns out that commit ("mm/thp/migration: switch from flush_tlb_range
to flush_pmd_tlb_range") triggered the issue while the problem was in
ARC code where THP specific helpers were not guarded with #ifdef.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/tlbflush.h