Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp392155imp; Wed, 20 Feb 2019 02:06:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IbsDq9MRB6zGkgrv1G8yG1/MvVeQaAEa1RW8thrN46SWql8+tY4bxJStIkYmYMMyfTky43o X-Received: by 2002:a17:902:7604:: with SMTP id k4mr35289636pll.232.1550657179655; Wed, 20 Feb 2019 02:06:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550657179; cv=none; d=google.com; s=arc-20160816; b=XdH3nakieje5BzYs/AcrApX8s/7TqlGhyf53R4mP+srslrcUu2QId2VrrfmwxTkJLZ zk9P2dvJYWU9jj7z1pZzjqJqlg1fa3F5QXjIvXdI4MxiIxQZGbtDUj2AiJTbtpsRrQ/o XfRISZaG8fQaRDI+oYipEibzWd9C9Afmj1eiECd9NKE3bBb+6A6C5T3vddoh1ifH1CXL P3+rxo8RLxYK2Z3Icocn4G0oFZBHcUFj9Qg5Dq+FFlfHB9+kXHbGFcZye9zFFk8lQyXy risZxHYJFkVfefI/AgkTnuJO25fcrNMZYocWWJBVabRX/pwB0U00XYqiNxx3j6ULsZrZ E90w== 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=UxXpoqYZsr0myC52GC/581uh8VWI9MAJmfeUPOdUYzE=; b=TTqar7vcO2fw25X7lYQ74O7/JFosGRlZaRNfwtSVQ8lOZY72VPUGHEfPYDuk+w6FNX rldoetglVFWmp4p+fhMMkKJP//ucAsyhdnIoiwDqEIGc/QBa1+7jbAG2Y3WbeS3oU22A 84D0Pshl9TOL0Gpo9vjUabvXu7OSuolYlsYyMI62SIaLiskT4l0mDk0Bjv+1Ozu4Dh0P RRGcuSC0wBGK9P+xSTxo40Vi9Pp5LYsXFPI8GgnDJYPVcwdyiIhnzv4qlGBnAzBC8Vgt o5FGnDCn/DoxNQeM7Fbt5Yj/GoDuwqmzGOrg2lIeJVIm5+FrdFDxFy0stXjM9tq8Yat7 3Fag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JB6odzgS; 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 141si18901770pfb.227.2019.02.20.02.06.04; Wed, 20 Feb 2019 02:06:19 -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=JB6odzgS; 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 S1727194AbfBTKFq (ORCPT + 99 others); Wed, 20 Feb 2019 05:05:46 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:53871 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726693AbfBTKFp (ORCPT ); Wed, 20 Feb 2019 05:05:45 -0500 Received: by mail-it1-f193.google.com with SMTP id x131so13896981itc.3 for ; Wed, 20 Feb 2019 02:05:44 -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=UxXpoqYZsr0myC52GC/581uh8VWI9MAJmfeUPOdUYzE=; b=JB6odzgSqp/bdn+I4ZLRPMDUJURq1EfqGY7gw+vzqRlhzMHW7W9wZTABh+ovCTilYQ ffHakS6IC/XGat/4LmoYU2FChH0vCQoazpPk5kkn0BoHSDMsf+1SVb269PWpYY4eegX5 l8cPkK7Om2FeAG0wYATP/SIcCO/7SaNl6EkC/cJVsv7eOc1hCVp80kQRT1/XeX1oYhOa jFpwRTMuSMvUiTKuPfsusL39LNvXTga1NAAAdMRp9vs4Vb/NIA4+aw46QC164f2sdYQO XpGlu+3EfdtfxgeSZWvTz2sPvlTxcwZxCS1ax25i7e06NvA1GeXgpnhFjtL00P40Auji 0/1Q== 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=UxXpoqYZsr0myC52GC/581uh8VWI9MAJmfeUPOdUYzE=; b=b0CdiZaD2CrE+V8U/6FW7TaSN0qkEA8Q3fjAFA1oo3KJM5E/L3VDWUKzp06v4RXaIS rRfVxOX6ddRh335qCsTOeUyY9DScgFHcfs4nS2Bjru4C6sswe7jGW+6FkHDZmXHim3gB 1qIREOcJHi5C+9IHoBwNfgCflP0RS2INm8Hv6OO8JsN4o3zhSwYHMJXgoMLpO6A+Mq0Z 4abKNBFY36sX8kr1TuP+LDaPD5zVtN5wxmJyNLTrap5sFa8tS+y6AI90EmVcUKFUhSgo W9hKI0SX2hCCuA+VaCQi+wOnkH0HDxtCLvu0WjO+lgMNAuFJ9N5h9g9Bawr2B6X6cnR9 NPaA== X-Gm-Message-State: AHQUAuZR/fYT39qVoga5YNd/rOgUHxmSEdGD7uypC4uBXgEoW987+2BP YhaMdxJEGAPWyeKzyqRrCS83EqL5ZnaeOEZtKXMfBA== X-Received: by 2002:a5e:d609:: with SMTP id w9mr18532724iom.170.1550657144079; Wed, 20 Feb 2019 02:05:44 -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: <20190220095806.GB9089@linux.intel.com> From: Ard Biesheuvel Date: Wed, 20 Feb 2019 11:05:32 +0100 Message-ID: Subject: Re: linux-next: Tree for Feb 20 To: Jarkko Sakkinen Cc: Zhangshaokun , 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 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 enumerato= r =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=98N= ONE=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 defin= ition 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 take= n > > 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 short= ly The EFI one is here https://mail.google.com/mail/u/0/#label/linux-efi/FMfcgxwBVgrQRjglPkWRqRqVc= lGgVDnB Not sure about the IMA one, Mimi should be able to comment ...