[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b60d6dc2-abc2-b0fc-a880-1a7fec1dec67@canonical.com>
Date: Mon, 5 Jul 2021 17:13:21 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
To: Dinh Nguyen <dinguyen@...nel.org>, Borislav Petkov <bp@...en8.de>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Tony Luck <tony.luck@...el.com>,
James Morse <james.morse@....com>,
Robert Richter <rric@...nel.org>, linux-edac@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] EDAC, altera: skip defining unused structures for
specific configs
On 01/06/2021 11:27, Krzysztof Kozlowski wrote:
> The Altera EDAC driver has several features conditionally built
> depending on Kconfig options. The edac_device_prv_data structures are
> conditionally used in of_device_id tables. They reference other
> functions and structures which can be defined as __maybe_unused. This
> silences build warnings like:
>
> drivers/edac/altera_edac.c:643:37: warning:
> ‘altr_edac_device_inject_fops’ defined but not used [-Wunused-const-variable=]
>
> Reported-by: kernel test robot <lkp@...el.com>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
> ---
> drivers/edac/altera_edac.c | 44 ++++++++++++++++++++++----------------
> 1 file changed, 26 insertions(+), 18 deletions(-)
Hi Altera and EDAC maintainers,
Any comments on this patch?
Best regards,
Krzysztof
Powered by blists - more mailing lists