From: kernel test robot <lkp@intel.com>
To: Yury Norov <yury.norov@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [norov:cpumask_next_wrap5 1/13] include/linux/objpool.h:173:6: error: variable 'start' set but not used
Date: Wed, 16 Oct 2024 09:36:59 +0800 [thread overview]
Message-ID: <202410160948.7SEfTmD4-lkp@intel.com> (raw)
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
reply other threads:[~2024-10-16 1:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202410160948.7SEfTmD4-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yury.norov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.