[openeuler:OLK-6.6 3098/3098] block/bpf-rvi.c:36:28: error: implicit declaration of function 'css_to_blkcg'; did you mean 'pd_to_blkg'?
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 25097b0e8b7a08363a1cba931a5762548a3b0e16 commit: 89fa7dcff5e533bd14396601f40c388cfb6c1e59 [3098/3098] bpf-rvi: block: Add diskstats iterator target config: x86_64-randconfig-001-20251104 (https://download.01.org/0day-ci/archive/20251104/202511041808.gFZ75q5u-lkp@i...) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251104/202511041808.gFZ75q5u-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/202511041808.gFZ75q5u-lkp@intel.com/ All errors (new ones prefixed by >>): block/bpf-rvi.c: In function 'bpf_disk_seqf_start':
block/bpf-rvi.c:36:28: error: implicit declaration of function 'css_to_blkcg'; did you mean 'pd_to_blkg'? [-Wimplicit-function-declaration] 36 | priv->task_blkcg = css_to_blkcg(task_css(reaper ?: current, io_cgrp_id)); | ^~~~~~~~~~~~ | pd_to_blkg block/bpf-rvi.c:36:69: error: 'io_cgrp_id' undeclared (first use in this function); did you mean 'cpu_cgrp_id'? 36 | priv->task_blkcg = css_to_blkcg(task_css(reaper ?: current, io_cgrp_id)); | ^~~~~~~~~~ | cpu_cgrp_id block/bpf-rvi.c:36:69: note: each undeclared identifier is reported only once for each function it appears in
vim +36 block/bpf-rvi.c 20 21 /* 22 * Basically the same with disk_seqf_start() but without allocating iter and 23 * then overwriting seqf->private, which points to priv_data->target_private 24 * in bpf_iter case (see prepare_seq_file()), and is needed to retrieve 25 * struct bpf_iter_priv_data. Here we allocate iter via setting 26 * .seq_priv_size and turning priv_data->target_private into iter. 27 */ 28 static void *bpf_disk_seqf_start(struct seq_file *seqf, loff_t *pos) 29 { 30 loff_t skip = *pos; 31 struct diskstats_seq_priv *priv = seqf->private; 32 struct class_dev_iter *iter; 33 struct device *dev; 34 struct task_struct *reaper = get_current_level1_reaper(); 35
36 priv->task_blkcg = css_to_blkcg(task_css(reaper ?: current, io_cgrp_id)); 37 if (reaper) 38 put_task_struct(reaper); 39 40 iter = &priv->iter; 41 class_dev_iter_init(iter, &block_class, NULL, &disk_type); 42 do { 43 dev = class_dev_iter_next(iter); 44 if (!dev) 45 return NULL; 46 } while (skip--); 47 48 return dev_to_disk(dev); 49 } 50
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot