Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2569923rbb; Wed, 28 Feb 2024 06:07:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWhIoAB/ty/4A7n7LKmqftGIM0PesuLVr0sMzVDmv8rxpf92atke9HgHPmq87l7qtqxUWMOR+8HlGY+nYrsIwV0aHtORHYhDNFZZUq03w== X-Google-Smtp-Source: AGHT+IEY3Kkm3avJDg3VshwmWO4c7Pi82ZuGFz5oUI6v8uGDrK+bzu56qHke0v71aec4r3v/dkT9 X-Received: by 2002:a05:620a:5624:b0:787:f669:b53b with SMTP id vv4-20020a05620a562400b00787f669b53bmr455121qkn.20.1709129260486; Wed, 28 Feb 2024 06:07:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709129260; cv=pass; d=google.com; s=arc-20160816; b=j+HZnhhyI8SnUmE1uPqL2F2V+Y98WSpOQDzSiJvx7Nk4dXM+hB/MbzLf70thrJOYqa qtmOyJ8bKBx3DSTPZnh/4ZNqO44aPTKyCFrOWbpBWx6jntHz9pc2wR+eu+uq9QGbzPAK m+OUP6ahXIgczVwN1S2JDmhf/bj/qaWqDEN/XCtOQR9/hqNSCn61GwThQ7k34MNjz2dQ tK7GIgTXUZIDThXij4tMzTqBbI7n66qgfKiZPWNbjqp8AJj1py6/xXnOdrveQuQMFO+Y PZJzVC2sutvf0abG1KvaIoYOL+nmiFgZ5OxHNASvv/7H5mFFF0kk9TvOyaZrLR3JdKJu fvSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=vM/KfHgUOwY2lvB0mjrY169vFxTeITIHZRgep2xkV9c=; fh=8MZSPd8drGpLtfTPMEPFjQtdQzBXws4WaoBn19BYeJc=; b=XJz+QVXzQe+VZ//1RssrZ5ReMRZE2+F99NNVkMTSwJ+S6nXMEJNYyW3VNaBaPQfjX1 3aNAvQreiw1qWnaYRA5HSridkiljAKwWVbWhDetY59TIu988GtfP74Mho+4+XfPQOM32 dy/tYuxwAYRm3U+L1rVCQ2bZ+KGb1J1V3s14UBjdSdX/kW0BL3DZqjDb3DY3DP/Oybkf SYX605AIbDRWYXuBXrywVr1ak5vGqQeHBlj2R4rZurSp4I1rbXFKi+pReCNnJrbSOtu/ dWa38SrvP9LwLhikuK6b5JcgnkSklFnyPjr0fLtuqk47UGEBC/WNyuE4+P4O688rYCZz 414Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ZwHMsaBe; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-85159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85159-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d20-20020a05620a167400b00787dfad0f0csi4455757qko.713.2024.02.28.06.07.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 06:07:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ZwHMsaBe; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-85159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85159-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 126BC1C23106 for ; Wed, 28 Feb 2024 14:07:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 358871534E2; Wed, 28 Feb 2024 14:07:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ZwHMsaBe" Received: from out-186.mta1.migadu.com (out-186.mta1.migadu.com [95.215.58.186]) (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 831F014F995 for ; Wed, 28 Feb 2024 14:07:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709129254; cv=none; b=vAGteXemc7ZPWsaM3oQljGl7ZBHEBxH1+KYbHhblzjUCDvkBBtitXUkEztwaMD6GqxAmvE00cBdB8pQY8qBSgyRLuz/8yJRoAg+eqnfEeAlqfhedcOonNizjVE7yh3jdoocM/ZirJeNnymsiSB+mInHuMQUsOYzaETOdbE8/QHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709129254; c=relaxed/simple; bh=THa2mSqtA/v0EgDSq0esfVnYprQRD4n81uuv6q9X/oI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=I5GcuQ9U2D0EhIsn6Lpa0wj7gvASrrW/y3PW5LFBaqAYMuQYNTfD5J7V6V42wL9csowe8CKlEtY8dawDPy1XJlqyEdqXAesA7rzKpP1wjGrbo71Br9sqOLLom+C76PzvCApTF33pfzXVFcuAf/4fvR7NW5MrZ0qXkHbTTLDIH8A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=ZwHMsaBe; arc=none smtp.client-ip=95.215.58.186 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: <85b78dad-affa-47c3-9cd0-79a4321460b8@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1709129249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vM/KfHgUOwY2lvB0mjrY169vFxTeITIHZRgep2xkV9c=; b=ZwHMsaBeOCPMcixCVbnytMfUemQGQhlm0UygvzwBIDGjehrH3MJkjDwdE90CR6NxSjuhHg 0kJL2hFNLJ3ccAdj1qETsMhAwKdq6bYZN1/uXnIw/tmlsLvgNN4SwK6oOWvApA2O33I8JU /wtd+U6BrFrwyTkSN86fs7iu/4GJ6tM= Date: Wed, 28 Feb 2024 14:07:21 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [revert 0d60d8df6f49] [net/net-next] [6.8-rc5] Build Failure Content-Language: en-US To: "linux-kernel@vger.kernel.org" , edumazet@google.com Cc: arkadiusz.kubalewski@intel.com, jiri@nvidia.com, kuba@kernel.org, "abdhalee@linux.vnet.ibm.com" , "mputtash@linux.vnet.com" , "sachinp@linux.vnet.com" , venkat88@linux.vnet.ibm.com, Tasmiya Nalatwad , "linuxppc-dev@lists.ozlabs.org" References: <3fcf3a2c-1c1b-42c1-bacb-78fdcd700389@linux.vnet.ibm.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Vadim Fedorenko In-Reply-To: <3fcf3a2c-1c1b-42c1-bacb-78fdcd700389@linux.vnet.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On 28/02/2024 11:09, Tasmiya Nalatwad wrote: > Greetings, > > [revert 0d60d8df6f49] [net/net-next] [6.8-rc5] Build Failure > > Reverting below commit fixes the issue > > commit 0d60d8df6f493bb46bf5db40d39dd60a1bafdd4e >     dpll: rely on rcu for netdev_dpll_pin() > > --- Traces --- > > ./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); >          ^~~~~~~~~~~~~~~~~~~~ > make[4]: *** [scripts/Makefile.build:243: drivers/dpll/dpll_core.o] Error 1 > make[4]: *** Waiting for unfinished jobs.... >   AR      net/mpls/built-in.a >   AR      net/l3mdev/built-in.a > In file included from ./include/linux/rbtree.h:24, >                  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 drivers/dpll/dpll_netlink.c:9: > ./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); >          ^~~~~~~~~~~~~~~~~~~~ > make[4]: *** [scripts/Makefile.build:243: drivers/dpll/dpll_netlink.o] > Error 1 > make[3]: *** [scripts/Makefile.build:481: drivers/dpll] Error 2 > make[3]: *** Waiting for unfinished jobs.... > In file included from ./arch/powerpc/include/generated/asm/rwonce.h:1, >                  from ./include/linux/compiler.h:251, >                  from ./include/linux/instrumented.h:10, >                  from ./include/linux/uaccess.h:6, >                  from net/core/dev.c:71: > net/core/dev.c: In function ‘netdev_dpll_pin_assign’: > ./include/linux/rcupdate.h:462:36: error: dereferencing pointer to > incomplete type ‘struct dpll_pin’ >  #define RCU_INITIALIZER(v) (typeof(*(v)) __force __rcu *)(v) >                                     ^~~~ > ./include/asm-generic/rwonce.h:55:33: note: in definition of macro > ‘__WRITE_ONCE’ >   *(volatile typeof(x) *)&(x) = (val);    \ >                                  ^~~ > ./arch/powerpc/include/asm/barrier.h:76:2: note: in expansion of macro > ‘WRITE_ONCE’ >   WRITE_ONCE(*p, v);      \ >   ^~~~~~~~~~ > ./include/asm-generic/barrier.h:172:55: note: in expansion of macro > ‘__smp_store_release’ >  #define smp_store_release(p, v) do { kcsan_release(); > __smp_store_release(p, v); } while (0) > ^~~~~~~~~~~~~~~~~~~ > ./include/linux/rcupdate.h:503:3: note: in expansion of macro > ‘smp_store_release’ >    smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \ >    ^~~~~~~~~~~~~~~~~ > ./include/linux/rcupdate.h:503:25: note: in expansion of macro > ‘RCU_INITIALIZER’ >    smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \ >                          ^~~~~~~~~~~~~~~ > net/core/dev.c:9081:2: note: in expansion of macro ‘rcu_assign_pointer’ >   rcu_assign_pointer(dev->dpll_pin, dpll_pin); >   ^~~~~~~~~~~~~~~~~~ > make[4]: *** [scripts/Makefile.build:243: net/core/dev.o] Error 1 > make[4]: *** Waiting for unfinished jobs.... >   AR      drivers/net/ethernet/built-in.a >   AR      drivers/net/built-in.a >   AR      net/dcb/built-in.a >   AR      net/netlabel/built-in.a >   AR      net/strparser/built-in.a >   AR      net/handshake/built-in.a >   GEN     lib/test_fortify.log >   AR      net/8021q/built-in.a >   AR      net/nsh/built-in.a >   AR      net/unix/built-in.a >   CC      lib/string.o >   AR      net/packet/built-in.a >   AR      net/switchdev/built-in.a >   AR      lib/lib.a >   AR      net/mptcp/built-in.a >   AR      net/devlink/built-in.a > In file included from ./include/linux/rbtree.h:24, >                  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: > ./include/linux/dpll.h:179:1: error: control reaches end of non-void > function [-Werror=return-type] >  } > Hi, Eric! Looks like we have to move struct dpll_pin definition to include/linux/dpll.h to have this fixed, right?