* redefinition of ‘native_pud_clear’ error on x86
@ 2017-02-14 16:14 Alexander Kapshuk
2017-02-14 19:31 ` Kees Cook
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kapshuk @ 2017-02-14 16:14 UTC (permalink / raw)
To: linux-next
I'm getting this error on x86 when compiling next-20170214.
Any advice on how to fix this would be much appreciated.
time make -j2
...
CC arch/x86/kernel/asm-offsets.s
GEN scripts/gdb/linux/constants.py
In file included from ./include/linux/mm.h:68:0,
from ./include/linux/suspend.h:8,
from arch/x86/kernel/asm-offsets.c:12:
./arch/x86/include/asm/pgtable.h:66:26: error: redefinition of
‘native_pud_clear’
#define pud_clear(pud) native_pud_clear(pud)
^
./arch/x86/include/asm/pgtable-3level.h:128:20: note: in expansion of
macro ‘pud_clear’
static inline void pud_clear(pud_t *pudp)
^
In file included from ./arch/x86/include/asm/pgtable_32.h:44:0,
from ./arch/x86/include/asm/pgtable.h:581,
from ./include/linux/mm.h:68,
from ./include/linux/suspend.h:8,
from arch/x86/kernel/asm-offsets.c:12:
./arch/x86/include/asm/pgtable-3level.h:124:20: note: previous
definition of ‘native_pud_clear’ was here
static inline void native_pud_clear(pud_t *pudp)
^
make[1]: *** [Kbuild:82: arch/x86/kernel/asm-offsets.s] Error 1
make: *** [Makefile:1033: prepare0] Error 2
real 0m10.637s
user 0m9.466s
sys 0m2.752s
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: redefinition of ‘native_pud_clear’ error on x86
2017-02-14 16:14 redefinition of ‘native_pud_clear’ error on x86 Alexander Kapshuk
@ 2017-02-14 19:31 ` Kees Cook
2017-02-14 19:42 ` Dave Jiang
0 siblings, 1 reply; 3+ messages in thread
From: Kees Cook @ 2017-02-14 19:31 UTC (permalink / raw)
To: Alexander Kapshuk, Matthew Wilcox, Dave Jiang, Andrew Morton
Cc: Linux-Next, x86@kernel•org
On Tue, Feb 14, 2017 at 8:14 AM, Alexander Kapshuk
<alexander.kapshuk@gmail•com> wrote:
> I'm getting this error on x86 when compiling next-20170214.
> Any advice on how to fix this would be much appreciated.
>
> time make -j2
> ...
> CC arch/x86/kernel/asm-offsets.s
> GEN scripts/gdb/linux/constants.py
> In file included from ./include/linux/mm.h:68:0,
> from ./include/linux/suspend.h:8,
> from arch/x86/kernel/asm-offsets.c:12:
> ./arch/x86/include/asm/pgtable.h:66:26: error: redefinition of
> ‘native_pud_clear’
> #define pud_clear(pud) native_pud_clear(pud)
> ^
> ./arch/x86/include/asm/pgtable-3level.h:128:20: note: in expansion of
> macro ‘pud_clear’
> static inline void pud_clear(pud_t *pudp)
> ^
> In file included from ./arch/x86/include/asm/pgtable_32.h:44:0,
> from ./arch/x86/include/asm/pgtable.h:581,
> from ./include/linux/mm.h:68,
> from ./include/linux/suspend.h:8,
> from arch/x86/kernel/asm-offsets.c:12:
> ./arch/x86/include/asm/pgtable-3level.h:124:20: note: previous
> definition of ‘native_pud_clear’ was here
> static inline void native_pud_clear(pud_t *pudp)
> ^
> make[1]: *** [Kbuild:82: arch/x86/kernel/asm-offsets.s] Error 1
> make: *** [Makefile:1033: prepare0] Error 2
>
> real 0m10.637s
> user 0m9.466s
> sys 0m2.752s
Seems like it's related to "mm, x86: add support for PUD-sized
transparent hugepages".
-Kees
--
Kees Cook
Pixel Security
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: redefinition of ‘native_pud_clear’ error on x86
2017-02-14 19:31 ` Kees Cook
@ 2017-02-14 19:42 ` Dave Jiang
0 siblings, 0 replies; 3+ messages in thread
From: Dave Jiang @ 2017-02-14 19:42 UTC (permalink / raw)
To: Kees Cook, Alexander Kapshuk, Matthew Wilcox, Andrew Morton
Cc: Linux-Next, x86@kernel•org
On 02/14/2017 12:31 PM, Kees Cook wrote:
> On Tue, Feb 14, 2017 at 8:14 AM, Alexander Kapshuk
> <alexander.kapshuk@gmail•com> wrote:
>> I'm getting this error on x86 when compiling next-20170214.
>> Any advice on how to fix this would be much appreciated.
>>
>> time make -j2
>> ...
>> CC arch/x86/kernel/asm-offsets.s
>> GEN scripts/gdb/linux/constants.py
>> In file included from ./include/linux/mm.h:68:0,
>> from ./include/linux/suspend.h:8,
>> from arch/x86/kernel/asm-offsets.c:12:
>> ./arch/x86/include/asm/pgtable.h:66:26: error: redefinition of
>> ‘native_pud_clear’
>> #define pud_clear(pud) native_pud_clear(pud)
>> ^
>> ./arch/x86/include/asm/pgtable-3level.h:128:20: note: in expansion of
>> macro ‘pud_clear’
>> static inline void pud_clear(pud_t *pudp)
>> ^
>> In file included from ./arch/x86/include/asm/pgtable_32.h:44:0,
>> from ./arch/x86/include/asm/pgtable.h:581,
>> from ./include/linux/mm.h:68,
>> from ./include/linux/suspend.h:8,
>> from arch/x86/kernel/asm-offsets.c:12:
>> ./arch/x86/include/asm/pgtable-3level.h:124:20: note: previous
>> definition of ‘native_pud_clear’ was here
>> static inline void native_pud_clear(pud_t *pudp)
>> ^
>> make[1]: *** [Kbuild:82: arch/x86/kernel/asm-offsets.s] Error 1
>> make: *** [Makefile:1033: prepare0] Error 2
>>
>> real 0m10.637s
>> user 0m9.466s
>> sys 0m2.752s
>
> Seems like it's related to "mm, x86: add support for PUD-sized
> transparent hugepages".
Can I please get a config file to reproduce? Thanks!
>
> -Kees
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-02-14 19:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-14 16:14 redefinition of ‘native_pud_clear’ error on x86 Alexander Kapshuk
2017-02-14 19:31 ` Kees Cook
2017-02-14 19:42 ` Dave Jiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox