tree: git://git.armlinux.org.uk/~rmk/linux-arm sa1100 head: 2e73962c8797ccdf52841ea3065779839ac60e0e commit: cbd9dc8cc7a7ad1790670c6652520fa866a9c72d [26/51] tty: serial_mctrl_gpio: add wakeup support for serial control gpios config: mips-vocore2_defconfig compiler: mipsel-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm git fetch --no-tags rmk-arm sa1100 git checkout cbd9dc8cc7a7ad1790670c6652520fa866a9c72d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/tty/serial/8250/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): | ^ drivers/tty/serial/8250/8250_port.c:310:9: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:311:17: error: field name not in record or union initializer 311 | .name = "ASPEED VUART", | ^ drivers/tty/serial/8250/8250_port.c:311:17: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:311:35: error: initialization of 'const struct serial8250_config *' from incompatible pointer type 'char *' [-Werror=incompatible-pointer-types] 311 | .name = "ASPEED VUART", | ^~~~~~~~~~~~~~ drivers/tty/serial/8250/8250_port.c:311:35: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:312:17: error: field name not in record or union initializer 312 | .fifo_size = 16, | ^ drivers/tty/serial/8250/8250_port.c:312:17: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:312:35: warning: excess elements in scalar initializer 312 | .fifo_size = 16, | ^~ drivers/tty/serial/8250/8250_port.c:312:35: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:313:17: error: field name not in record or union initializer 313 | .tx_loadsz = 16, | ^ drivers/tty/serial/8250/8250_port.c:313:17: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:313:35: warning: excess elements in scalar initializer 313 | .tx_loadsz = 16, | ^~ drivers/tty/serial/8250/8250_port.c:313:35: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:314:17: error: field name not in record or union initializer 314 | .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_00, | ^ drivers/tty/serial/8250/8250_port.c:314:17: note: (near initialization for 'uart_config') include/uapi/linux/serial_reg.h:49:33: warning: excess elements in scalar initializer 49 | #define UART_FCR_ENABLE_FIFO 0x01 /* Enable the FIFO */ | ^~~~ drivers/tty/serial/8250/8250_port.c:314:35: note: in expansion of macro 'UART_FCR_ENABLE_FIFO' 314 | .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_00, | ^~~~~~~~~~~~~~~~~~~~ include/uapi/linux/serial_reg.h:49:33: note: (near initialization for 'uart_config') 49 | #define UART_FCR_ENABLE_FIFO 0x01 /* Enable the FIFO */ | ^~~~ drivers/tty/serial/8250/8250_port.c:314:35: note: in expansion of macro 'UART_FCR_ENABLE_FIFO' 314 | .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_00, | ^~~~~~~~~~~~~~~~~~~~ drivers/tty/serial/8250/8250_port.c:315:17: error: field name not in record or union initializer 315 | .rxtrig_bytes = {1, 4, 8, 14}, | ^ drivers/tty/serial/8250/8250_port.c:315:17: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:315:17: warning: braces around scalar initializer drivers/tty/serial/8250/8250_port.c:315:17: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:315:36: warning: initialization of 'const struct serial8250_config *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 315 | .rxtrig_bytes = {1, 4, 8, 14}, | ^ drivers/tty/serial/8250/8250_port.c:315:36: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:315:39: warning: excess elements in scalar initializer 315 | .rxtrig_bytes = {1, 4, 8, 14}, | ^ drivers/tty/serial/8250/8250_port.c:315:39: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:315:42: warning: excess elements in scalar initializer 315 | .rxtrig_bytes = {1, 4, 8, 14}, | ^ drivers/tty/serial/8250/8250_port.c:315:42: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:315:45: warning: excess elements in scalar initializer 315 | .rxtrig_bytes = {1, 4, 8, 14}, | ^~ drivers/tty/serial/8250/8250_port.c:315:45: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:315:35: warning: excess elements in scalar initializer 315 | .rxtrig_bytes = {1, 4, 8, 14}, | ^ drivers/tty/serial/8250/8250_port.c:315:35: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:316:17: error: field name not in record or union initializer 316 | .flags = UART_CAP_FIFO, | ^ drivers/tty/serial/8250/8250_port.c:316:17: note: (near initialization for 'uart_config') include/vdso/bits.h:7:33: warning: excess elements in scalar initializer 7 | #define BIT(nr) (UL(1) << (nr)) | ^ drivers/tty/serial/8250/8250.h:76:25: note: in expansion of macro 'BIT' 76 | #define UART_CAP_FIFO BIT(8) /* UART has FIFO */ | ^~~ drivers/tty/serial/8250/8250_port.c:316:35: note: in expansion of macro 'UART_CAP_FIFO' 316 | .flags = UART_CAP_FIFO, | ^~~~~~~~~~~~~ include/vdso/bits.h:7:33: note: (near initialization for 'uart_config') 7 | #define BIT(nr) (UL(1) << (nr)) | ^ drivers/tty/serial/8250/8250.h:76:25: note: in expansion of macro 'BIT' 76 | #define UART_CAP_FIFO BIT(8) /* UART has FIFO */ | ^~~ drivers/tty/serial/8250/8250_port.c:316:35: note: in expansion of macro 'UART_CAP_FIFO' 316 | .flags = UART_CAP_FIFO, | ^~~~~~~~~~~~~ drivers/tty/serial/8250/8250_port.c:310:31: warning: excess elements in scalar initializer 310 | [PORT_ASPEED_VUART] = { | ^ drivers/tty/serial/8250/8250_port.c:310:31: note: (near initialization for 'uart_config') drivers/tty/serial/8250/8250_port.c:322:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 322 | { | ^ drivers/tty/serial/8250/8250_port.c:332:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 332 | { | ^ >> drivers/tty/serial/8250/8250_port.c:340:17: error: storage class specified for parameter 'au_io_in_map' 340 | static const s8 au_io_in_map[8] = { | ^~~~~~~~~~~~ >> drivers/tty/serial/8250/8250_port.c:340:1: error: parameter 'au_io_in_map' is initialized 340 | static const s8 au_io_in_map[8] = { | ^~~~~~ drivers/tty/serial/8250/8250_port.c:342:10: warning: excess elements in scalar initializer 342 | 2, /* UART_IER */ | ^ drivers/tty/serial/8250/8250_port.c:342:10: note: (near initialization for 'au_io_in_map') drivers/tty/serial/8250/8250_port.c:343:10: warning: excess elements in scalar initializer 343 | 3, /* UART_IIR */ | ^ drivers/tty/serial/8250/8250_port.c:343:10: note: (near initialization for 'au_io_in_map') drivers/tty/serial/8250/8250_port.c:344:10: warning: excess elements in scalar initializer 344 | 5, /* UART_LCR */ | ^ drivers/tty/serial/8250/8250_port.c:344:10: note: (near initialization for 'au_io_in_map') drivers/tty/serial/8250/8250_port.c:345:10: warning: excess elements in scalar initializer 345 | 6, /* UART_MCR */ | ^ drivers/tty/serial/8250/8250_port.c:345:10: note: (near initialization for 'au_io_in_map') drivers/tty/serial/8250/8250_port.c:346:10: warning: excess elements in scalar initializer 346 | 7, /* UART_LSR */ | ^ drivers/tty/serial/8250/8250_port.c:346:10: note: (near initialization for 'au_io_in_map') drivers/tty/serial/8250/8250_port.c:347:10: warning: excess elements in scalar initializer 347 | 8, /* UART_MSR */ | ^ drivers/tty/serial/8250/8250_port.c:347:10: note: (near initialization for 'au_io_in_map') drivers/tty/serial/8250/8250_port.c:348:9: warning: excess elements in scalar initializer 348 | -1, /* UART_SCR (unmapped) */ | ^ drivers/tty/serial/8250/8250_port.c:348:9: note: (near initialization for 'au_io_in_map') >> drivers/tty/serial/8250/8250_port.c:351:17: error: storage class specified for parameter 'au_io_out_map' 351 | static const s8 au_io_out_map[8] = { | ^~~~~~~~~~~~~ >> drivers/tty/serial/8250/8250_port.c:351:1: error: parameter 'au_io_out_map' is initialized 351 | static const s8 au_io_out_map[8] = { | ^~~~~~ >> drivers/tty/serial/8250/8250_port.c:352:10: warning: initialization of 'const s8 *' {aka 'const signed char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 352 | 1, /* UART_TX */ | ^ drivers/tty/serial/8250/8250_port.c:352:10: note: (near initialization for 'au_io_out_map') drivers/tty/serial/8250/8250_port.c:353:10: warning: excess elements in scalar initializer 353 | 2, /* UART_IER */ | ^ drivers/tty/serial/8250/8250_port.c:353:10: note: (near initialization for 'au_io_out_map') drivers/tty/serial/8250/8250_port.c:354:10: warning: excess elements in scalar initializer 354 | 4, /* UART_FCR */ | ^ drivers/tty/serial/8250/8250_port.c:354:10: note: (near initialization for 'au_io_out_map') drivers/tty/serial/8250/8250_port.c:355:10: warning: excess elements in scalar initializer 355 | 5, /* UART_LCR */ | ^ drivers/tty/serial/8250/8250_port.c:355:10: note: (near initialization for 'au_io_out_map') drivers/tty/serial/8250/8250_port.c:356:10: warning: excess elements in scalar initializer 356 | 6, /* UART_MCR */ | ^ drivers/tty/serial/8250/8250_port.c:356:10: note: (near initialization for 'au_io_out_map') drivers/tty/serial/8250/8250_port.c:357:9: warning: excess elements in scalar initializer 357 | -1, /* UART_LSR (unmapped) */ | ^ drivers/tty/serial/8250/8250_port.c:357:9: note: (near initialization for 'au_io_out_map') drivers/tty/serial/8250/8250_port.c:358:9: warning: excess elements in scalar initializer 358 | -1, /* UART_MSR (unmapped) */ | ^ drivers/tty/serial/8250/8250_port.c:358:9: note: (near initialization for 'au_io_out_map') drivers/tty/serial/8250/8250_port.c:359:9: warning: excess elements in scalar initializer 359 | -1, /* UART_SCR (unmapped) */ | ^ drivers/tty/serial/8250/8250_port.c:359:9: note: (near initialization for 'au_io_out_map') drivers/tty/serial/8250/8250_port.c:363:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 363 | { | ^ drivers/tty/serial/8250/8250_port.c:373:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 373 | { | ^ drivers/tty/serial/8250/8250_port.c:384:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 384 | { | ^ drivers/tty/serial/8250/8250_port.c:389:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 389 | { | ^ drivers/tty/serial/8250/8250_port.c:396:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 396 | { | ^ drivers/tty/serial/8250/8250_port.c:403:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 403 | { | ^ drivers/tty/serial/8250/8250_port.c:410:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 410 | { | ^ drivers/tty/serial/8250/8250_port.c:416:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 416 | { | ^ drivers/tty/serial/8250/8250_port.c:422:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 422 | { | ^ drivers/tty/serial/8250/8250_port.c:428:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 428 | { | ^ drivers/tty/serial/8250/8250_port.c:434:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 434 | { | ^ drivers/tty/serial/8250/8250_port.c:440:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 440 | { | ^ drivers/tty/serial/8250/8250_port.c:446:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 446 | { | ^ drivers/tty/serial/8250/8250_port.c:452:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 452 | { | ^ drivers/tty/serial/8250/8250_port.c:458:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 458 | { | ^ drivers/tty/serial/8250/8250_port.c:464:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 464 | { | ^ drivers/tty/serial/8250/8250_port.c:469:12: error: storage class specified for parameter 'serial8250_default_handle_irq' 469 | static int serial8250_default_handle_irq(struct uart_port *port); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/tty/serial/8250/8250_port.c:472:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 472 | { | ^ drivers/tty/serial/8250/8250_port.c:525:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 525 | { | ^ drivers/tty/serial/8250/8250_port.c:544:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 544 | { | ^ drivers/tty/serial/8250/8250_port.c:553:29: error: storage class specified for parameter 'serial8250_em485_handle_start_tx' 553 | static enum hrtimer_restart serial8250_em485_handle_start_tx(struct hrtimer *t); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/tty/serial/8250/8250_port.c:554:29: error: storage class specified for parameter 'serial8250_em485_handle_stop_tx' 554 | static enum hrtimer_restart serial8250_em485_handle_stop_tx(struct hrtimer *t); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/tty/serial/8250/8250_port.c:557:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 557 | { | ^ >> drivers/tty/serial/8250/8250_port.c:561:53: error: expected declaration specifiers before ';' token 561 | EXPORT_SYMBOL_GPL(serial8250_clear_and_reinit_fifos); | ^ drivers/tty/serial/8250/8250_port.c:564:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 564 | { | ^ drivers/tty/serial/8250/8250_port.c:569:38: error: expected declaration specifiers before ';' token 569 | EXPORT_SYMBOL_GPL(serial8250_rpm_get); | ^ drivers/tty/serial/8250/8250_port.c:572:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 572 | { | ^ drivers/tty/serial/8250/8250_port.c:578:38: error: expected declaration specifiers before ';' token 578 | EXPORT_SYMBOL_GPL(serial8250_rpm_put); | ^ drivers/tty/serial/8250/8250_port.c:601:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 601 | { | ^ drivers/tty/serial/8250/8250_port.c:638:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 638 | { | ^ drivers/tty/serial/8250/8250_port.c:648:44: error: expected declaration specifiers before ';' token 648 | EXPORT_SYMBOL_GPL(serial8250_em485_destroy); | ^ drivers/tty/serial/8250/8250_port.c:660:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 660 | { | ^ drivers/tty/serial/8250/8250_port.c:697:43: error: expected declaration specifiers before ';' token 697 | EXPORT_SYMBOL_GPL(serial8250_em485_config); | ^ drivers/tty/serial/8250/8250_port.c:705:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 705 | { | ^ drivers/tty/serial/8250/8250_port.c:716:41: error: expected declaration specifiers before ';' token 716 | EXPORT_SYMBOL_GPL(serial8250_rpm_get_tx); | ^ drivers/tty/serial/8250/8250_port.c:719:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 719 | { | ^ drivers/tty/serial/8250/8250_port.c:731:41: error: expected declaration specifiers before ';' token 731 | EXPORT_SYMBOL_GPL(serial8250_rpm_put_tx); | ^ drivers/tty/serial/8250/8250_port.c:739:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 739 | { | ^ drivers/tty/serial/8250/8250_port.c:837:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 837 | { | ^ drivers/tty/serial/8250/8250_port.c:874:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 874 | { | ^ drivers/tty/serial/8250/8250_port.c:901:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 901 | { | ^ drivers/tty/serial/8250/8250_port.c:989:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 989 | { | ^ drivers/tty/serial/8250/8250_port.c:1006:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1006 | { | ^ drivers/tty/serial/8250/8250_port.c:1025:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1025 | { | ^ drivers/tty/serial/8250/8250_port.c:1191:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1191 | { | ^ drivers/tty/serial/8250/8250_port.c:1364:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1364 | { | ^ drivers/tty/serial/8250/8250_port.c:1419:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1419 | { | ^ drivers/tty/serial/8250/8250_port.c:1438:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1438 | { | ^ drivers/tty/serial/8250/8250_port.c:1459:44: error: expected declaration specifiers before ';' token 1459 | EXPORT_SYMBOL_GPL(serial8250_em485_stop_tx); | ^ drivers/tty/serial/8250/8250_port.c:1462:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1462 | { | ^ drivers/tty/serial/8250/8250_port.c:1482:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1482 | { | ^ drivers/tty/serial/8250/8250_port.c:1487:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1487 | { | ^ drivers/tty/serial/8250/8250_port.c:1507:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1507 | { | ^ drivers/tty/serial/8250/8250_port.c:1513:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1513 | { | ^ drivers/tty/serial/8250/8250_port.c:1551:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1551 | { | ^ drivers/tty/serial/8250/8250_port.c:1568:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1568 | { | ^ drivers/tty/serial/8250/8250_port.c:1605:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 1605 | { vim +/au_io_in_map +340 drivers/tty/serial/8250/8250_port.c b6830f6df8914f Peter Hurley 2015-06-27 338 b6830f6df8914f Peter Hurley 2015-06-27 339 /* Au1x00/RT288x UART hardware has a weird register layout */ b6830f6df8914f Peter Hurley 2015-06-27 @340 static const s8 au_io_in_map[8] = { b6830f6df8914f Peter Hurley 2015-06-27 341 0, /* UART_RX */ b6830f6df8914f Peter Hurley 2015-06-27 342 2, /* UART_IER */ b6830f6df8914f Peter Hurley 2015-06-27 343 3, /* UART_IIR */ b6830f6df8914f Peter Hurley 2015-06-27 344 5, /* UART_LCR */ b6830f6df8914f Peter Hurley 2015-06-27 345 6, /* UART_MCR */ b6830f6df8914f Peter Hurley 2015-06-27 346 7, /* UART_LSR */ b6830f6df8914f Peter Hurley 2015-06-27 347 8, /* UART_MSR */ b6830f6df8914f Peter Hurley 2015-06-27 348 -1, /* UART_SCR (unmapped) */ b6830f6df8914f Peter Hurley 2015-06-27 349 }; b6830f6df8914f Peter Hurley 2015-06-27 350 b6830f6df8914f Peter Hurley 2015-06-27 @351 static const s8 au_io_out_map[8] = { b6830f6df8914f Peter Hurley 2015-06-27 @352 1, /* UART_TX */ b6830f6df8914f Peter Hurley 2015-06-27 353 2, /* UART_IER */ b6830f6df8914f Peter Hurley 2015-06-27 354 4, /* UART_FCR */ b6830f6df8914f Peter Hurley 2015-06-27 355 5, /* UART_LCR */ b6830f6df8914f Peter Hurley 2015-06-27 356 6, /* UART_MCR */ b6830f6df8914f Peter Hurley 2015-06-27 357 -1, /* UART_LSR (unmapped) */ b6830f6df8914f Peter Hurley 2015-06-27 358 -1, /* UART_MSR (unmapped) */ b6830f6df8914f Peter Hurley 2015-06-27 359 -1, /* UART_SCR (unmapped) */ b6830f6df8914f Peter Hurley 2015-06-27 360 }; b6830f6df8914f Peter Hurley 2015-06-27 361 :::::: The code at line 340 was first introduced by commit :::::: b6830f6df8914faae9561bb245860c21af9b9e9b serial: 8250: Split base port operations from universal driver :::::: TO: Peter Hurley :::::: CC: Greg Kroah-Hartman -- 0-DAY CI Kernel Test Service https://01.org/lkp