* [norov:cpumask_next_wrap5 1/13] include/linux/objpool.h:173:6: error: variable 'start' set but not used
@ 2024-10-16 1:36 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-16 1:36 UTC (permalink / raw)
To: Yury Norov; +Cc: oe-kbuild-all
tree: https://github.com/norov/linux cpumask_next_wrap5
head: d2ce21c762c90540ac4114fe274ffa7bb0627c4c
commit: baca98459e3b3f1c64f4d61deba92fa15a0a1c91 [1/13] objpool: rework objpool_pop()
config: i386-buildonly-randconfig-005-20241016 (https://download.01.org/0day-ci/archive/20241016/202410160948.7SEfTmD4-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241016/202410160948.7SEfTmD4-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410160948.7SEfTmD4-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/drm_debugfs_crc.c:35:
In file included from include/drm/drm_crtc.h:32:
In file included from include/drm/drm_modes.h:33:
In file included from include/drm/drm_connector.h:32:
In file included from include/drm/drm_util.h:36:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:29:
>> include/linux/objpool.h:173:6: error: variable 'start' set but not used [-Werror,-Wunused-but-set-variable]
173 | int start, cpu;
| ^
1 error generated.
vim +/start +173 include/linux/objpool.h
162
163 /**
164 * objpool_pop() - allocate an object from objpool
165 * @pool: object pool
166 *
167 * return value: object ptr or NULL if failed
168 */
169 static inline void *objpool_pop(struct objpool_head *pool)
170 {
171 void *obj = NULL;
172 unsigned long flags;
> 173 int start, cpu;
174
175 /* disable local irq to avoid preemption & interruption */
176 raw_local_irq_save(flags);
177
178 start = raw_smp_processor_id();
179 for_each_possible_cpu_wrap(cpu, start) {
180 obj = __objpool_try_get_slot(pool, cpu);
181 if (obj)
182 break;
183 }
184 raw_local_irq_restore(flags);
185
186 return obj;
187 }
188
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-10-16 1:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-16 1:36 [norov:cpumask_next_wrap5 1/13] include/linux/objpool.h:173:6: error: variable 'start' set but not used kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.