• Vineet Gupta's avatar
    ARC: thp: unbork !CONFIG_TRANSPARENT_HUGEPAGE build · c511eaaa
    Vineet Gupta authored
    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: default avatarVineet Gupta <vgupta@synopsys.com>
    c511eaaa
tlbflush.h 1.76 KB