Re: [PATCH] EDAC, altera: skip defining unused structures for specific configs

From
Krzysztof Kozlowski <hidden>
Date
2021-07-05 15:13:26
Also in
lkml
Reply to
Krzysztof Kozlowski, 2021-06-01
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 <redacted>
Signed-off-by: Krzysztof Kozlowski <redacted>
---
 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
Thread (4 messages) 4 messages, 3 authors, last reply 2021-08-16
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help