Re: [PATCH] amba: tegra-ahb: mark PM functions as __maybe_unused

2019-04-26 Thread Arnd Bergmann
On Fri, Apr 26, 2019 at 5:20 PM Thierry Reding wrote: > > On Fri, Apr 26, 2019 at 04:56:03PM +0200, Arnd Bergmann wrote: > > clang warns about an unused variable when CONFIG_PM is disabled, > > since it is only referenced from an #ifdef: > > > > drivers/amba/tegra-ahb.c:97:18: error: variable 'teg

Re: [PATCH] amba: tegra-ahb: mark PM functions as __maybe_unused

2019-04-26 Thread Thierry Reding
On Fri, Apr 26, 2019 at 04:56:03PM +0200, Arnd Bergmann wrote: > clang warns about an unused variable when CONFIG_PM is disabled, > since it is only referenced from an #ifdef: > > drivers/amba/tegra-ahb.c:97:18: error: variable 'tegra_ahb_gizmo' is not > needed and will not be emitted [-Werror,-W

[PATCH] amba: tegra-ahb: mark PM functions as __maybe_unused

2019-04-26 Thread Arnd Bergmann
clang warns about an unused variable when CONFIG_PM is disabled, since it is only referenced from an #ifdef: drivers/amba/tegra-ahb.c:97:18: error: variable 'tegra_ahb_gizmo' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] Rather than trying to get the #ifdef righ