Re: [PATCH 2/2] crypto: virtio-crypto: Fix gcc check warnings

2023-12-21 Thread Herbert Xu
On Mon, Dec 11, 2023 at 07:42:16PM +0800, Gonglei wrote: > > static inline int virtio_crypto_get_current_node(void) > { > - int cpu, node; > + int node; > > - cpu = get_cpu(); > - node = topology_physical_package_id(cpu); > + node = topology_physical_package_id(get_cpu());

[PATCH 2/2] crypto: virtio-crypto: Fix gcc check warnings

2023-12-11 Thread Gonglei
From: wangyangxin Fix gcc check warnings in W=1 build mode. Variable cpu not used when CONFIG_SMP not defined. Fixes: dbaf0624ffa5 ("crypto: add virtio-crypto driver") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312040315.kPrI1OCE-lkp@int el.com/ Signed-off-b