Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp265050imp; Thu, 21 Feb 2019 00:43:08 -0800 (PST) X-Google-Smtp-Source: AHgI3IaaDsXNLhzRI4bf84R0xV/PqjzB2CLs62yvPu9FL8xdLFZuDNVFsKwspL8L0VGJPku8Ub1f X-Received: by 2002:a63:e553:: with SMTP id z19mr33301934pgj.331.1550738588229; Thu, 21 Feb 2019 00:43:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550738588; cv=none; d=google.com; s=arc-20160816; b=MMMjEO1Xd24A3sU+HWqJ8YIUt1UMQkBmun4rl1OcxwwiPdYjgcHjEQBqAY80gN6Wgu nxQMxNmPPUZ+BUsLmLout9FXwLEjRPUOteK6tSW2lWeODDjjk6Eb0eaApWo7BZuaBXvy h4o++W7/y4K3eAD19iC/6tj+eVmb9IaAuiqXdaqO+PAMkKWsGGAY+ju0PQ6ZoYXk1gov 7gH1OC73KfjCvtYYOYreljGrVDRagzzQiklh3Yza9GmHZtdthgvPySHrOntDRu+h6nMx tuapYbhz0haSmYNTBxpELjyZfbOWhsOI4N161Q4PydABntUgRhNEvG66tBw7KB6WB8et PXnw== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=CPj6e2JCPO2ulegqaucaTQFhvzyYNIJQdoQrg+/1eOY=; b=n/RMvY61ePiLsszCSSHahbrRUhvAu1e+EURCQY7iVP/5LTNH8daCPyKoIKqJ8Gwkiv GRicFym5HmAVINq82x2mTNc0q3LMVFrXd0SEGuwo95kMTCuDAcs39J323C7qT8vVv7ch EF2ez41IgSctVC1gDzm1cnLzHZUA4tWmEsZ8271o0F0V3TclLHZ2gN9+GwbLFoPWeZZ+ fSKq/cAhMAnBTv1YW311oIfJLJQAGdGfXw491dKNjVaQ6q2DPVNXx95JJe38JjQXqRCC uaySF2sEALcOX3CcZ93/kYivDOhl2CxRvI4xKs1DrG+U6f0mSFbypbzWnu70Eb4wLW/z iONA== 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 e67si22828998plb.107.2019.02.21.00.42.52; Thu, 21 Feb 2019 00:43:08 -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 S1727307AbfBUIm2 (ORCPT + 99 others); Thu, 21 Feb 2019 03:42:28 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:49732 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725932AbfBUIm2 (ORCPT ); Thu, 21 Feb 2019 03:42:28 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 1AE5BE13EC11C587C568; Thu, 21 Feb 2019 16:42:24 +0800 (CST) Received: from [127.0.0.1] (10.74.221.148) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.408.0; Thu, 21 Feb 2019 16:42:16 +0800 Subject: Re: linux-next: Tree for Feb 20 To: Geert Uytterhoeven References: <20190220184341.73bd2084@canb.auug.org.au> <1114b964-8ff8-5632-64d4-e94a9160b998@hisilicon.com> <20190220095252.GA9089@linux.intel.com> <20190220095806.GB9089@linux.intel.com> CC: Ard Biesheuvel , Jarkko Sakkinen , Mimi Zohar , "Stephen Rothwell" , Linux Next Mailing List , Roberto Sassu , "Linux Kernel Mailing List" , linux-efi , linux-integrity From: Zhangshaokun Message-ID: <52ff1782-98e8-71fb-873e-f75610d200c2@hisilicon.com> Date: Thu, 21 Feb 2019 16:42:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.74.221.148] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On 2019/2/21 16:03, Geert Uytterhoeven wrote: > 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? > Hmm, it seems that, my bad understanding. Thanks your reply. > Gr{oetje,eeting}s, > > Geert >