[openeuler:openEuler-1.0-LTS 1593/1593] block/genhd.c:525: warning: Function parameter or member 'devt' not described in 'blk_invalidate_devt'

tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 08111f03f1ec65598372cfe9bf64f366d575671e commit: 56b5af39e17ef421c545d43ca4d07995c30c93da [1593/1593] block: fix use-after-free on gendisk config: arm64-defconfig (https://download.01.org/0day-ci/archive/20250425/202504250827.FCNrED1Z-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250425/202504250827.FCNrED1Z-lkp@i...) 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@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202504250827.FCNrED1Z-lkp@intel.com/ All warnings (new ones prefixed by >>):
block/genhd.c:525: warning: Function parameter or member 'devt' not described in 'blk_invalidate_devt'
vim +525 block/genhd.c 520 521 /** 522 * We invalidate devt by assigning NULL pointer for devt in idr. 523 */ 524 void blk_invalidate_devt(dev_t devt)
525 { 526 if (MAJOR(devt) == BLOCK_EXT_MAJOR) { 527 spin_lock_bh(&ext_devt_lock); 528 idr_replace(&ext_devt_idr, NULL, blk_mangle_minor(MINOR(devt))); 529 spin_unlock_bh(&ext_devt_lock); 530 } 531 } 532
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot