[openeuler:OLK-6.6 3195/3195] block/blk-ioinf.c:233:6: warning: no previous prototype for function 'ioinf_done'
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 3abd440f300fe9312974a2d65499ca4ff872363a commit: a63e78514d119d4ee6525e1cc3a0aca4a2b29cbd [3195/3195] blk-ioinf: introduce inflight-based IO QoS controller config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20251116/202511160039.06UP1LhU-lkp@i...) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 0bba1e76581bad04e7d7f09f5115ae5e2989e0d9) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251116/202511160039.06UP1LhU-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/202511160039.06UP1LhU-lkp@intel.com/ All warnings (new ones prefixed by >>):
block/blk-ioinf.c:233:6: warning: no previous prototype for function 'ioinf_done' [-Wmissing-prototypes] 233 | void ioinf_done(struct ioinf *inf, struct ioinf_rq_wait *rqw) | ^ block/blk-ioinf.c:233:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 233 | void ioinf_done(struct ioinf *inf, struct ioinf_rq_wait *rqw) | ^ | static block/blk-ioinf.c:461:5: warning: no previous prototype for function 'ioinf_calc_budget' [-Wmissing-prototypes] 461 | u32 ioinf_calc_budget(struct ioinf_rq_wait *rqw) | ^ block/blk-ioinf.c:461:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 461 | u32 ioinf_calc_budget(struct ioinf_rq_wait *rqw) | ^ | static 2 warnings generated.
vim +/ioinf_done +233 block/blk-ioinf.c 232
233 void ioinf_done(struct ioinf *inf, struct ioinf_rq_wait *rqw) 234 { 235 int inflight; 236 237 if (!inf->params.enabled) 238 return; 239 240 inflight = atomic_dec_return(&rqw->inflight); 241 if (inflight >= (int)rqw->hinflight) 242 return; 243 244 if (!READ_ONCE(inf->waking) && atomic_read(&rqw->sleepers)) { 245 WRITE_ONCE(inf->waking, true); 246 hrtimer_start(&inf->wakeup_timer, 0, HRTIMER_MODE_REL); 247 } 248 } 249
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot