All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Zhangshaokun <zhangshaokun@hisilicon.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>,
	Mimi Zohar <zohar@linux.ibm.com>,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	Linux Next Mailing List <linux-next@vger.kernel.org>,
	Roberto Sassu <roberto.sassu@huawei.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-efi <linux-efi@vger.kernel.org>,
	linux-integrity <linux-integrity@vger.kernel.org>
Subject: Re: linux-next: Tree for Feb 20
Date: Thu, 21 Feb 2019 09:03:52 +0100	[thread overview]
Message-ID: <CAMuHMdWfbPHv6WBMm7uDdPhbEB-m+bOcYzzYpRe4BfcSNR2pcQ@mail.gmail.com> (raw)
In-Reply-To: <aaac08b0-6366-7b63-d6a7-eea6630ce169@hisilicon.com>

Hi Shaokun,

On Thu, Feb 21, 2019 at 1:45 AM Zhangshaokun <zhangshaokun@hisilicon.com> wrote:
> On 2019/2/20 18:05, Ard Biesheuvel wrote:
> > On Wed, 20 Feb 2019 at 10:58, Jarkko Sakkinen
> > <jarkko.sakkinen@linux.intel.com> wrote:
> >>
> >> On Wed, Feb 20, 2019 at 11:52:52AM +0200, Jarkko Sakkinen wrote:
> >>> On Wed, Feb 20, 2019 at 05:11:15PM +0800, Zhangshaokun wrote:
> >>>> There is a compiler failure on arm64 platform, as follow:
> >>>>
> >>>>   AS      arch/arm64/kvm/hyp.o
> >>>>   CC      kernel/trace/ring_buffer.o
> >>>> In file included from security/integrity/ima/ima_fs.c:30:0:
> >>>> security/integrity/ima/ima.h:176:7: error: redeclaration of enumerator ‘NONE’
> >>>>   hook(NONE)   \
> >>>>        ^
> >>>> security/integrity/ima/ima.h:188:34: note: in definition of macro ‘__ima_hook_enumify’
> >>>>  #define __ima_hook_enumify(ENUM) ENUM,
> >>>>                                   ^
> >>>> security/integrity/ima/ima.h:191:2: note: in expansion of macro ‘__ima_hooks’
> >>>>   __ima_hooks(__ima_hook_enumify)
> >>>>   ^
> >>>> In file included from ./arch/arm64/include/asm/acpi.h:15:0,
> >>>>                  from ./include/acpi/acpi_io.h:7,
> >>>>                  from ./include/linux/acpi.h:47,
> >>>>                  from ./include/linux/tpm.h:26,
> >>>>                  from security/integrity/ima/ima.h:25,
> >>>>                  from security/integrity/ima/ima_fs.c:30:
> >>>> ./include/linux/efi.h:1716:2: note: previous definition of ‘NONE’ was here
> >>>>   NONE,
> >>>>   ^
> >>>> scripts/Makefile.build:276: recipe for target 'security/integrity/ima/ima_fs.o' failed
> >>>> make[3]: *** [security/integrity/ima/ima_fs.o] Error 1
> >>>>
> >>>> I dug it and it is the commit 901615cb916d ("tpm: move tpm_chip definition to include/linux/tpm.h")
> >>>
> >>> This results from a new include in tpm.h:
> >>>
> >>>   #include <linux/acpi.h>
> >>>
> >>> Must be fixed either in include/linux/efi.h or security/integrity/ima.h as
> >>> those files have a name collision. Makes me wonder why neither has taken
> >>> care of prefixing the constants properly.
> >>
> >> Preferably both subsystems should be fixed with proper 'EFI_' and 'IMA_'
> >> prefixes. Defining a constant named as NONE in a non-generic subsystem
> >> (e.g. not part of the core data structures of Linux) and especially
> >> exporting it to include/linux is not too well considered act.
> >>
> >
> > Fixes for this have already been proposed, and should appear in -next shortly
> >
> > The EFI one is here
> > https://mail.google.com/mail/u/0/#label/linux-efi/FMfcgxwBVgrQRjglPkWRqRqVclGgVDnB
> >
>
> Because of no privilege, the website is denied for me. Anyway, it's nice to have been fixed.

Looks like Ard posted a link to a label in his personal gmail mailbox?

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

  reply	other threads:[~2019-02-21  8:04 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-20  7:43 linux-next: Tree for Feb 20 Stephen Rothwell
2019-02-20  9:11 ` Zhangshaokun
2019-02-20  9:52   ` Jarkko Sakkinen
2019-02-20  9:58     ` Jarkko Sakkinen
2019-02-20 10:05       ` Ard Biesheuvel
2019-02-20 12:17         ` Mimi Zohar
2019-02-21  0:43         ` Zhangshaokun
2019-02-21  8:03           ` Geert Uytterhoeven [this message]
2019-02-21  8:42             ` Zhangshaokun
2019-02-21  9:12             ` Ard Biesheuvel
  -- strict thread matches above, loose matches on Subject: below --
2024-02-20  5:13 Stephen Rothwell
2023-02-20  5:39 Stephen Rothwell
2020-02-20  3:44 Stephen Rothwell
2018-02-20  2:44 Stephen Rothwell
2017-02-20  4:57 Stephen Rothwell
2015-02-20  1:59 Stephen Rothwell
2014-02-20  6:58 Stephen Rothwell
2014-02-20  6:58 ` Stephen Rothwell
2013-02-20  6:50 Stephen Rothwell
2013-02-20  6:50 ` Stephen Rothwell
2012-02-20  5:59 Stephen Rothwell
2008-02-20  5:34 Stephen Rothwell
2008-02-20  5:50 ` Greg KH
2008-02-20  5:55   ` David Miller
2008-02-20  6:16   ` Chris Wedgwood
2008-02-20  6:57   ` Stephen Rothwell
2008-02-20  7:49     ` Frank Seidel
2008-02-20  7:46   ` Jeff Garzik
2008-02-20  8:13 ` Adrian Bunk
2008-02-20 14:59 ` James Bottomley
2008-02-20 15:20   ` Stephen Rothwell
2008-02-20 15:56     ` James Bottomley
2008-02-20 15:24   ` Frank Seidel

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=CAMuHMdWfbPHv6WBMm7uDdPhbEB-m+bOcYzzYpRe4BfcSNR2pcQ@mail.gmail.com \
    --to=geert@linux-m68k.org \
    --cc=ard.biesheuvel@linaro.org \
    --cc=jarkko.sakkinen@linux.intel.com \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-integrity@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=roberto.sassu@huawei.com \
    --cc=sfr@canb.auug.org.au \
    --cc=zhangshaokun@hisilicon.com \
    --cc=zohar@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.