Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3652523imj; Tue, 12 Feb 2019 02:21:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IYkoaidyz/U1XJjZFtwJ+7b0mEjwSs6ojf1I9JZq0Sj2/4fcpBYDZ3wfOV6MG9WMSd4EVON X-Received: by 2002:a17:902:2a47:: with SMTP id i65mr3244537plb.237.1549966902078; Tue, 12 Feb 2019 02:21:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549966902; cv=none; d=google.com; s=arc-20160816; b=Y1Ov1RNiEOjaYjjBrgjWPKR74zmnG/M224yVLEuCdeNXzoN8Qh9UwWWmN56kOUkAB4 QrFs/R8/trW+eLs+4Xi1qtMY2A/i/jNgFBcCzRYojaLnWNH2+fnuOxTrG8Z47SMD46lX AVi+xgR6UW19YVPIi/sgWE+WKWL7yJe1HzPdsTxDvWej8qmxgHSWWx1cR6hOIL/HFgLH 8aYsrE1UB1XKst0wT6TfqRbR1BXXz/0neKgGKD1tcQ1vedbcq+jgNVwftVZ3BCOwlw/A yFpmRal2b0lVWKfCpynqxSc06v89LP5sbUA2J5fUNWX1hYxUHfEosfpgqOjTPe7KlXhw FIUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8TrihA3fFD8SCmljFjZseCPcdqTX+6RNR1hDHLAg3NY=; b=g1HdFf4uMObHvpEQPU4hDv7pReaGM7kSli5C0SAKRkNOoljrbiH7/4Ilik9mTp2IRk XAVc3/SOWfCi45DieFQtwUwQndqKhO5afGX4Wddpa9rJeXrxOqoOOdGLYuiB1KjJyobK C+2fHII6XnXH3vAq2Ijm9sI7CdzUc6m05kTbGHjL8Ywec3N1uQivQWfEapAEBOYErPbV ld8YdpYJ799GvN8hAgSj+r4+Qf91n+4RpDdclx4V6uhaPKwlOPlVK7iU7nrXYm/e92XP 2/pW0F/l3A3YbUU/PVqWgegWUzgZm3UD+DiYL7QqUYYYuT5TyZMlpWznJhhRNaRV3Ws3 8gTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qpA7h6ZH; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si879431pfh.133.2019.02.12.02.21.25; Tue, 12 Feb 2019 02:21:42 -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=@gmail.com header.s=20161025 header.b=qpA7h6ZH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728755AbfBLKUG (ORCPT + 99 others); Tue, 12 Feb 2019 05:20:06 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:46386 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727451AbfBLKUE (ORCPT ); Tue, 12 Feb 2019 05:20:04 -0500 Received: by mail-pl1-f195.google.com with SMTP id o6so1066400pls.13; Tue, 12 Feb 2019 02:20:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8TrihA3fFD8SCmljFjZseCPcdqTX+6RNR1hDHLAg3NY=; b=qpA7h6ZHttjfIpQvFPZamuiG9XOhBVti1a92RN/yB86W/ezq9B38odaoh2oDFTGQw9 aMO41RQw0iNBg3GlXw0zgaN71IRdatuhzdu+mruqXCZPiBPu6LRONIRkfhAnk8olGyVr SbES7Pt0HAvnGNG6a6A3ejgLekpuTLuPh7TWdDEZ/l1/r0LxoNaronVObKIEbe2iw8aR Df9/d5qVPxIIv8czJGHhnLY4LFVRIBK5wRelYuh06VMwVNVco+JG6kTbjtAUwsEseacX KwULeF+1aaO+A+uOGFnjyYOVQztbnt/P//C1FtYi0LM6yAvwkp5CiHZEX9LSutiZ66+r dvew== 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; bh=8TrihA3fFD8SCmljFjZseCPcdqTX+6RNR1hDHLAg3NY=; b=gnDh5xcDc/ofhK3CrAwvOZrYxiFKESndUTwPcKZ4jtc6AUhRA6XVLlhCZECyT+7qcl JVJr3Olqp7+oDz04uI08zG8DDBDKo+vRzElmNyajNAQseUmq1A+YXD/i1eNU1zSljLCk Nbbs2caMjOLPN01DmjuN/M8jEmnLEMWRyXVVRWGtooqBB7F3j8GnpLOlMRgI5oLdAve4 IDtN6f+WD4ChUlvWK58hDYraZl3dLy8h1tDYQtWOI+ZNmebj3G7lrkGbgidqhGSoS97E q9s36y0vYxK9NRntExxzBY7+UaxGttLBJMGqaK8x0jKzlpZym4zj32G6wnOcAUPJxw2L SIBA== X-Gm-Message-State: AHQUAuafQv7p7TYRVrUAtBVotEcinQgMfCai+DKPOZhwdHmGTE1qZltg 8HbDJ2Hhd923LutOtDetKFo3buBMT/66sMVAVrE= X-Received: by 2002:a17:902:bc88:: with SMTP id bb8mr3323071plb.12.1549966804153; Tue, 12 Feb 2019 02:20:04 -0800 (PST) MIME-Version: 1.0 References: <20190212100825.9113-1-anders.roxell@linaro.org> <20190212100825.9113-2-anders.roxell@linaro.org> In-Reply-To: From: Andy Shevchenko Date: Tue, 12 Feb 2019 12:19:53 +0200 Message-ID: Subject: Re: [PATCH 2/2] efi: fix build error redeclaration of enumerator To: Ard Biesheuvel Cc: Anders Roxell , Mimi Zohar , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , linux-integrity , linux-security-module , Linux Kernel Mailing List , "the arch/x86 maintainers" , linux-efi , Platform Driver Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 12, 2019 at 12:16 PM Ard Biesheuvel wrote: > On Tue, 12 Feb 2019 at 11:09, Anders Roxell wrote: > > > > Commit a893ea15d764 ("tpm: move tpm_chip definition to > > include/linux/tpm.h") introduced a build error when both ima and efi is > > enabled. What happens is that both headers (ima.h and efi.h) defines the > > same 'NONE' constant, and it broke when they started getting included > > from the same file. > I'd argue that we should apply both patches. 'NONE' is far too > generic, so it requires a subsystem prefix if it has a special meaning > inside a subsystem. I was about to say the same thing. -- With Best Regards, Andy Shevchenko