]> git.baikalelectronics.ru Git - kernel.git/commit
soc: ti: wkup_m3_ipc: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 6 Jul 2018 16:47:51 +0000 (09:47 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 6 Jul 2018 16:47:51 +0000 (09:47 -0700)
commitcdcc5138d65b5e99f0d54cbab1bf0d7145c498dd
treebea2302639371a0eb89c116a4781661bb50a6a41
parent6c06792774b2511169f03e0f869f9ee84864d310
soc: ti: wkup_m3_ipc: mark PM functions as __maybe_unused

Everyone gets these #ifdefs wrong, leading to another warning here:

drivers/soc/ti/wkup_m3_ipc.c:547:12: error: 'wkup_m3_ipc_resume' defined but not used [-Werror=unused-function]
 static int wkup_m3_ipc_resume(struct device *dev)
drivers/soc/ti/wkup_m3_ipc.c:539:12: error: 'wkup_m3_ipc_suspend' defined but not used [-Werror=unused-function]
 static int wkup_m3_ipc_suspend(struct device *dev)

The easiest way to get it right is to remove all the #ifdefs and
let the compiler drop the unused functions silently after we
mark them as __maybe_unused.

Fixes: 4455cd686d76 ("soc: ti: wkup_m3_ipc: Add rtc_only with ddr in self refresh mode support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/soc/ti/wkup_m3_ipc.c