diff options
author | 2018-09-19 18:59:01 -0700 | |
---|---|---|
committer | 2018-09-20 09:17:25 +0200 | |
commit | 1cd25cbb2fedbc777f3a8c3cb1ba69b645aeaa64 (patch) | |
tree | 2a6ce51397c1334dca37a055bf6959efcbaab9fd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | TTY: tty_buffer, warn on leaks (diff) | |
download | linux-dev-1cd25cbb2fedbc777f3a8c3cb1ba69b645aeaa64.tar.xz linux-dev-1cd25cbb2fedbc777f3a8c3cb1ba69b645aeaa64.zip |
kgdboc: Fix warning with module build
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions