[openeuler:OLK-5.10 2954/2954] ipc/fast_ipc.c:249:18: warning: variable 'pending_signals' set but not used

tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 90ff3e07cc268a8e40bd578dcc4907a3db419c52 commit: 1fc14d09b9f01b271181b25cc434d200e220c4d3 [2954/2954] ipc: add fast_ipc module to enable fast process switching config: arm64-randconfig-r133-20250610 (https://download.01.org/0day-ci/archive/20250612/202506120113.Q1CFi903-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.3.0 reproduce: (https://download.01.org/0day-ci/archive/20250612/202506120113.Q1CFi903-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/202506120113.Q1CFi903-lkp@intel.com/ All warnings (new ones prefixed by >>): ipc/fast_ipc.c: In function 'fast_ipc_wait_call':
ipc/fast_ipc.c:249:18: warning: variable 'pending_signals' set but not used [-Wunused-but-set-variable] 249 | sigset_t pending_signals; | ^~~~~~~~~~~~~~~
vim +/pending_signals +249 ipc/fast_ipc.c 244 245 long fast_ipc_wait_call(struct fast_ipc_bind_info *bind_info, 246 struct task_struct *tsk) 247 { 248 long ret = 0;
249 sigset_t pending_signals; 250 251 for (;;) { 252 set_current_state(TASK_INTERRUPTIBLE); 253 if (bind_info->is_calling) 254 break; 255 256 if (bind_info->server_need_exit) { 257 ret = -ENODEV; 258 break; 259 } 260 261 schedule(); 262 263 if (signal_pending_state(TASK_INTERRUPTIBLE, tsk) 264 && !bind_info->is_calling) { 265 if (fatal_signal_pending(tsk)) { 266 pr_err("[CPU/%d][%s/%d] current task has SIGKILL\n", 267 smp_processor_id(), tsk->comm, tsk->pid); 268 } 269 270 pending_signals = current->pending.signal; 271 ret = -ERESTARTSYS; 272 break; 273 } 274 } 275 276 set_current_state(TASK_RUNNING); 277 return ret; 278 } 279 EXPORT_SYMBOL_GPL(fast_ipc_wait_call); 280
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot