linux-next: build failure after merge of the kgdb tree

From: Stephen Rothwell
Date: Tue May 19 2020 - 10:05:32 EST


Hi all,

After merging the kgdb tree, today's linux-next build (x86_64
allmodconfig) failed like this:

drivers/tty/serial/kgdboc.c:418:13: error: expected declaration specifiers or '...' before string constant
418 | early_param("ekgdboc", kgdboc_early_init);
| ^~~~~~~~~
drivers/tty/serial/kgdboc.c:418:24: error: expected declaration specifiers or '...' before 'kgdboc_early_init'
418 | early_param("ekgdboc", kgdboc_early_init);
| ^~~~~~~~~~~~~~~~~
drivers/tty/serial/kgdboc.c:546:13: error: expected declaration specifiers or '...' before string constant
546 | early_param("kgdboc_earlycon", kgdboc_earlycon_init);
| ^~~~~~~~~~~~~~~~~
drivers/tty/serial/kgdboc.c:546:32: error: expected declaration specifiers or '...' before 'kgdboc_earlycon_init'
546 | early_param("kgdboc_earlycon", kgdboc_earlycon_init);
| ^~~~~~~~~~~~~~~~~~~~
drivers/tty/serial/kgdboc.c:505:19: warning: 'kgdboc_earlycon_init' defined but not used [-Wunused-function]
505 | static int __init kgdboc_earlycon_init(char *opt)
| ^~~~~~~~~~~~~~~~~~~~
drivers/tty/serial/kgdboc.c:411:19: warning: 'kgdboc_early_init' defined but not used [-Wunused-function]
411 | static int __init kgdboc_early_init(char *opt)
| ^~~~~~~~~~~~~~~~~

Caused by commit

220995622da5 ("kgdboc: Add kgdboc_earlycon to support early kgdb using boot consoles")

I have used the kgdb tree from next-20200518 for today.

--
Cheers,
Stephen Rothwell

Attachment: pgpD0vJn1twca.pgp
Description: OpenPGP digital signature