tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing head: 53d40bb0f146410c58d791da5bd66451513e96ec commit: ecd7ad1f7295130f30cce2e2ded2774dfdb32592 [73/98] tty: serial: amba: Use linux/bits.h macros for constant declarations config: arm-randconfig-003-20231124 (https://download.01.org/0day-ci/archive/20231124/202311241523.IZ8ifBRi-lkp@xxxxxxxxx/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231124/202311241523.IZ8ifBRi-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202311241523.IZ8ifBRi-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): >> drivers/tty/serial/amba-pl011.c:128:12: error: call to undeclared function 'FIELD_PREP_CONST'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 128 | .ifls = UART011_IFLS_RX4_8|UART011_IFLS_TX4_8, | ^ include/linux/amba/serial.h:158:28: note: expanded from macro 'UART011_IFLS_RX4_8' 158 | #define UART011_IFLS_RX4_8 FIELD_PREP_CONST(UART011_IFLS_RXIFLSEL, 2) | ^ >> drivers/tty/serial/amba-pl011.c:128:12: error: initializer element is not a compile-time constant 128 | .ifls = UART011_IFLS_RX4_8|UART011_IFLS_TX4_8, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/amba/serial.h:158:28: note: expanded from macro 'UART011_IFLS_RX4_8' 158 | #define UART011_IFLS_RX4_8 FIELD_PREP_CONST(UART011_IFLS_RXIFLSEL, 2) | ^ drivers/tty/serial/amba-pl011.c:206:12: error: initializer element is not a compile-time constant 206 | .ifls = UART011_IFLS_RX_HALF|UART011_IFLS_TX_HALF, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/amba/serial.h:168:30: note: expanded from macro 'UART011_IFLS_RX_HALF' 168 | #define UART011_IFLS_RX_HALF FIELD_PREP_CONST(UART011_IFLS_RXIFLSEL, 5) | ^ 3 errors generated. vim +/FIELD_PREP_CONST +128 drivers/tty/serial/amba-pl011.c 78506f223a7bb7 drivers/tty/serial/amba-pl011.c Jongsung Kim 2013-04-15 125 5926a295bb7827 drivers/serial/amba-pl011.c Alessandro Rubini 2009-06-04 126 static struct vendor_data vendor_arm = { 439403bde9fc9e drivers/tty/serial/amba-pl011.c Russell King 2015-11-16 127 .reg_offset = pl011_std_offsets, 5926a295bb7827 drivers/serial/amba-pl011.c Alessandro Rubini 2009-06-04 @128 .ifls = UART011_IFLS_RX4_8|UART011_IFLS_TX4_8, 0e125a5facf857 drivers/tty/serial/amba-pl011.c Shawn Guo 2016-07-08 129 .fr_busy = UART01x_FR_BUSY, 0e125a5facf857 drivers/tty/serial/amba-pl011.c Shawn Guo 2016-07-08 130 .fr_dsr = UART01x_FR_DSR, 0e125a5facf857 drivers/tty/serial/amba-pl011.c Shawn Guo 2016-07-08 131 .fr_cts = UART01x_FR_CTS, 0e125a5facf857 drivers/tty/serial/amba-pl011.c Shawn Guo 2016-07-08 132 .fr_ri = UART011_FR_RI, ac3e3fb424d441 drivers/serial/amba-pl011.c Linus Walleij 2010-06-02 133 .oversampling = false, 38d624361b2a82 drivers/serial/amba-pl011.c Russell King 2010-12-22 134 .dma_threshold = false, 4fd0690bb0c395 drivers/tty/serial/amba-pl011.c Rajanikanth H.V 2012-03-26 135 .cts_event_workaround = false, 71eec4836b834b drivers/tty/serial/amba-pl011.c Andre Przywara 2015-05-21 136 .always_enabled = false, cefc2d1d66f0e0 drivers/tty/serial/amba-pl011.c Andre Przywara 2015-05-21 137 .fixed_options = false, 78506f223a7bb7 drivers/tty/serial/amba-pl011.c Jongsung Kim 2013-04-15 138 .get_fifosize = get_fifosize_arm, 5926a295bb7827 drivers/serial/amba-pl011.c Alessandro Rubini 2009-06-04 139 }; 5926a295bb7827 drivers/serial/amba-pl011.c Alessandro Rubini 2009-06-04 140 :::::: The code at line 128 was first introduced by commit :::::: 5926a295bb78272b3f648f62febecd19a1b6a6ca [ARM] 5541/1: serial/amba-pl011.c: add support for the modified port found in Nomadik :::::: TO: Alessandro Rubini <rubini@xxxxxxxxx> :::::: CC: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki