pcmcia: fix unused function compile warning
PATCH 1/1 pcmcia: fix unused function compile warning
pcmcia_socket_dev_resume() is only referenced from macro SET_SYSTEM_SLEEP_PM_OPS(NULL, pcmcia_socket_dev_resume) which based on CONFIG_PM_SLEEP may or may not actually use its second parameter.
Signed-off-by Maciej Żenczykowski <[email protected]>
--- drivers/pcmcia/cs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/pcmcia/cs.c +1 -1
@@ -845,7 +845,7 @@ static int pcmcia_socket_dev_resume_noirq(struct device *dev)return __pcmcia_pm_op (dev, socket_early_resume); } -static int pcmcia_socket_dev_resume (struct device *dev) +static int __used pcmcia_socket_dev_resume (struct device *dev) {return __pcmcia_pm_op (dev, socket_late_resume); }
Signature · 1 line
1.7.1
Quoted 6 lines · Maciej Żenczykowski
pcmcia_socket_dev_resume()is only referenced from macroSET_SYSTEM_SLEEP_PM_OPS(NULL, pcmcia_socket_dev_resume)which based onCONFIG_PM_SLEEPmay or may not actually use its second parameter.Signed-off-by Maciej Żenczykowski <[email protected]>
Applied to the pcmcia git tree, thanks.
Best,
Dominik