From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D40063B for ; Wed, 18 Oct 2023 00:39:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FniOTZYw" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697589598; x=1729125598; h=date:from:to:cc:subject:message-id:mime-version; bh=9tUBqLA9um4/dgvaZ1/RsDwzlnICvayr98Po9wm56p0=; b=FniOTZYwwkcTsEpV51IESR6lewaHE8ZkdY5cCyMTsQiaByxzUzo1GeTE ewwdLZOFWNHVs96+iVyfKwOb/WzdB0ZOonmZdwtLD5P3gca5k60LSwRDl PazlOZ5bR0BvSg9FlJd8HzwePLKuFzrIpE9PkxdihyHElu0qD9KW5FVUq tu8/coUPwocSnGoGLabKR3sG5kqyq6cutVskhDcJji5oysw2oCb1eJC7n UVAgSuCvzR/01DSCPeR0pJUWF6+vriIvtfRjXxU+EIFNP2Altvaee3hE+ IBolI65bcWY1KYxbTO4pgL0q+uR5+JOIZAdYN0xUhlGmHevx0mV0HwA9a g==; X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="385743257" X-IronPort-AV: E=Sophos;i="6.03,233,1694761200"; d="scan'208";a="385743257" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 17:39:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="879989041" X-IronPort-AV: E=Sophos;i="6.03,233,1694761200"; d="scan'208";a="879989041" Received: from lkp-server02.sh.intel.com (HELO f64821696465) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 17 Oct 2023 17:39:55 -0700 Received: from kbuild by f64821696465 with local (Exim 4.96) (envelope-from ) id 1qsubI-000AHR-1B; Wed, 18 Oct 2023 00:39:52 +0000 Date: Wed, 18 Oct 2023 08:39:38 +0800 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com Subject: kernel/workqueue.c:324:40: sparse: sparse: duplicate [noderef] Message-ID: <202310180842.PyriS6JC-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline :::::: :::::: Manual check reason: "low confidence static check warning: kernel/workqueue.c:324:40: sparse: sparse: duplicate [noderef]" :::::: BCC: lkp@intel.com CC: oe-kbuild-all@lists.linux.dev CC: linux-kernel@vger.kernel.org TO: Tejun Heo tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 213f891525c222e8ed145ce1ce7ae1f47921cb9c commit: 636b927eba5bc633753f8eb80f35e1d5be806e51 workqueue: Make unbound workqueues to use per-cpu pool_workqueues date: 2 months ago :::::: branch date: 23 hours ago :::::: commit date: 2 months ago config: x86_64-alldefconfig (https://download.01.org/0day-ci/archive/20231018/202310180842.PyriS6JC-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231018/202310180842.PyriS6JC-lkp@intel.com/reproduce) 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 | Closes: https://lore.kernel.org/r/202310180842.PyriS6JC-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> kernel/workqueue.c:324:40: sparse: sparse: duplicate [noderef] >> kernel/workqueue.c:324:40: sparse: sparse: multiple address spaces given: __percpu & __rcu vim +324 kernel/workqueue.c 226223ab3c4118 Tejun Heo 2013-03-12 279 ^1da177e4c3f41 Linus Torvalds 2005-04-16 280 /* c5aa87bbf4b23f Tejun Heo 2013-03-13 281 * The externally visible workqueue. It relays the issued work items to c5aa87bbf4b23f Tejun Heo 2013-03-13 282 * the appropriate worker_pool through its pool_workqueues. ^1da177e4c3f41 Linus Torvalds 2005-04-16 283 */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 284 struct workqueue_struct { 3c25a55daadc7e Lai Jiangshan 2013-03-25 285 struct list_head pwqs; /* WR: all pwqs of this wq */ e2dca7adff8f3f Tejun Heo 2015-03-09 286 struct list_head list; /* PR: list of all workqueues */ 73f53c4aa732ec Tejun Heo 2010-06-29 287 3c25a55daadc7e Lai Jiangshan 2013-03-25 288 struct mutex mutex; /* protects this wq */ 3c25a55daadc7e Lai Jiangshan 2013-03-25 289 int work_color; /* WQ: current work color */ 3c25a55daadc7e Lai Jiangshan 2013-03-25 290 int flush_color; /* WQ: current flush color */ 112202d9098aae Tejun Heo 2013-02-13 291 atomic_t nr_pwqs_to_flush; /* flush in progress */ 3c25a55daadc7e Lai Jiangshan 2013-03-25 292 struct wq_flusher *first_flusher; /* WQ: first flusher */ 3c25a55daadc7e Lai Jiangshan 2013-03-25 293 struct list_head flusher_queue; /* WQ: flush waiters */ 3c25a55daadc7e Lai Jiangshan 2013-03-25 294 struct list_head flusher_overflow; /* WQ: flush overflow list */ 73f53c4aa732ec Tejun Heo 2010-06-29 295 2e109a2855bf6c Tejun Heo 2013-03-13 296 struct list_head maydays; /* MD: pwqs requesting rescue */ 30ae2fc0a75eb5 Tejun Heo 2019-09-20 297 struct worker *rescuer; /* MD: rescue worker */ e22bee782b3b00 Tejun Heo 2010-06-29 298 87fc741e94cf64 Lai Jiangshan 2013-03-25 299 int nr_drainers; /* WQ: drain in progress */ a357fc03262988 Lai Jiangshan 2013-03-25 300 int saved_max_active; /* WQ: saved pwq max_active */ 226223ab3c4118 Tejun Heo 2013-03-12 301 5b95e1af8d17d8 Lai Jiangshan 2015-05-12 302 struct workqueue_attrs *unbound_attrs; /* PW: only for unbound wqs */ 5b95e1af8d17d8 Lai Jiangshan 2015-05-12 303 struct pool_workqueue *dfl_pwq; /* PW: only for unbound wqs */ 6029a91829ad2b Tejun Heo 2013-04-01 304 226223ab3c4118 Tejun Heo 2013-03-12 305 #ifdef CONFIG_SYSFS 226223ab3c4118 Tejun Heo 2013-03-12 306 struct wq_device *wq_dev; /* I: for sysfs interface */ 226223ab3c4118 Tejun Heo 2013-03-12 307 #endif 4e6045f134784f Johannes Berg 2007-10-18 308 #ifdef CONFIG_LOCKDEP 669de8bda87b92 Bart Van Assche 2019-02-14 309 char *lock_name; 669de8bda87b92 Bart Van Assche 2019-02-14 310 struct lock_class_key key; 4e6045f134784f Johannes Berg 2007-10-18 311 struct lockdep_map lockdep_map; 4e6045f134784f Johannes Berg 2007-10-18 312 #endif ecf6881ff349ad Tejun Heo 2013-04-01 313 char name[WQ_NAME_LEN]; /* I: workqueue name */ 2728fd2f098c3c Tejun Heo 2013-04-01 314 e2dca7adff8f3f Tejun Heo 2015-03-09 315 /* 24acfb71822566 Thomas Gleixner 2019-03-13 316 * Destruction of workqueue_struct is RCU protected to allow walking 24acfb71822566 Thomas Gleixner 2019-03-13 317 * the workqueues list without grabbing wq_pool_mutex. e2dca7adff8f3f Tejun Heo 2015-03-09 318 * This is used to dump all workqueues from sysrq. e2dca7adff8f3f Tejun Heo 2015-03-09 319 */ e2dca7adff8f3f Tejun Heo 2015-03-09 320 struct rcu_head rcu; e2dca7adff8f3f Tejun Heo 2015-03-09 321 2728fd2f098c3c Tejun Heo 2013-04-01 322 /* hot fields used during command issue, aligned to cacheline */ 2728fd2f098c3c Tejun Heo 2013-04-01 323 unsigned int flags ____cacheline_aligned; /* WQ: WQ_* flags */ 636b927eba5bc6 Tejun Heo 2023-08-07 @324 struct pool_workqueue __percpu __rcu **cpu_pwq; /* I: per-cpu pwqs */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 325 }; ^1da177e4c3f41 Linus Torvalds 2005-04-16 326 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki