summaryrefslogtreecommitdiff
path: root/drivers/leds
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2018-09-19 18:59:01 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-13 09:21:30 +0100
commit5403677a46a8155ad369e3ca17c9cc6a037b258e (patch)
tree9285690a66c76f46e4ec981f25bd79d6423ba78b /drivers/leds
parentfa8d814aba4a53fab1b6d2cbc8575a8132fc10df (diff)
kgdboc: Fix warning with module build
commit 1cd25cbb2fedbc777f3a8c3cb1ba69b645aeaa64 upstream. After 2dd453168643 ("kgdboc: Fix restrict error"), kgdboc_option_setup is now only used when built in, resulting in a warning when compiled as a module: drivers/tty/serial/kgdboc.c:134:12: warning: 'kgdboc_option_setup' defined but not used [-Wunused-function] static int kgdboc_option_setup(char *opt) ^~~~~~~~~~~~~~~~~~~ Move the function under the appropriate ifdef for builtin only. Fixes: 2dd453168643 ("kgdboc: Fix restrict error") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/leds')
0 files changed, 0 insertions, 0 deletions