Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1317435
| From | Krzysztof Kozlowski <k.kozlowski@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] fbdev: s6e8ax0: avoid unused function warnings |
| Date | 2016-01-26 01:50 +0100 |
| Message-ID | <qUZZx-3Gr-29@gated-at.bofh.it> (permalink) |
| References | <qUQWe-5Ow-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 26.01.2016 00:04, Arnd Bergmann wrote: > The s6e8ax0 suspend/resume functions are hidden inside of an #ifdef > when CONFIG_PM is set to avoid unused function warnings, but they > call some other functions that nothing else calls, and we get warnings > about those: > > drivers/video/fbdev/exynos/s6e8ax0.c:449:13: error: 's6e8ax0_sleep_in' defined but not used [-Werror=unused-function] > drivers/video/fbdev/exynos/s6e8ax0.c:485:13: error: 's6e8ax0_display_off' defined but not used [-Werror=unused-function] > > This marks the PM functions as __maybe_unused so the compiler can > silently drop them when they are not referenced. > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/video/fbdev/exynos/s6e8ax0.c | 13 ++++--------- > 1 file changed, 4 insertions(+), 9 deletions(-) > Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Best regards, Krzysztof
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] fbdev: s6e8ax0: avoid unused function warnings Arnd Bergmann <arnd@arndb.de> - 2016-01-25 16:10 +0100 Re: [PATCH] fbdev: s6e8ax0: avoid unused function warnings Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-01-26 01:50 +0100
csiph-web