Files
linux/drivers/tty
Laura Abbott e8693a9829 kgdboc: Fix warning with module build
commit 1cd25cbb2f upstream.

After 2dd4531686 ("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: 2dd4531686 ("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>
2018-12-08 13:03:38 +01:00
..
2017-07-30 07:35:27 -07:00
2017-07-30 07:35:28 -07:00
2018-12-01 09:42:59 +01:00
2018-08-24 13:08:55 +02:00
2016-03-07 16:11:14 -08:00
2018-12-01 09:42:59 +01:00
2017-08-29 15:10:44 -07:00