summaryrefslogtreecommitdiff
path: root/arch/ia64/configs
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-05-16 23:27:42 +0300
committerLee Jones <lee@kernel.org>2023-06-15 11:19:37 +0300
commit9ef18aa8c0ab5f7824b8380536501859af61265d (patch)
tree491f8fa01a0028dde556628e4e5d00fce9282996 /arch/ia64/configs
parente83152a8fae9c36b3ab1886bb9576c4c910269a9 (diff)
downloadlinux-9ef18aa8c0ab5f7824b8380536501859af61265d.tar.xz
mfd: intel-lpss: Hide suspend/resume functions in #ifdef
When CONFIG_PM is disabled, the prototypes for these two functions are not visible: drivers/mfd/intel-lpss.c:482:5: error: no previous prototype for 'intel_lpss_suspend' [-Werror=missing-prototypes] 482 | int intel_lpss_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~ drivers/mfd/intel-lpss.c:503:5: error: no previous prototype for 'intel_lpss_resume' [-Werror=missing-prototypes] 503 | int intel_lpss_resume(struct device *dev) Add the same #ifdef around the definition of the unused functions, which avoids the warning and slightly reduces the code size. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20230516202746.561111-1-arnd@kernel.org Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'arch/ia64/configs')
0 files changed, 0 insertions, 0 deletions