Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp285891imp; Thu, 21 Feb 2019 01:14:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IafvfzPwREx+FcPzTgxga50DqOw1gP3X+RRkM+3SkwtPV8Ej/t5/S9W7Zq40tPyTmGhWHQ6 X-Received: by 2002:a17:902:ea8c:: with SMTP id cv12mr17675560plb.123.1550740451757; Thu, 21 Feb 2019 01:14:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550740451; cv=none; d=google.com; s=arc-20160816; b=q/47Wevc4laWbGd2P5wh1Z50MrDfhx/4LYukI61aSBE0n0/jBL3/44XkrUfJU8F7ko plxYzd22ulZwuV/AsBM9tKF1qzB1aYVA6lGbm5CuksFGXJgYW9TZqAP6cdcX5YuaIKfy mXC9zP9JA8zBk0s/7TlQT+8mb8j/MH7nBDwToVnBsHQWdUygR1GCpVypEeytN6F5OraG OOif76/bMsz8wcLe62iGJDKfAF4qDKcLc3a3+3DdPgALn03x6RaryENXyiVw27BP2i9I 2R6hqKuA0I/zEwNWtCew3A5Xydf3n2FckdWz6AetHjPPA9iTiHh8CxQw4e+oOBCZB8wA 0IBQ== 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 :dkim-signature; bh=W+44EIBhBXbsefbi7VawPB4oVnnUrElgg4bWRK7GROs=; b=dJsIazevS6bJDaMYCaSQVvf0VbYp8wMPANSl/ekMglFGldXsZ7CD83ie6Z2FY/ofRR e0yzJdK6ddfXMwZMzZSrVYbYNl4VszsZC58Gt+9/bjjYj8M2Mr1be+UbQ0KBq1CoSSyK DUvVtUoR0VW/vScadPDOEC9hAEE6bzYQIQk7Eozk/DT95yDr1QblMb4GO/zuW1N5M45R IJvzwc8wU2bbVSXDUwyeyCBE2mQL0Tip4JKxeBVztRtNNMK4OXP0mAunKsLy3grzMsyc d3JxQtrkplLgKTh+b/2MV61Qy3BEMnkE1P6Gfh30dZdEiSYj7CBGMQ0lO1rD90EpZvqH Hwyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="gIGkya/M"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14si20721233pgd.95.2019.02.21.01.13.55; Thu, 21 Feb 2019 01:14:11 -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; dkim=pass header.i=@linaro.org header.s=google header.b="gIGkya/M"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727610AbfBUJMu (ORCPT + 99 others); Thu, 21 Feb 2019 04:12:50 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:38919 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727476AbfBUJMu (ORCPT ); Thu, 21 Feb 2019 04:12:50 -0500 Received: by mail-it1-f195.google.com with SMTP id l15so21741323iti.4 for ; Thu, 21 Feb 2019 01:12:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=W+44EIBhBXbsefbi7VawPB4oVnnUrElgg4bWRK7GROs=; b=gIGkya/M7uiDBGl/4k5GTJZmSuediKC4hXOKVBq/zrquo+o8N+bdaLjKrRAeySMAxz fYVNOjj/Jp6pxJdIMgii8liCKJER5abXJboUqxhX3lxWzbw6LhPz3F4ov2sme0qgAlzk ZaKsRrmfBqUhnKDMFqU94agJjV+704mzIOqnyqB6SH9phpLcAXrQC1fVOU7AQnhhCQX0 4McyQvUaf4GxYgtIEsU1qlHVxG4DyplIeTg9Tbp4S+1k5LRLHJHeHO90dfUq4j4xtg/3 B0WgENdtqUfMQGm1/jKJVjwpWTCEfFMQMsyLoe3tT80GfA0qQJ/8d79jvP+G8PIJcsQx //sw== 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=W+44EIBhBXbsefbi7VawPB4oVnnUrElgg4bWRK7GROs=; b=saUHVj8HE5ZHeJcavlX7c00zO0PFZfxnpevz7PPxPX3oavSRzyRzCo06RPZS4ihT/B NVmttCTQRZeuEGiDr0KDMl6iEEvF+vUFjUClnyxE1b+St8sRjb2u/Rm5fx6uWpzj8tuS vuSmM69hKyd0DsiEuMpGFiCCTF1B0Mc26ugaXYXN6eC2iLZL+J2y9YGcV5YMLvO7mJ1j mv5ok3IGNmWsAAndhCZpPy5rIacjUf7eVp9zIQ4diMmBckFFP2ZhXcoI3L/W3UsTETl8 a3QpnG8AaTv3ohYRG9jem37luG63N8idJBGDAnZJGDzkfv/vRrxAxhu991ub7YLueBu6 5qPg== X-Gm-Message-State: AHQUAuapMlghUI9rorIjqBSU0vtn4xzZ2xGyXb/e6LzHUhVhUSy3lbiT vAdn+p0rNT0kM3Yt5SmW9JJgD44csFmvunBtk0zPkg== X-Received: by 2002:a24:1947:: with SMTP id b68mr7172578itb.121.1550740368851; Thu, 21 Feb 2019 01:12:48 -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: Ard Biesheuvel Date: Thu, 21 Feb 2019 10:12:37 +0100 Message-ID: Subject: Re: linux-next: Tree for Feb 20 To: Geert Uytterhoeven Cc: Zhangshaokun , 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: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Feb 2019 at 09:04, Geert Uytterhoeven wro= te: > > 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 enumer= ator =E2=80=98NONE=E2=80=99 > > >>>> hook(NONE) \ > > >>>> ^ > > >>>> security/integrity/ima/ima.h:188:34: note: in definition of macro = =E2=80=98__ima_hook_enumify=E2=80=99 > > >>>> #define __ima_hook_enumify(ENUM) ENUM, > > >>>> ^ > > >>>> security/integrity/ima/ima.h:191:2: note: in expansion of macro = =E2=80=98__ima_hooks=E2=80=99 > > >>>> __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 =E2=80= =98NONE=E2=80=99 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 de= finition 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/i= ma.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 'I= MA_' > > >> prefixes. Defining a constant named as NONE in a non-generic subsyst= em > > >> (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/FMfcgxwBVgrQRjglPkW= RqRqVclGgVDnB > > > > > > > Because of no privilege, the website is denied for me. Anyway, it's nic= e to have been fixed. > > Looks like Ard posted a link to a label in his personal gmail mailbox? > Silly me. https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=3Defi= /core&id=3D5c418dc789a3898717ebf2caa5716ba91a7150b2