From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81ADCC43334 for ; Fri, 17 Jun 2022 06:27:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380276AbiFQG1g (ORCPT ); Fri, 17 Jun 2022 02:27:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbiFQG1e (ORCPT ); Fri, 17 Jun 2022 02:27:34 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 142B72A4 for ; Thu, 16 Jun 2022 23:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655447252; x=1686983252; h=date:from:to:cc:subject:message-id:mime-version; bh=740VTPWrUShQ8Brh8mDxlSFegDdp59K64YGFrcrtl6s=; b=ME7UPtLHduSZ254R6dBXcifKu+SD/fl0MrIpqxO/mf9E6sUrpEcgG/vt WuPSf9vL+sFFiJG84m2Fbgf9yecepmb+VE/m7m6iHwrzNcx1FkorzWVsN 21eKCThxKv/wm2NNz1vWprUI4cLR5O/A/WnhUDQG5GwBm2DO3B7E+6evJ 3Av/2eWqKDRQAnIXJnAFkpZL/QGRINs2BXp0WSX1XrRA5fy5N4qJlQUO6 BlDdrISU73cWcPrIXSUieUm6dpn4qAlXlsbYfwLsi8pO3MEssmYTnuKiy E39hlx6sRtVfvnZs2wHNXRLzdSmqAqjwkhwaN6E9yO2n8fQRtuRoQuj8P w==; X-IronPort-AV: E=McAfee;i="6400,9594,10380"; a="268122020" X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="268122020" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 23:27:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="713652152" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 16 Jun 2022 23:27:30 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o25S5-000P9t-QE; Fri, 17 Jun 2022 06:27:29 +0000 Date: Fri, 17 Jun 2022 14:27:17 +0800 From: kernel test robot To: Davidlohr Bueso Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Tom Zanussi Subject: [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 Message-ID: <202206171457.YUwoAiZH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 24 #include 25 #include 26 #include 27 #include 28 #include 29 #include 30 #include 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