Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp1671392pxt; Sat, 7 Aug 2021 20:29:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3NM3hckLgXDF22Vyt1H+3wQZD2n01Losa7yjAIUJ/L+v37V4lc7NFHaGg+G0JMGCKaFiu X-Received: by 2002:a5e:8f0d:: with SMTP id c13mr15606iok.57.1628393382932; Sat, 07 Aug 2021 20:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628393382; cv=none; d=google.com; s=arc-20160816; b=vnWtT0jvVKlVbAWMpq55v7pLDQAnEOG4RzUytdn3xGYOB7CBmQqw04n2RwFB1kHCX0 FmP81V8dVRnNKGL2zp2OLRbIq2LQYr7zQls1IgLGe3qPbkuriMyO9G433/J5CoUrRDlW LaWAV2L1PmMKpyAz30sOLiYsRZzMd3TIiIm0vk4cipa03aqKQDqBMC10L1cda9/TJDm7 ipUgGQRME77xy9ApgnAC6D8XxIJ9VWoTLkSri8C+HCUXvV6mJaMEbDB+70+S4zODOvqJ AFwzdAs+HO5GfLd/j7/34i0ZHv18iRV/Ll/RnqP3bXxlHGCHD1z9HvuxFE8n91OMw3FS aT/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=/jIltaO1ykPUqKxxzNXSLRlEaI7W9uKLsAMBZ326/LY=; b=EBhwkYLq9a1dpYLDNUwznqa3ZlW7sDrHI6jv8C6FwJcYsWecRI+UWZR0eByPtm98Wz 861pxSS0E0aXMr+kuiXMFWmEEGCJYix+UNrXBuPexkIyJ2scLJyq0ZVwZLXXz8TTtKvc 6TEHKEiBppHOGDbZOHLHJ+1wkLwGM0nknfqOHdB86w14gRC7LoQjA9pmbdvLZGsETGRZ B8SWFqTHHzudrDodss0KZXI+3Nox4cdV7WA8/KZ8CIAOh41SR2b7tfeMbHQLBhEUhZnS QLcpU73eI8B1hePmlHIWnhx3YZY0zQNtsXgyn/qL0G18IsEEvhQzvq6aYCzD4zG/I+Ds rpgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x1si12612664ilp.101.2021.08.07.20.29.32; Sat, 07 Aug 2021 20:29:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230214AbhHHD21 (ORCPT + 99 others); Sat, 7 Aug 2021 23:28:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbhHHD21 (ORCPT ); Sat, 7 Aug 2021 23:28:27 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7FE0C061760; Sat, 7 Aug 2021 20:28:08 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.94.2) (envelope-from ) id 1mCZTk-0000zx-Ny; Sun, 08 Aug 2021 05:28:00 +0200 Date: Sun, 8 Aug 2021 04:27:49 +0100 From: Daniel Golle To: Andrew Lunn Cc: Michael Walle , linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" Subject: Re: [PATCH] ARM: kirkwood: add missing for ETH_ALEN Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, On Sat, Aug 07, 2021 at 04:17:44PM +0200, Andrew Lunn wrote: > > What kernel is this? I've just tested with this exact commit as > > base and it compiles just fine. > > > > I'm not saying including the file is wrong, but it seems it isn't > > needed in the upstream kernel and I don't know if it qualifies for > > the stable queue therefore. > > I would like to see a reproducer for mainline. Do you have a kernel > config which generates the problem. I encountered the problem when building the 'kirkwood' target in OpenWrt. I have now tried building vanilla, and the problem indeed doesn't exist. After tracing the header includes with the precompiler for some time I concluded that included in kirkwood.c includes which includes which includes which includes which includes which defined ETH_ALEN. When building OpenWrt kernel which includes a backport of "of: net: pass the dst buffer to of_get_mac_address()", this is not the same as doesn't include yet. This is because we miss commit 0c65b2b90d13c1 ("net: of_get_phy_mode: Change API to solve int/unit warnings") which has been in mainline for a long time. > The change itself does seems reasonable, so if we can reproduce it, i > would be happy to merge it for stable. Sorry for the noise caused, I'm not sure what the policy is in this case, but certainly this is *not* a regression which should make it to stable asap. The long and confusing chain of includes which lead to the ETH_ALEN macro being defined in arch/arm/mach-mvebu/kirkwood.c is certainly not ideal, and in case you still consider this patch worth merging, I will post v2 with re-written commit description.