From patchwork Thu Apr 22 13:35:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 425866 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp367085jao; Thu, 22 Apr 2021 06:35:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSvO2wjTxvmluTMtnL95N1Sva3YboUnk84440ZPi4rkPi9JuFLby4E8RDipE9aY7hOHj4Q X-Received: by 2002:a17:90a:c281:: with SMTP id f1mr92666pjt.58.1619098532743; Thu, 22 Apr 2021 06:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619098532; cv=none; d=google.com; s=arc-20160816; b=pVmXq9rpTDfL/R30kIwgHC5c2VY3NM2LYmyfd2O5ccuDRKfKbrZnIGPQVSHnl0Y0uI LzRh38Rz1jtlTY+UaWV+K+dShUsb4y0YeDuhkcqUMov+C8hJ6nYLe/FjKeFsIxG9Edzk BMezFR3qH3lRjuhtArTW36l1OvJKZPwDcin5MCvggFiXIQ2veUW0zuqbJZ49c4UJZhyZ SE1A+GaP2TNiNYH1Tqv8nhNJPrfStXd3ol1383sVV2ZF4nlCF6gDONZ9k4pTm+cTjBhi UWxFIyz4QuANXx7M6nrzwwDx/mDrk4mRtnN9GeBiYAep0d+VK3xsut6RxnAdf+ybQPDE FULw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BVLJovUAxhiENREZ2INz0Jxbe5vuIZjt5qT0pBAhUIk=; b=wIwGdFRoNPoHAfZFouRxgNZZfqQKQOfL0nMjbinVTJnL93k5IxtZmjdO7X109NHg3K +yvqRAerVjS30LGa2FFayE1pQI5roUu+FIXymCTBZIuM+Kj40r8HkvFitSjVEjRIi4lv 4O8hdmCbxhZnKAeF1LfZ+AyvnxS7xXCYU414CraLxkMw9ZHwYKLj9vrUmn50xSnPGIQH U2XK7cxUIwDYNT7NK1H6gEvaj6UcvUm8bW+nT8Z/YYjcbbqJKcpvNz1ujOYmdzI+rDOO muC+PhE0INfzArWHaxZLbAeqtuPHkoM41fb8ky8ujmaZT6So7LLCV2Fr2p/Nq0VGuv6a HFnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MsFRvZxP; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t66si3209271pgb.204.2021.04.22.06.35.32; Thu, 22 Apr 2021 06:35:32 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MsFRvZxP; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236520AbhDVNgG (ORCPT + 8 others); Thu, 22 Apr 2021 09:36:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:60466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231772AbhDVNgA (ORCPT ); Thu, 22 Apr 2021 09:36:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 704D26145F; Thu, 22 Apr 2021 13:35:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619098525; bh=gOyTabmowIFk54R1lQAVx74C3qCSRMhM7PYqCD3X3DY=; h=From:To:Cc:Subject:Date:From; b=MsFRvZxPEo6o3ZIQbldBpWYg/Q9p/qhguiVdKYrA/SqYvnWr06qsXpc7WwkczdRu4 9sBb0nCScFrZ0SOPmtnzWj/zcUjZ3l2+tNOUSlXu2wPX1g0sY7NZkCa1Xo8Pr7zgAp CfznyywFEXOCZVcZfTxOdCRVMsPVe1SOm+oXfM85TvA1I4ZG/yUhfWVBrwEx0pSeOO LTCu8yiL5SqBH9JHS1RnOCJw0lhNPJAK3GhInsA4Qf6zGdb5IHW20vqLLncvVt2byQ B42f3hmQy7GV9o9rg0x+xVOcv7LaGkOZ8W/gngGy5IedY+lkf71YMJslRkhN/M7pgO kF1WCJR3SZTtA== From: Arnd Bergmann To: "David S. Miller" , Jakub Kicinski , Arnd Bergmann , Vladimir Oltean Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [net-next] net: enetc: fix link error again Date: Thu, 22 Apr 2021 15:35:11 +0200 Message-Id: <20210422133518.1835403-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Arnd Bergmann A link time bug that I had fixed before has come back now that another sub-module was added to the enetc driver: ERROR: modpost: "enetc_ierb_register_pf" [drivers/net/ethernet/freescale/enetc/fsl-enetc.ko] undefined! The problem is that the enetc Makefile is not actually used for the ierb module if that is the only built-in driver in there and everything else is a loadable module. Fix it by always entering the directory this time, regardless of which symbols are configured. This should reliably fix the problem and prevent it from coming back another time. Fixes: 112463ddbe82 ("net: dsa: felix: fix link error") Fixes: e7d48e5fbf30 ("net: enetc: add a mini driver for the Integrated Endpoint Register Block") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/freescale/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.29.2 Acked-by: Vladimir Oltean diff --git a/drivers/net/ethernet/freescale/Makefile b/drivers/net/ethernet/freescale/Makefile index 67c436400352..de7b31842233 100644 --- a/drivers/net/ethernet/freescale/Makefile +++ b/drivers/net/ethernet/freescale/Makefile @@ -24,6 +24,4 @@ obj-$(CONFIG_FSL_DPAA_ETH) += dpaa/ obj-$(CONFIG_FSL_DPAA2_ETH) += dpaa2/ -obj-$(CONFIG_FSL_ENETC) += enetc/ -obj-$(CONFIG_FSL_ENETC_MDIO) += enetc/ -obj-$(CONFIG_FSL_ENETC_VF) += enetc/ +obj-y += enetc/