Hi Charlie, kernel test robot noticed the following build errors:
[auto build test ERROR on c107785c7e8dbabd1c18301a1c362544b5786282] url: https://github.com/intel-lab-lkp/linux/commits/Charlie-Jenkins-via-B4-Relay/selftests-riscv-Add-definition-of-BIT-macro/20260305-164838 base: c107785c7e8dbabd1c18301a1c362544b5786282 patch link: https://lore.kernel.org/r/20260305-fix_selftests-v1-1-61b62d23500b%40gmail.com patch subject: [PATCH 1/4] selftests: riscv: Add definition of BIT() macro config: riscv-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260305/[email protected]/config) compiler: riscv64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260305/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): In file included from /usr/riscv64-linux-gnu/include/stdint.h:34, from /usr/lib/gcc-cross/riscv64-linux-gnu/14/include/stdint.h:9, from tools/testing/selftests/../../../tools/include/linux/types.h:7, from ./../../../../include/nolibc/std.h:19, from ./../../../../include/nolibc/nolibc.h:95, from <command-line>: >> /usr/riscv64-linux-gnu/include/bits/stdint-intn.h:27:19: error: conflicting >> types for 'int64_t'; have '__int64_t' {aka 'long int'} 27 | typedef __int64_t int64_t; | ^~~~~~~ In file included from ./../../../../include/nolibc/std.h:16: ./../../../../include/nolibc/stdint.h:17:29: note: previous declaration of 'int64_t' with type 'int64_t' {aka 'long long int'} 17 | typedef signed long long int64_t; | ^~~~~~~ In file included from /usr/riscv64-linux-gnu/include/stdint.h:37: >> /usr/riscv64-linux-gnu/include/bits/stdint-uintn.h:27:20: error: conflicting >> types for 'uint64_t'; have '__uint64_t' {aka 'long unsigned int'} 27 | typedef __uint64_t uint64_t; | ^~~~~~~~ ./../../../../include/nolibc/stdint.h:16:28: note: previous declaration of 'uint64_t' with type 'uint64_t' {aka 'long long unsigned int'} 16 | typedef unsigned long long uint64_t; | ^~~~~~~~ In file included from /usr/riscv64-linux-gnu/include/stdint.h:41: >> /usr/riscv64-linux-gnu/include/bits/stdint-least.h:28:25: error: conflicting >> types for 'int_least64_t'; have '__int_least64_t' {aka 'long int'} 28 | typedef __int_least64_t int_least64_t; | ^~~~~~~~~~~~~ ./../../../../include/nolibc/stdint.h:30:23: note: previous declaration of 'int_least64_t' with type 'int_least64_t' {aka 'long long int'} 30 | typedef int64_t int_least64_t; | ^~~~~~~~~~~~~ >> /usr/riscv64-linux-gnu/include/bits/stdint-least.h:34:26: error: conflicting >> types for 'uint_least64_t'; have '__uint_least64_t' {aka 'long unsigned int'} 34 | typedef __uint_least64_t uint_least64_t; | ^~~~~~~~~~~~~~ ./../../../../include/nolibc/stdint.h:31:22: note: previous declaration of 'uint_least64_t' with type 'uint_least64_t' {aka 'long long unsigned int'} 31 | typedef uint64_t uint_least64_t; | ^~~~~~~~~~~~~~ >> /usr/riscv64-linux-gnu/include/stdint.h:51:33: error: conflicting types for >> 'int_fast64_t'; have 'long int' 51 | typedef long int int_fast64_t; | ^~~~~~~~~~~~ ./../../../../include/nolibc/stdint.h:39:24: note: previous declaration of 'int_fast64_t' with type 'int_fast64_t' {aka 'long long int'} 39 | typedef int64_t int_fast64_t; | ^~~~~~~~~~~~ >> /usr/riscv64-linux-gnu/include/stdint.h:64:33: error: conflicting types for >> 'uint_fast64_t'; have 'long unsigned int' 64 | typedef unsigned long int uint_fast64_t; | ^~~~~~~~~~~~~ ./../../../../include/nolibc/stdint.h:40:23: note: previous declaration of 'uint_fast64_t' with type 'uint_fast64_t' {aka 'long long unsigned int'} 40 | typedef uint64_t uint_fast64_t; | ^~~~~~~~~~~~~ -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki

