Re: [PATCH] platform/surface: mark PM functions as __maybe_unused

2021-01-03 Thread Maximilian Luz
On 1/3/21 3:04 PM, Arnd Bergmann wrote: From: Arnd Bergmann When CONFIG_PM is disabled, the compiler produces harmless warnings: drivers/platform/surface/surface_gpe.c:184:12: error: unused function 'surface_gpe_suspend' [-Werror,-Wunused-function] static int surface_gpe_suspend(struct device

[PATCH] platform/surface: mark PM functions as __maybe_unused

2021-01-03 Thread Arnd Bergmann
From: Arnd Bergmann When CONFIG_PM is disabled, the compiler produces harmless warnings: drivers/platform/surface/surface_gpe.c:184:12: error: unused function 'surface_gpe_suspend' [-Werror,-Wunused-function] static int surface_gpe_suspend(struct device *dev) drivers/platform/surface/surface_gp