[android-common:android12-5.10 1/1] kernel/kcov.c:296:14: warning: mismatch in argument 1 type of built-in function '__sanitizer_cov_trace_switch'; expected 'long unsigned int'
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
Hi Kees, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android12-5.10 head: 1d929bc650954dfa344168039d30b1bc13a3e48e commit: c2985e13ddc87258e98fad13e435129a210092b6 [1/1] UPSTREAM: ubsan: enable for all*config builds config: arm64-randconfig-003-20260813 (https://download.01.org/0day-ci/archive/20260813/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 9.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260813/[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 warnings (new ones prefixed by >>): kernel/kcov.c:262:14: warning: mismatch in argument 1 type of built-in function '__sanitizer_cov_trace_cmp8'; expected 'long unsigned int' [-Wbuiltin-declaration-mismatch] 262 | void notrace __sanitizer_cov_trace_cmp8(u64 arg1, u64 arg2) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/kcov.c:289:14: warning: mismatch in argument 1 type of built-in function '__sanitizer_cov_trace_const_cmp8'; expected 'long unsigned int' [-Wbuiltin-declaration-mismatch] 289 | void notrace __sanitizer_cov_trace_const_cmp8(u64 arg1, u64 arg2) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> kernel/kcov.c:296:14: warning: mismatch in argument 1 type of built-in function '__sanitizer_cov_trace_switch'; expected 'long unsigned int' [-Wbuiltin-declaration-mismatch] 296 | void notrace __sanitizer_cov_trace_switch(u64 val, u64 *cases) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for NET_PTP_CLASSIFY Depends on [n]: NET [=n] Selected by [y]: - GKI_HIDDEN_NET_CONFIGS [=y] WARNING: unmet direct dependencies detected for HVC_DRIVER Depends on [n]: TTY [=n] Selected by [y]: - GKI_HIDDEN_VIRTUAL_CONFIGS [=y] WARNING: unmet direct dependencies detected for PAGE_POOL Depends on [n]: NET [=n] Selected by [y]: - GKI_HIDDEN_NET_CONFIGS [=y] vim +296 kernel/kcov.c ded97d2c2b2c5f Victor Chibotaru 2017-11-17 261 ded97d2c2b2c5f Victor Chibotaru 2017-11-17 @262 void notrace __sanitizer_cov_trace_cmp8(u64 arg1, u64 arg2) ded97d2c2b2c5f Victor Chibotaru 2017-11-17 263 { ded97d2c2b2c5f Victor Chibotaru 2017-11-17 264 write_comp_data(KCOV_CMP_SIZE(3), arg1, arg2, _RET_IP_); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 265 } ded97d2c2b2c5f Victor Chibotaru 2017-11-17 266 EXPORT_SYMBOL(__sanitizer_cov_trace_cmp8); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 267 ded97d2c2b2c5f Victor Chibotaru 2017-11-17 268 void notrace __sanitizer_cov_trace_const_cmp1(u8 arg1, u8 arg2) ded97d2c2b2c5f Victor Chibotaru 2017-11-17 269 { ded97d2c2b2c5f Victor Chibotaru 2017-11-17 270 write_comp_data(KCOV_CMP_SIZE(0) | KCOV_CMP_CONST, arg1, arg2, ded97d2c2b2c5f Victor Chibotaru 2017-11-17 271 _RET_IP_); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 272 } ded97d2c2b2c5f Victor Chibotaru 2017-11-17 273 EXPORT_SYMBOL(__sanitizer_cov_trace_const_cmp1); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 274 ded97d2c2b2c5f Victor Chibotaru 2017-11-17 275 void notrace __sanitizer_cov_trace_const_cmp2(u16 arg1, u16 arg2) ded97d2c2b2c5f Victor Chibotaru 2017-11-17 276 { ded97d2c2b2c5f Victor Chibotaru 2017-11-17 277 write_comp_data(KCOV_CMP_SIZE(1) | KCOV_CMP_CONST, arg1, arg2, ded97d2c2b2c5f Victor Chibotaru 2017-11-17 278 _RET_IP_); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 279 } ded97d2c2b2c5f Victor Chibotaru 2017-11-17 280 EXPORT_SYMBOL(__sanitizer_cov_trace_const_cmp2); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 281 689d77f001cd22 Dmitry Vyukov 2017-12-14 282 void notrace __sanitizer_cov_trace_const_cmp4(u32 arg1, u32 arg2) ded97d2c2b2c5f Victor Chibotaru 2017-11-17 283 { ded97d2c2b2c5f Victor Chibotaru 2017-11-17 284 write_comp_data(KCOV_CMP_SIZE(2) | KCOV_CMP_CONST, arg1, arg2, ded97d2c2b2c5f Victor Chibotaru 2017-11-17 285 _RET_IP_); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 286 } ded97d2c2b2c5f Victor Chibotaru 2017-11-17 287 EXPORT_SYMBOL(__sanitizer_cov_trace_const_cmp4); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 288 ded97d2c2b2c5f Victor Chibotaru 2017-11-17 289 void notrace __sanitizer_cov_trace_const_cmp8(u64 arg1, u64 arg2) ded97d2c2b2c5f Victor Chibotaru 2017-11-17 290 { ded97d2c2b2c5f Victor Chibotaru 2017-11-17 291 write_comp_data(KCOV_CMP_SIZE(3) | KCOV_CMP_CONST, arg1, arg2, ded97d2c2b2c5f Victor Chibotaru 2017-11-17 292 _RET_IP_); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 293 } ded97d2c2b2c5f Victor Chibotaru 2017-11-17 294 EXPORT_SYMBOL(__sanitizer_cov_trace_const_cmp8); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 295 ded97d2c2b2c5f Victor Chibotaru 2017-11-17 @296 void notrace __sanitizer_cov_trace_switch(u64 val, u64 *cases) ded97d2c2b2c5f Victor Chibotaru 2017-11-17 297 { ded97d2c2b2c5f Victor Chibotaru 2017-11-17 298 u64 i; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 299 u64 count = cases[0]; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 300 u64 size = cases[1]; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 301 u64 type = KCOV_CMP_CONST; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 302 ded97d2c2b2c5f Victor Chibotaru 2017-11-17 303 switch (size) { ded97d2c2b2c5f Victor Chibotaru 2017-11-17 304 case 8: ded97d2c2b2c5f Victor Chibotaru 2017-11-17 305 type |= KCOV_CMP_SIZE(0); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 306 break; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 307 case 16: ded97d2c2b2c5f Victor Chibotaru 2017-11-17 308 type |= KCOV_CMP_SIZE(1); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 309 break; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 310 case 32: ded97d2c2b2c5f Victor Chibotaru 2017-11-17 311 type |= KCOV_CMP_SIZE(2); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 312 break; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 313 case 64: ded97d2c2b2c5f Victor Chibotaru 2017-11-17 314 type |= KCOV_CMP_SIZE(3); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 315 break; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 316 default: ded97d2c2b2c5f Victor Chibotaru 2017-11-17 317 return; ded97d2c2b2c5f Victor Chibotaru 2017-11-17 318 } ded97d2c2b2c5f Victor Chibotaru 2017-11-17 319 for (i = 0; i < count; i++) ded97d2c2b2c5f Victor Chibotaru 2017-11-17 320 write_comp_data(type, cases[i + 2], val, _RET_IP_); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 321 } ded97d2c2b2c5f Victor Chibotaru 2017-11-17 322 EXPORT_SYMBOL(__sanitizer_cov_trace_switch); ded97d2c2b2c5f Victor Chibotaru 2017-11-17 323 #endif /* ifdef CONFIG_KCOV_ENABLE_COMPARISONS */ ded97d2c2b2c5f Victor Chibotaru 2017-11-17 324 :::::: The code at line 296 was first introduced by commit :::::: ded97d2c2b2c5f1dcced0bc57133f7753b037dfc kcov: support comparison operands collection :::::: TO: Victor Chibotaru <[email protected]> :::::: CC: Linus Torvalds <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki