Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp160128lqg; Fri, 1 Mar 2024 00:59:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXhqiA6yxdhqNI6y/xZTieCPQLt4Y7UMdoYQdh+MLnQ/vdr7u8FnmrEHZinvs5l9Y1/3i49Q9se1O4VFp5quDap8XwcDQYHkWqfcmCDrg== X-Google-Smtp-Source: AGHT+IF+C/hxuHmNN5U4ZCQuXIdAaM/9Xo+E2XKb2KcnJkI53Y5lbf+425d8MCrpFip8TzEl4fZD X-Received: by 2002:a05:6808:2082:b0:3c1:cb68:1f20 with SMTP id s2-20020a056808208200b003c1cb681f20mr1508139oiw.3.1709283590668; Fri, 01 Mar 2024 00:59:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709283590; cv=pass; d=google.com; s=arc-20160816; b=oc0uX/fDQNew7iknibOF9ClVvIN0OavSgDyTGAPiOGpEqAFiOC8g+q6+96qJKTOAYE 3lhDe1Z/BJhwSj0JqTCSB+2N1h6vGcSIDp8Q4rVaoPujkcoIzYIJn0RJWmVWVdjVgwVe 17vgqNfaH/QGUoUP/hV7yAk3K9L78J0Nxi4Lw5yXHtgxESFFgaJIWquYB0jnuRRFBG1L N8ItPtTCQizir0/YzgLJg+cBI4OGg1WPaLq87Hk7imroLFCToclBwyxLD1nuO9G+aUGW w9ox1eSh/VLhjsr7Mw7nnaAqUPmerm8ekam3whctjd3TbvKDdOp7jm+fYkyFLtM+CaXb h/EQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=10W3W1vREE6K2u/gUww95ZqaWu0HUkwGHV8iPeRqInI=; fh=8FS9BtmqMHbE0n7hU8w93o0Lg9jmyDvC6L1tp4iWOYs=; b=MycGsGB86n2/y6FPjCrQgyX/Gx8rl3KWzYPL3ANMKESGsaBP9hlaqcpEBOZP8qJM3d J1g1RUPSWrIbEuaZgr6o7pyzmO/0Is+53pZejv/ldpLLT39sqkpOsEi7lne5JLAAAsmC afn7vLU1IKBMYiloNryd69htbF6mCwUrTs+qEyd/aEwIqRJEtpCKzpPryb8KmkMCR6yU idquu9yePHEQxmzdqcGnKPUtRmw82luXEd5O0pZ5fjidJsr1qndnFTK+m1cuh3DzujBw 6S2Do5QH2uGgpJk8Tiux2hxnTUUE0qM1yZ5C5hRGmIy5lKX12uXgk29EK7TDjLrhkzMB vKCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PFqgevnn; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-88102-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88102-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i123-20020a62c181000000b006e59edebc3bsi2346087pfg.242.2024.03.01.00.59.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 00:59:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88102-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PFqgevnn; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-88102-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88102-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9F0CAB270BA for ; Fri, 1 Mar 2024 08:45:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 933086A01A; Fri, 1 Mar 2024 08:45:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PFqgevnn" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 19D0B6A03C for ; Fri, 1 Mar 2024 08:44:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709282701; cv=none; b=TO/DZi8vhgz7FLQVgbwTT9HXoZ/6fyimsJBbNmeYjAGmYXRKFtajPo9MK6NDRANr9B59ZgxjtFXLaB2NGAmp+bC2F9lKxhuYS0wliZJwajH3vB3VS3j0gYSg+8YHfZAKYfhaCZzlsJ5u42l54QOgpIkNUu8BfuquyTf1ENNSK/U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709282701; c=relaxed/simple; bh=7pjLmiG/8nf/MrZ8Ii/tmp+a66yW3du+qbUwi/OOCQA=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=c7xpXkZNNHS+FYERD6Nj5ZAd1NF5DqHjYUOyZb+b6YqmS/vYT9LB9SxTx5WvtoTQdiOGiri40SRCiJTRBlmvOQnDTJO8Qg1uAZ7QmIQNhBd7fVo9CVndUHFX+HmbieI/zdDRrSS8zkjpj5nktAXJL+aQ6c3Kn1pOcgCPRP3SVE0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=PFqgevnn; arc=none smtp.client-ip=192.198.163.13 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709282698; x=1740818698; h=date:from:to:cc:subject:message-id:mime-version; bh=7pjLmiG/8nf/MrZ8Ii/tmp+a66yW3du+qbUwi/OOCQA=; b=PFqgevnnZTVTrLQJwRQE7uay9jNbZQqAcCuejB4qEK4aNAuwJJ2D8X2V I4FHG7VrRFT8bjjsNfJe9J22AoLYaA88XtAvFLtP2uc3sAnzQZSlkN10U BF7pNGBKCwhCzWFlNjvluwIoVF7R/0+I3ClIuiHBJkipTtUA6YLhSbpyv tb0+JG1ZQFPfHOOgD97wyDl3v85AxtbfvIKNYAG7k1rG1FGLRv+5VAyPC WVtwdEj141/cBL1w3jH3HKdVhnjSGs1TUvoMAWsE0MiDpcQALTxosdY5u iETXCZ/s+jtF3KG9DtEwE+5VSwCYdWkKbKdCSQy+40Qa7Ipx7Oq70Qp3o A==; X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="6759787" X-IronPort-AV: E=Sophos;i="6.06,195,1705392000"; d="scan'208";a="6759787" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2024 00:44:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,195,1705392000"; d="scan'208";a="12731806" Received: from lkp-server02.sh.intel.com (HELO 3c78fa4d504c) ([10.239.97.151]) by fmviesa004.fm.intel.com with ESMTP; 01 Mar 2024 00:44:56 -0800 Received: from kbuild by 3c78fa4d504c with local (Exim 4.96) (envelope-from ) id 1rfyVh-000Dg1-28; Fri, 01 Mar 2024 08:44:53 +0000 Date: Fri, 1 Mar 2024 16:44:26 +0800 From: kernel test robot To: Eric Dumazet Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Jakub Kicinski , Jiri Pirko Subject: include/linux/rcupdate.h:439:9: error: dereferencing pointer to incomplete type 'struct dpll_pin' Message-ID: <202403011658.jcZIoLY9-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 87adedeba51a822533649b143232418b9e26d08b commit: 0d60d8df6f493bb46bf5db40d39dd60a1bafdd4e dpll: rely on rcu for netdev_dpll_pin() date: 3 days ago config: i386-randconfig-141-20240228 (https://download.01.org/0day-ci/archive/20240301/202403011658.jcZIoLY9-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240301/202403011658.jcZIoLY9-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/oe-kbuild-all/202403011658.jcZIoLY9-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/radix-tree.h:18:0, from include/linux/idr.h:15, from include/linux/kernfs.h:12, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/energy_model.h:7, from include/linux/device.h:16, from drivers/dpll/dpll_core.c:11: include/linux/dpll.h: In function 'netdev_dpll_pin': >> include/linux/rcupdate.h:439:9: error: dereferencing pointer to incomplete type 'struct dpll_pin' typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \ ^ include/linux/rcupdate.h:587:2: note: in expansion of macro '__rcu_dereference_check' __rcu_dereference_check((p), __UNIQUE_ID(rcu), \ ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/rtnetlink.h:70:2: note: in expansion of macro 'rcu_dereference_check' rcu_dereference_check(p, lockdep_rtnl_is_held()) ^~~~~~~~~~~~~~~~~~~~~ include/linux/dpll.h:175:9: note: in expansion of macro 'rcu_dereference_rtnl' return rcu_dereference_rtnl(dev->dpll_pin); ^~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/rbtree.h:24:0, from include/linux/mm_types.h:11, from include/linux/mmzone.h:22, from include/linux/gfp.h:7, from include/linux/umh.h:4, from include/linux/kmod.h:9, from include/linux/module.h:17, from net/core/rtnetlink.c:17: include/linux/dpll.h: In function 'netdev_dpll_pin': >> include/linux/rcupdate.h:439:9: error: dereferencing pointer to incomplete type 'struct dpll_pin' typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \ ^ include/linux/rcupdate.h:587:2: note: in expansion of macro '__rcu_dereference_check' __rcu_dereference_check((p), __UNIQUE_ID(rcu), \ ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/rtnetlink.h:70:2: note: in expansion of macro 'rcu_dereference_check' rcu_dereference_check(p, lockdep_rtnl_is_held()) ^~~~~~~~~~~~~~~~~~~~~ include/linux/dpll.h:175:9: note: in expansion of macro 'rcu_dereference_rtnl' return rcu_dereference_rtnl(dev->dpll_pin); ^~~~~~~~~~~~~~~~~~~~ In file included from net/core/rtnetlink.c:60:0: include/linux/dpll.h:179:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ vim +439 include/linux/rcupdate.h 76c8eaafe4f061 Paul E. McKenney 2021-04-21 429 24ba53017e188e Chun-Hung Tseng 2021-09-15 430 #define __rcu_access_pointer(p, local, space) \ ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 431 ({ \ 24ba53017e188e Chun-Hung Tseng 2021-09-15 432 typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \ 423a86a610cad1 Joel Fernandes (Google 2018-12-12 433) rcu_check_sparse(p, space); \ 24ba53017e188e Chun-Hung Tseng 2021-09-15 434 ((typeof(*p) __force __kernel *)(local)); \ ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 435 }) 24ba53017e188e Chun-Hung Tseng 2021-09-15 436 #define __rcu_dereference_check(p, local, c, space) \ ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 437 ({ \ ac59853c06993a Pranith Kumar 2014-11-13 438 /* Dependency order vs. p above. */ \ 24ba53017e188e Chun-Hung Tseng 2021-09-15 @439 typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \ f78f5b90c4ffa5 Paul E. McKenney 2015-06-18 440 RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \ 423a86a610cad1 Joel Fernandes (Google 2018-12-12 441) rcu_check_sparse(p, space); \ 24ba53017e188e Chun-Hung Tseng 2021-09-15 442 ((typeof(*p) __force __kernel *)(local)); \ ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 443 }) 24ba53017e188e Chun-Hung Tseng 2021-09-15 444 #define __rcu_dereference_protected(p, local, c, space) \ ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 445 ({ \ f78f5b90c4ffa5 Paul E. McKenney 2015-06-18 446 RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_protected() usage"); \ 423a86a610cad1 Joel Fernandes (Google 2018-12-12 447) rcu_check_sparse(p, space); \ ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 448 ((typeof(*p) __force __kernel *)(p)); \ ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 449 }) 24ba53017e188e Chun-Hung Tseng 2021-09-15 450 #define __rcu_dereference_raw(p, local) \ 995f1405610bd8 Paul E. McKenney 2016-07-01 451 ({ \ 995f1405610bd8 Paul E. McKenney 2016-07-01 452 /* Dependency order vs. p above. */ \ 24ba53017e188e Chun-Hung Tseng 2021-09-15 453 typeof(p) local = READ_ONCE(p); \ 24ba53017e188e Chun-Hung Tseng 2021-09-15 454 ((typeof(*p) __force __kernel *)(local)); \ 995f1405610bd8 Paul E. McKenney 2016-07-01 455 }) 24ba53017e188e Chun-Hung Tseng 2021-09-15 456 #define rcu_dereference_raw(p) __rcu_dereference_raw(p, __UNIQUE_ID(rcu)) ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 457 :::::: The code at line 439 was first introduced by commit :::::: 24ba53017e188e031f9cb8b290286fad52d2af00 rcu: Replace ________p1 and _________p1 with __UNIQUE_ID(rcu) :::::: TO: Chun-Hung Tseng :::::: CC: Paul E. McKenney -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki