https://github.com/torvalds/linux
Revision c8bd2ac3b4c6c84c4a7cdceaed626247db698ab2 authored by Jérémy Lefaure on 04 January 2017, 00:13:49 UTC, committed by Greg Kroah-Hartman on 05 January 2017, 18:18:05 UTC
The function musb_run_resume_work is called only when CONFIG_PM is
enabled. So this function should not be defined when CONFIG_PM is
disabled. Otherwise the compiler issues a warning:

drivers/usb/musb/musb_core.c:2057:12: error: ‘musb_run_resume_work’ defined but
not used [-Werror=unused-function]
 static int musb_run_resume_work(struct musb *musb)
            ^~~~~~~~~~~~~~~~~~~~

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8c300fe
History
Tip revision: c8bd2ac3b4c6c84c4a7cdceaed626247db698ab2 authored by Jérémy Lefaure on 04 January 2017, 00:13:49 UTC
usb: musb: fix compilation warning on unused function
Tip revision: c8bd2ac
File Mode Size
Makefile -rw-r--r-- 377 bytes
compat.c -rw-r--r-- 19.1 KB
compat_mq.c -rw-r--r-- 3.9 KB
ipc_sysctl.c -rw-r--r-- 5.4 KB
mq_sysctl.c -rw-r--r-- 2.9 KB
mqueue.c -rw-r--r-- 35.7 KB
msg.c -rw-r--r-- 23.5 KB
msgutil.c -rw-r--r-- 3.6 KB
namespace.c -rw-r--r-- 4.5 KB
sem.c -rw-r--r-- 54.8 KB
shm.c -rw-r--r-- 33.4 KB
syscall.c -rw-r--r-- 2.3 KB
util.c -rw-r--r-- 21.1 KB
util.h -rw-r--r-- 6.4 KB

back to top