[openeuler:OLK-5.10 3408/3408] drivers/crypto/ccp/hygon/tdm-dev.c:95:13: warning: variable 'ret' set but not used
tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: da8948fdddb84e5496272bab85973165594dd469 commit: 8011fdfd4cf33e84a51bab09ea76df4be3453037 [3408/3408] crypto: tdm: Add Hygon TDM driver config: x86_64-randconfig-074-20251212 (https://download.01.org/0day-ci/archive/20251213/202512130255.3H21JVbQ-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/20251213/202512130255.3H21JVbQ-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/202512130255.3H21JVbQ-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/crypto/ccp/hygon/tdm-dev.c: In function 'list_enqueue':
drivers/crypto/ccp/hygon/tdm-dev.c:95:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 95 | int ret = 0; | ^~~ drivers/crypto/ccp/hygon/tdm-dev.c: In function 'psp_create_measure_task': drivers/crypto/ccp/hygon/tdm-dev.c:610:27: warning: variable 'head' set but not used [-Wunused-but-set-variable] 610 | struct list_head *head = NULL; | ^~~~
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for PTP_1588_CLOCK Depends on [n]: NET [=y] && POSIX_TIMERS [=n] Selected by [m]: - SXE [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_LINKDATA [=y] && (X86 [=y] || ARM64) && PCI [=y] - SXE_VF [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_LINKDATA [=y] && (X86 [=y] || ARM64) && PCI [=y] vim +/ret +95 drivers/crypto/ccp/hygon/tdm-dev.c 92 93 static int list_enqueue(void *entry) 94 {
95 int ret = 0; 96 struct list_head *head, *entry_list = NULL; 97 rwlock_t *lock = NULL; 98 99 if (!entry) { 100 ret = -DYN_NULL_POINTER; 101 pr_err("Null pointer\n"); 102 goto end; 103 } 104 105 head = &dyn_head.head; 106 lock = &dyn_head.lock; 107 entry_list = &(((struct tdm_task_ctx *)entry)->list); 108 109 write_lock(lock); 110 if (entry_list) 111 list_add_tail(entry_list, head); 112 write_unlock(lock); 113 114 end: 115 return 0; 116 } 117
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot