All of lore.kernel.org
 help / color / mirror / Atom feed
* [cip:linux-4.19.y-cip-rt-rebase 2065/9999] net/xfrm/xfrm_ipcomp.c:40:30: warning: 'ipcomp_scratches_lock' defined but not used
@ 2022-06-17  6:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-06-17  6:27 UTC (permalink / raw)
  To: Davidlohr Bueso; +Cc: kbuild-all, linux-kernel, Tom Zanussi

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git linux-4.19.y-cip-rt-rebase
head:   4784425d57541175db8c44ceef091a8fb42e5c6f
commit: ad01e51437422285ac98eced7c7136b368bd2ffc [2065/9999] net: xfrm: fix compress vs decompress serialization
config: x86_64-randconfig-a015 (https://download.01.org/0day-ci/archive/20220617/202206171457.YUwoAiZH-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git/commit/?id=ad01e51437422285ac98eced7c7136b368bd2ffc
        git remote add cip https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git
        git fetch --no-tags cip linux-4.19.y-cip-rt-rebase
        git checkout ad01e51437422285ac98eced7c7136b368bd2ffc
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash net/xfrm/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from net/xfrm/xfrm_ipcomp.c:23:
>> net/xfrm/xfrm_ipcomp.c:40:30: warning: 'ipcomp_scratches_lock' defined but not used [-Wunused-const-variable=]
      40 | static DEFINE_LOCAL_IRQ_LOCK(ipcomp_scratches_lock);
         |                              ^~~~~~~~~~~~~~~~~~~~~
   include/linux/locallock.h:244:71: note: in definition of macro 'DEFINE_LOCAL_IRQ_LOCK'
     244 | #define DEFINE_LOCAL_IRQ_LOCK(lvar)             __typeof__(const int) lvar
         |                                                                       ^~~~


vim +/ipcomp_scratches_lock +40 net/xfrm/xfrm_ipcomp.c

  > 23	#include <linux/locallock.h>
    24	#include <linux/percpu.h>
    25	#include <linux/slab.h>
    26	#include <linux/smp.h>
    27	#include <linux/vmalloc.h>
    28	#include <net/ip.h>
    29	#include <net/ipcomp.h>
    30	#include <net/xfrm.h>
    31	
    32	struct ipcomp_tfms {
    33		struct list_head list;
    34		struct crypto_comp * __percpu *tfms;
    35		int users;
    36	};
    37	
    38	static DEFINE_MUTEX(ipcomp_resource_mutex);
    39	static void * __percpu *ipcomp_scratches;
  > 40	static DEFINE_LOCAL_IRQ_LOCK(ipcomp_scratches_lock);
    41	static int ipcomp_scratch_users;
    42	static LIST_HEAD(ipcomp_tfms_list);
    43	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-17  6:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-17  6:27 [cip:linux-4.19.y-cip-rt-rebase 2065/9999] net/xfrm/xfrm_ipcomp.c:40:30: warning: 'ipcomp_scratches_lock' defined 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.