diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-11-20 05:28:42 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-12-22 05:32:09 -0500 |
commit | fb0229dfec3df9247190f001f1b51d767f2ee035 (patch) | |
tree | 1aa0164c0e4d7c2ad65c0d220f8971e032172e97 /drivers/mmc | |
parent | 260ecb3c915fae3d67bf0378016ae68929be3b0e (diff) |
mmc: fix mmc_{un,}register_pm_notifier prototypes
The mmc pm notifiers were recently reworked, but the new
code produces a lot of warnings when CONFIG_PM_SLEEP is disabled:
In file included from ../drivers/mmc/core/sdio_bus.c:27:0:
drivers/mmc/core/core.h:97:13: warning: 'mmc_register_pm_notifier' defined but not used [-Wunused-function]
The obvious solution is to add the 'inline' keyword at the
function definition, as it should be for any function defined
in a header file.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 0e40be7c20e0 ("mmc: core: Refactor code to register the MMC PM notifier")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/core.h b/drivers/mmc/core/core.h index bd00ac2cdc1b..0fa86a2afc26 100644 --- a/drivers/mmc/core/core.h +++ b/drivers/mmc/core/core.h | |||
@@ -94,8 +94,8 @@ int mmc_hs400_to_hs200(struct mmc_card *card); | |||
94 | void mmc_register_pm_notifier(struct mmc_host *host); | 94 | void mmc_register_pm_notifier(struct mmc_host *host); |
95 | void mmc_unregister_pm_notifier(struct mmc_host *host); | 95 | void mmc_unregister_pm_notifier(struct mmc_host *host); |
96 | #else | 96 | #else |
97 | static void mmc_register_pm_notifier(struct mmc_host *host) { } | 97 | static inline void mmc_register_pm_notifier(struct mmc_host *host) { } |
98 | static void mmc_unregister_pm_notifier(struct mmc_host *host) { } | 98 | static inline void mmc_unregister_pm_notifier(struct mmc_host *host) { } |
99 | #endif | 99 | #endif |
100 | 100 | ||
101 | #endif | 101 | #endif |