Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1691981pxj; Wed, 19 May 2021 11:35:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLQ9QbCAfMxlfijJXwDYjDtHEk03hSC9BE/hzedTm5iYaZClN4ljcfVoJKHm3/4iO8iei1 X-Received: by 2002:aa7:ca4d:: with SMTP id j13mr452475edt.158.1621449305311; Wed, 19 May 2021 11:35:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621449305; cv=none; d=google.com; s=arc-20160816; b=w1GyYLEPBRfThxtK417oQ3Wwf+EXDqLOgd/HPyAiiOuOp/r+zZ2+NT7jy6+C9e0sss wnuwIEPdj9ifRseitKkT/ILvgGu6JW2YYFHwcctwDf4Qac1aSHxwWUVrHUn2Nq3FCh7y Cj4snDz3ib0ymULtddfZlrVpiscEJ7UDE8spzS6FW2cDJvO1IhKykK9IlBF9qTpj82uM NVXBqtPvxcEutUrDQF26rvBgynMyOEfyU3lYzRXDvEQzmnlgbbbs4NBQCRD6s6HXgdy8 Bgdhf1QFPadp25BDBTv+CSwXRovCZYxRlryR+RHYOlvc7FnJ1P7qV8Rx/s7nSp3W2aYs zpPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=veVfj0BVee3vc1too5qwP4myCmj4NVIjAy7/rM3Rg+4=; b=GjfAQeGlPvnhxBteDqjTsiqtEHpJQvjUPFLzvlz+mczzGRkDfuL4zQhCB/NoHWSYdz LNRofdERMQPiuHEGU4QL1ieXeOdGqriIlpSa6usBMKg2qAugwYacpdTS2QQPi7XXcDq4 4AnjfshXnGMcnBTnV/hhbh3Wt6UJWaDTFEe9AWH7p8TkIvDo2PwZNay/u0ZdQ4X70Mk4 YDYRUpY+LPXEZKU3Kwd8N8GEnOnTTwc24T+azWGeuHv8H0C8E6D9HzR8330ngDyfGEnP 0FKCO2m8XreT+cy/IRvKJp4dhZCUBWMjzP/gz0VnFtoS6oqjpAKlOQ6lA9rcA1YY89OH kyog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aG21jQtY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f23si22745edx.85.2021.05.19.11.34.41; Wed, 19 May 2021 11:35:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aG21jQtY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235839AbhERUnK (ORCPT + 99 others); Tue, 18 May 2021 16:43:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:33070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234956AbhERUnJ (ORCPT ); Tue, 18 May 2021 16:43:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 567CB61059; Tue, 18 May 2021 20:41:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621370511; bh=aIgBwh8ikO9n9G42hk2Its108dIO1H+qNOHk38ZgjLk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=aG21jQtYqlcxI5n380BGG/YRCkivqS3rHteMFSS5ekJWaMUDcF5IAbMKzDeehytga FwB7699dQbeuqRYyfqFyvb00y2VuuyGg6NCuFfZEi/aFCEKeCgab7Ybpgoxxh2cbZf n8stjw/J5+1K9Az7aNdYzi+BboXCFaWT/HzxQohchVrsnIoWGmmSmEjfZD+OaSjrlA clV9mNMOQ2IO6Le8Qc5SnzUE2Vr9keWifP6e4jwwiVqyeZnKRqMvpWm4MP0/GqXBTo J1YRHO4JvKuvoFaZfvIhFk8xnKT1W4Xw3LDAXYEyRALoVH1S1tpKrHt4UWFtUc1w4M 888BhJMp9LqHA== Subject: Re: [PATCH v2] powerpc/powernv/pci: fix header guard To: Nick Desaulniers , Michael Ellerman Cc: Oliver O'Halloran , Joe Perches , Benjamin Herrenschmidt , Paul Mackerras , Greg Kroah-Hartman , Alexey Kardashevskiy , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <87cztok1r5.fsf@mpe.ellerman.id.au> <20210518204044.2390064-1-ndesaulniers@google.com> From: Nathan Chancellor Message-ID: <4aa06438-7bea-a5a6-ff64-0cf8c28e2511@kernel.org> Date: Tue, 18 May 2021 13:41:49 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210518204044.2390064-1-ndesaulniers@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/18/2021 1:40 PM, Nick Desaulniers wrote: > While looking at -Wundef warnings, the #if CONFIG_EEH stood out as a > possible candidate to convert to #ifdef CONFIG_EEH. > > It seems that based on Kconfig dependencies it's not possible to build > this file without CONFIG_EEH enabled, but based on upstream discussion, > it's not clear yet that CONFIG_EEH should be enabled by default. > > For now, simply fix the -Wundef warning. > > Suggested-by: Nathan Chancellor > Suggested-by: Joe Perches > Link: https://github.com/ClangBuiltLinux/linux/issues/570 > Link: https://lore.kernel.org/lkml/67f6cd269684c9aa8463ff4812c3b4605e6739c3.camel@perches.com/ > Link: https://lore.kernel.org/lkml/CAOSf1CGoN5R0LUrU=Y=UWho1Z_9SLgCX8s3SbFJXwJXc5BYz4A@mail.gmail.com/ > Signed-off-by: Nick Desaulniers Makes sense, thanks for the patch! Reviewed-by: Nathan Chancellor > --- > arch/powerpc/platforms/powernv/pci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/platforms/powernv/pci.c b/arch/powerpc/platforms/powernv/pci.c > index b18468dc31ff..6bb3c52633fb 100644 > --- a/arch/powerpc/platforms/powernv/pci.c > +++ b/arch/powerpc/platforms/powernv/pci.c > @@ -711,7 +711,7 @@ int pnv_pci_cfg_write(struct pci_dn *pdn, > return PCIBIOS_SUCCESSFUL; > } > > -#if CONFIG_EEH > +#ifdef CONFIG_EEH > static bool pnv_pci_cfg_check(struct pci_dn *pdn) > { > struct eeh_dev *edev = NULL; >