public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Dave Jiang <dave.jiang@intel•com>
To: Kees Cook <keescook@google•com>,
	Alexander Kapshuk <alexander.kapshuk@gmail•com>,
	Matthew Wilcox <mawilcox@microsoft•com>,
	Andrew Morton <akpm@linux-foundation•org>
Cc: Linux-Next <linux-next@vger•kernel.org>,
	"x86@kernel•org" <x86@kernel•org>
Subject: Re: redefinition of ‘native_pud_clear’ error on x86
Date: Tue, 14 Feb 2017 12:42:01 -0700	[thread overview]
Message-ID: <32aa9635-c0a1-4085-5ba8-8b41f5cabcbd@intel.com> (raw)
In-Reply-To: <CAGXu5jKpNZNdxPfPKSuE+oAHdXp8Rgv0tD_o-bR=as-N4YaPxQ@mail.gmail.com>



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
> 

      reply	other threads:[~2017-02-14 19:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=32aa9635-c0a1-4085-5ba8-8b41f5cabcbd@intel.com \
    --to=dave.jiang@intel$(echo .)com \
    --cc=akpm@linux-foundation$(echo .)org \
    --cc=alexander.kapshuk@gmail$(echo .)com \
    --cc=keescook@google$(echo .)com \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=mawilcox@microsoft$(echo .)com \
    --cc=x86@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox