Re: [PATCH] mm/memory.c: Mark wp_huge_pmd() inline to prevent build failure

2017-12-03 Thread Geert Uytterhoeven
On Sun, Dec 3, 2017 at 10:11 PM, Geert Uytterhoeven wrote: > With gcc 4.1.2: > > mm/memory.o: In function `wp_huge_pmd': > memory.c:(.text+0x9b4): undefined reference to `do_huge_pmd_wp_page' > > Interestingly, wp_huge_pmd() is emitted in the assembler output, but >

Re: [PATCH] mm/memory.c: Mark wp_huge_pmd() inline to prevent build failure

2017-12-03 Thread Geert Uytterhoeven
On Sun, Dec 3, 2017 at 10:11 PM, Geert Uytterhoeven wrote: > With gcc 4.1.2: > > mm/memory.o: In function `wp_huge_pmd': > memory.c:(.text+0x9b4): undefined reference to `do_huge_pmd_wp_page' > > Interestingly, wp_huge_pmd() is emitted in the assembler output, but > never called. > >

[PATCH] mm/memory.c: Mark wp_huge_pmd() inline to prevent build failure

2017-12-03 Thread Geert Uytterhoeven
With gcc 4.1.2: mm/memory.o: In function `wp_huge_pmd': memory.c:(.text+0x9b4): undefined reference to `do_huge_pmd_wp_page' Interestingly, wp_huge_pmd() is emitted in the assembler output, but never called. Apparently replacing the call to pmd_write() in __handle_mm_fault() by a call

[PATCH] mm/memory.c: Mark wp_huge_pmd() inline to prevent build failure

2017-12-03 Thread Geert Uytterhoeven
With gcc 4.1.2: mm/memory.o: In function `wp_huge_pmd': memory.c:(.text+0x9b4): undefined reference to `do_huge_pmd_wp_page' Interestingly, wp_huge_pmd() is emitted in the assembler output, but never called. Apparently replacing the call to pmd_write() in __handle_mm_fault() by a call