From patchwork Wed Jul 21 15:19:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 483312 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp6295251jao; Wed, 21 Jul 2021 08:20:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoNRMalHCzj+ZlYeFyjj9S/TfxMbzXCwFU4dBqK94Ljip/EcrsZSSE5rw5A1uHj+tvMATy X-Received: by 2002:a05:6e02:c8e:: with SMTP id b14mr5388656ile.236.1626880800623; Wed, 21 Jul 2021 08:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626880800; cv=none; d=google.com; s=arc-20160816; b=IjI2TiSqkwo7B+CkCf524F3zobtNSakBACrFMGO7JiTF1mF3/aP3WQKYKVDS/KHc5e jbo9/oMzdYcTdDHT8CnGEfq9QTz5OFtWs1O6bL9m0V6i7utxKr4C1uBSKpkMIeRQ3ndW SctfdldpIP98TIus3j4NpZ84M1n1nEVAJWVMHpA2gv/NlhE3zbG442Xq5sepM0gXwJlU eemEd6pFNgrqYJzVdPnDV6UMtb+GAb92wBUumbvtIlMPqLIoONGoTDzDI6EiN1lPDpkG RyrB60liG/1An6bpRojCsS8ELa6HJJaiTPSdV+MQmw99QeDjSiIXD0h45cstLRbYqbhm LpOQ== 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=fshfFg4UjpVzGy6f7FCewfagawAfP7dl7V5iqsveVQA=; b=IrrBItknnff8JIESwSv2x6SkSBtj+oTFBIKKNGy1dzmUehVOqpFU7Kf0tIpGxCIYbt +5qJo+DJMU3DWWRzm7rvfbOVnCyrMkVrWVeEoNMRaZp4H6qEmKBKx39Njk1ODp8q6bht GQ3tX+4vupdrDAx5yhle0O4dKFgd0V3dQDTUeAWr7wmJQK2ecS2ISSuljR2qdHJTKsWo PytHtE5yMEX2/adZg2Qjb4q1+lb74rn1VJHYXKvqcApcLYtdzJizzvRFkEpQbXwcgOkV WNZ37qumu7n21m5VRtxxDcG4z8TqPr44C2KYVuxLKlzno0Qpebg2gqB9QQCnGm4N+1rw 29Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dg4lDZVW; 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 n26si16206212jam.80.2021.07.21.08.20.00; Wed, 21 Jul 2021 08:20:00 -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=dg4lDZVW; 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 S239791AbhGUOjT (ORCPT + 8 others); Wed, 21 Jul 2021 10:39:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:33658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232808AbhGUOjS (ORCPT ); Wed, 21 Jul 2021 10:39:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2E36360E0C; Wed, 21 Jul 2021 15:19:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626880795; bh=UZmUgiq+0zQRbNJ0Kg61Zjq+ze+yjskbVrAwJ89o1Gw=; h=From:To:Cc:Subject:Date:From; b=dg4lDZVW9E0iR/8jYLE/BGJ1d18WPys91V3j2iVk3/jwODmV2AKf/TooI6VXV2NqD K7QrxzPBwNPP2AT0uTi9y5lRA+ZwgDjftQtWMRET0F0q/hshMO1bch7nJif6nKuM3o BTqF+VbcOpk+LcEozOKV1p7Od5aAYLpNsCj9FZ0IS4AlKaPhFTTsJGv9Ejb+dK6cK5 dd/Le1z60tHMUFV57T7jDy1VEo2e+icLNUxWZReF8GR+W8DHnN6k+/uPd12Mdoma7J bnYWQzCfSoRqi/Dv9lYXHVmU8/n4x+KdhRNY00MiXUROt4H0EHOpN4XxzBmFTqNaom mjNBS0K9dElxQ== From: Arnd Bergmann To: "David S. Miller" , Jakub Kicinski , Linus Walleij Cc: Arnd Bergmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: ixp46x: fix ptp build failure Date: Wed, 21 Jul 2021 17:19:32 +0200 Message-Id: <20210721151951.2558679-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 The rework of the ixp46x cpu detection left the network driver in a half broken state: drivers/net/ethernet/xscale/ptp_ixp46x.c: In function 'ptp_ixp_init': drivers/net/ethernet/xscale/ptp_ixp46x.c:290:51: error: 'IXP4XX_TIMESYNC_BASE_VIRT' undeclared (first use in this function) 290 | (struct ixp46x_ts_regs __iomem *) IXP4XX_TIMESYNC_BASE_VIRT; | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/xscale/ptp_ixp46x.c:290:51: note: each undeclared identifier is reported only once for each function it appears in drivers/net/ethernet/xscale/ptp_ixp46x.c: At top level: drivers/net/ethernet/xscale/ptp_ixp46x.c:323:1: error: data definition has no type or storage class [-Werror] 323 | module_init(ptp_ixp_init); I have patches to complete the transition for a future release, but for the moment, add the missing include statements to get it to build again. Fixes: 09aa9aabdcc4 ("soc: ixp4xx: move cpu detection to linux/soc/ixp4xx/cpu.h") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/xscale/ptp_ixp46x.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.29.2 diff --git a/drivers/net/ethernet/xscale/ptp_ixp46x.c b/drivers/net/ethernet/xscale/ptp_ixp46x.c index 99d4d9439d05..a6fb88fd42f7 100644 --- a/drivers/net/ethernet/xscale/ptp_ixp46x.c +++ b/drivers/net/ethernet/xscale/ptp_ixp46x.c @@ -14,6 +14,8 @@ #include #include #include +#include +#include #include "ixp46x_ts.h"