Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3653665imj; Tue, 12 Feb 2019 02:23:11 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia8Q3QwuI9Cm7EEHbRLifA9n1CmZl8JgDY6r/DkeT6n9dtUSIdSrvKRZywjITdpsVUepf5w X-Received: by 2002:a17:902:8f83:: with SMTP id z3mr3188525plo.328.1549966991209; Tue, 12 Feb 2019 02:23:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549966991; cv=none; d=google.com; s=arc-20160816; b=mElIp5q579wU5EdfORTq8l7wm4ir2KxmKDDryuUFq5q36jX+shLum6XVUJJ1WwW7N8 UIZJrGULy+qlin4k2SJok8vPlXjIeAFe/k69OeV3M5ob1QVQhVGwGRZYk8lsxlGvTSAE fP2Mg7PKUWyR4SSpR0D77tsecPtTclnynKy9Nb/A+AlVdeWMyF2Aw9GI5IaX9qEWWx/A xHhcZv0h4GsZcJbie144ItkrH2aSCWbBfjYXpiOunESxPBHLRJNkH4jeIFz3PJTUxH0N bUOHPV082BROkhHU+2HEx2jRFMNxImngdBTK0pZTMjERmVLNcGMHjCETmVp35RtiuKx4 xQ+A== 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=nPLvJ1U2J5XGkPuS7FrpA67Dv/Qj/MbV6qZU2I6C6bI=; b=mUUl53+qRysUy52Zh0Mv4qV7UGEl38GQ5cDkKcPWB2WxZ/h4mb/mdglj8ZQ7uBtvcG Z6EusXSKlJuUW4E4qHiUoriG/QoNX/8v6NaKkkE+p8W5idNSgvk3eRuLG08e7MfzKWbl ShdamzmjlpWEr+mtGbPfE+XWrVIMNNI+FfONxc/CM+1qv35ZloAo7QkvvMITvzYmC45r gneaZlwvjpwPjXHND0dxt9XLWoulu2bZcQlQmqWgM8amgXJons/XFpK0+Qi9RpSq6Wn2 D38gL5+9kvtk0CV+P6nlf7xIYu5fYE2FpGytfJafhV9FKpJ/S+LE/uufO4a83sGwLa5s iv2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SzxCJJr9; 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 d5si10034946pfn.134.2019.02.12.02.22.54; Tue, 12 Feb 2019 02:23: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=@gmail.com header.s=20161025 header.b=SzxCJJr9; 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 S1728201AbfBLKVu (ORCPT + 99 others); Tue, 12 Feb 2019 05:21:50 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45613 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726003AbfBLKVt (ORCPT ); Tue, 12 Feb 2019 05:21:49 -0500 Received: by mail-pl1-f195.google.com with SMTP id r14so1068226pls.12; Tue, 12 Feb 2019 02:21:49 -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=nPLvJ1U2J5XGkPuS7FrpA67Dv/Qj/MbV6qZU2I6C6bI=; b=SzxCJJr9cKLoRxfWqTkFmr9+SHpyQYrdGl962aPQtGx9/Gjkt0WcKT8Zd+/05ddSDi lhp4ncn4nNyePAubvUZigSQJFbWplxFUesa0jX/qXuqTHPwh0wuAg/uOkvj9oHhiRY+s UOo3BBrGFsOy6U7uwRUFEyn1xSBG9wLKBLvWoyPbme/7F6aumIqfJ2j3JKPrlhwf5QnP DlwKH+PGcbvESYWZCujWrfR4D8joaa8zlg3F0wyuWzjYxJHiXbumLSblx3r1GmO4u8gD PaE5X/qVH1O7w/BHgOjTX90PptcvAEULu6dpoAzx622rTB6PFncIGNhecOVXXrE/vHHw ya0Q== 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=nPLvJ1U2J5XGkPuS7FrpA67Dv/Qj/MbV6qZU2I6C6bI=; b=rGooVT0IAnuIgHLe333bDAR3Iu12M+9LVu0+wOl/1gqqVOVORFBcow2d5iUu7BWfsM zpAbntVgIXv9CMGmB4UeTx2O1uTwe6O2T1DSN0uL6WG9havcVxcys7RIOGepPHTce4yi 2BL1xkLK6oVm0j0B3qkd7A6iQjximdohT9OWz1s8Y4ERnHWfx31FRym4mvgCIx7H6Jrl MNn93dz6hBQuXTmWqN5ypCZ4YCVc1If7niyZd6DK3HEUHPLn6+C7IKHLVk9/043c708M dHJozPH23Jzv4C20LmcqlKo26VkCyd4aBY8rxAHCG0shPDM9qpUQf5cfWtwXKssuv6KO PKQg== X-Gm-Message-State: AHQUAuaR6BJRXUBeQSPuDWqS5Q4LpIwOOZfpaZxRAvX4OCv7YAqPF911 Up+UCHY+L/2GyUuI1XJ//Fs08eXi7WGxOuaFrkAcgYEJ X-Received: by 2002:a17:902:112c:: with SMTP id d41mr3181069pla.144.1549966908724; Tue, 12 Feb 2019 02:21:48 -0800 (PST) MIME-Version: 1.0 References: <20190212100825.9113-1-anders.roxell@linaro.org> In-Reply-To: <20190212100825.9113-1-anders.roxell@linaro.org> From: Andy Shevchenko Date: Tue, 12 Feb 2019 12:21:37 +0200 Message-ID: Subject: Re: [PATCH 1/2] ima: fix build error redeclaration of enumerator To: Anders Roxell Cc: Mimi Zohar , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , linux-integrity , linux-security-module , Linux Kernel Mailing List , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , 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:15 PM 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. > We only need one of the two patches applied. I would argue that we need two patches applied. Namespace is a hidden issue in the code. This patch looks good to me, FWIW, Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko