Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp240833imp; Thu, 21 Feb 2019 00:06:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IaWUmhqJGp1BrqmHgP9pk/iRnmC/CYxpHv4y5XFznuFnrh5Z/Ljp2BxsVwyW689s214WSOq X-Received: by 2002:a17:902:1022:: with SMTP id b31mr40800850pla.141.1550736359950; Thu, 21 Feb 2019 00:05:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550736359; cv=none; d=google.com; s=arc-20160816; b=EpOzfYd9sKIrtayW5WVXUYjsDTckWcsVE31KrBTzCF3/c8HlVGiKPB+7PKXv45xKdv 5gExYQOb/Bmgywrwcko1biV+hY+A+il3K1TA4k5NuI7IkUV6d7zyw2WWsJ/bfSzAWaZB 4fJF+Y2B6YHmj/vwHmNwuLlep8ZQvplbhr+hl66snGlNGBIkVrpbHDtxB8LAoBKzFhNs cxt3kRahmlmUFKTqIXMnT3d9M7E7HhNbbU5/R6wv+3gUvza4TXaPtP4GdFdGk62i+K8h DF3Mk1pY+7japvxQlbbNBTsUFWWbj1gP0vC6YkAX81OTL3yOcJ0ZfSIYBDJzL7Nkbi00 9KEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=H7LDZ/Bh0Zbl7AKuU4L4LZ1SXkBv9wFLNYD7E33iwBE=; b=Oosa4e2m+oE9NRsb6QPk5GLc32fd5bIx3pqnxFZWBHNtv0yQk1y9Ova4IFhCj3mlCy s/azuPFQ9u+dr4KsA053F8xj0zs/CsVIzw+hVB7JFJZkp3okfBhC0QcWvZWhHCnSwMd9 tExRufPOJCNy1FiVMT4iZi7DfkRQwIdUoag3lAYs37jO9FOz0fwMzJRWtiZjVPnPg7I0 1RCNRGexiwSa2CVop4WZrPR5gq3mgBanjRHZUFgByZXcOGz5PMZjgoy/r8Gi4xUoHMo7 9aUyeU9UsgL9SEEXQFQnw8YEuDs4BWykmGKzE6NPGT6KK/NkEs+ttsvtRictU5o9VkRm fcYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b27si9846188pgb.366.2019.02.21.00.05.44; Thu, 21 Feb 2019 00:05:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727071AbfBUIEH convert rfc822-to-8bit (ORCPT + 99 others); Thu, 21 Feb 2019 03:04:07 -0500 Received: from mail-vs1-f65.google.com ([209.85.217.65]:44824 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbfBUIEH (ORCPT ); Thu, 21 Feb 2019 03:04:07 -0500 Received: by mail-vs1-f65.google.com with SMTP id r201so15619129vsc.11; Thu, 21 Feb 2019 00:04:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=RnKcTm27rROkKZMrhUWWs+Jztu9yzz/K7kE3s9xRNGA=; b=akYSMff7xdaVZmj0HYDcv7418FwPQQOKA+9DfWNAJAzLoQZ+CDih/Ll684yGB/1oWQ 40FD5HZdCwh1+aBFRHt4wzIFxfOGKHaxXgMuKdXX7WcoqNtvgBi06YaRV+j5FDLcEJf9 NCc37rYA9e4cZuIdm70jAUShOZZpGfnXz4Vi/vABkEP6GMRTflQY1AyhbqJTolDo6piy SJTeSNTcp6nsvLzKK6pqkCwTwOhb2/ZUjzNiRTVeXngq9ueNbeQQF+gzl5b6RQqKn/pl 6SXlUf6ToKlktfnlkl73m8/hSMsQWa4tbyaEUlR9cJS3KZ9cL4/C2M59HEbZndHWaIxl m9YA== X-Gm-Message-State: AHQUAubtuhoESFZggMuhQYPAt+yK8q/A60zDEvFpV7/zhuTgMJiY5Msx ypfu7fZ/na9zlTzOxt432ByySEltUV4og92cVGM= X-Received: by 2002:a67:78ce:: with SMTP id t197mr19687673vsc.152.1550736245468; Thu, 21 Feb 2019 00:04:05 -0800 (PST) MIME-Version: 1.0 References: <20190220184341.73bd2084@canb.auug.org.au> <1114b964-8ff8-5632-64d4-e94a9160b998@hisilicon.com> <20190220095252.GA9089@linux.intel.com> <20190220095806.GB9089@linux.intel.com> In-Reply-To: From: Geert Uytterhoeven Date: Thu, 21 Feb 2019 09:03:52 +0100 Message-ID: Subject: Re: linux-next: Tree for Feb 20 To: Zhangshaokun Cc: Ard Biesheuvel , Jarkko Sakkinen , Mimi Zohar , Stephen Rothwell , Linux Next Mailing List , Roberto Sassu , Linux Kernel Mailing List , linux-efi , linux-integrity Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shaokun, On Thu, Feb 21, 2019 at 1:45 AM Zhangshaokun wrote: > On 2019/2/20 18:05, Ard Biesheuvel wrote: > > On Wed, 20 Feb 2019 at 10:58, Jarkko Sakkinen > > 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 > >>> > >>> 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