CC: [email protected] CC: [email protected] CC: [email protected] TO: Boqun Feng <[email protected]> CC: Peter Zijlstra <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core head: 96a16f45aed89cf024606a11679b0609d09552c7 commit: f611e8cf98ec908b9c2c0da6064a660fc6022487 [30/35] lockdep: Take read/write status in consideration when generate chainkey :::::: branch date: 26 hours ago :::::: commit date: 26 hours ago compiler: sparc64-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> cppcheck warnings: (new ones prefixed by >>) kernel/locking/lockdep.c:4887:6: warning: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] ret = NULL; ^ kernel/locking/lockdep.c:4883:6: note: Variable 'ret' is reassigned a value before the old one has been used. ret = hlock; ^ kernel/locking/lockdep.c:4887:6: note: Variable 'ret' is reassigned a value before the old one has been used. ret = NULL; ^ >> kernel/locking/lockdep.c:3284:6: warning: Local variable hlock_id shadows >> outer function [shadowFunction] u16 hlock_id; ^ kernel/locking/lockdep.c:377:19: note: Shadowed declaration static inline u16 hlock_id(struct held_lock *hlock) ^ kernel/locking/lockdep.c:3284:6: note: Shadow variable u16 hlock_id; ^ # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=f611e8cf98ec908b9c2c0da6064a660fc6022487 git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git git fetch --no-tags tip locking/core git checkout f611e8cf98ec908b9c2c0da6064a660fc6022487 vim +3284 kernel/locking/lockdep.c 39e2e173fb1f90 Alfredo Alvarez Fernandez 2016-03-30 3279 39e2e173fb1f90 Alfredo Alvarez Fernandez 2016-03-30 3280 static void print_chain_keys_chain(struct lock_chain *chain) 39e2e173fb1f90 Alfredo Alvarez Fernandez 2016-03-30 3281 { 39e2e173fb1f90 Alfredo Alvarez Fernandez 2016-03-30 3282 int i; f6ec8829ac9d59 Yuyang Du 2019-05-06 3283 u64 chain_key = INITIAL_CHAIN_KEY; f611e8cf98ec90 Boqun Feng 2020-08-07 @3284 u16 hlock_id; 39e2e173fb1f90 Alfredo Alvarez Fernandez 2016-03-30 3285 39e2e173fb1f90 Alfredo Alvarez Fernandez 2016-03-30 3286 printk("depth: %u\n", chain->depth); 39e2e173fb1f90 Alfredo Alvarez Fernandez 2016-03-30 3287 for (i = 0; i < chain->depth; i++) { f611e8cf98ec90 Boqun Feng 2020-08-07 3288 hlock_id = chain_hlocks[chain->base + i]; f611e8cf98ec90 Boqun Feng 2020-08-07 3289 chain_key = print_chain_key_iteration(hlock_id, chain_key); 39e2e173fb1f90 Alfredo Alvarez Fernandez 2016-03-30 3290 f611e8cf98ec90 Boqun Feng 2020-08-07 3291 print_lock_name(lock_classes + chain_hlock_class_idx(hlock_id) - 1); 39e2e173fb1f90 Alfredo Alvarez Fernandez 2016-03-30 3292 printk("\n"); 39e2e173fb1f90 Alfredo Alvarez Fernandez 2016-03-30 3293 } 39e2e173fb1f90 Alfredo Alvarez Fernandez 2016-03-30 3294 } 39e2e173fb1f90 Alfredo Alvarez Fernandez 2016-03-30 3295 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected] _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
