Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1076253pxj; Fri, 11 Jun 2021 20:41:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqk8ROHDZAyRxUxLlfB9t95peg6Uw/Zi/LvE4FbnAFCz2cYshNEBJ9DrGSmCGBbPJZy6Ir X-Received: by 2002:a17:906:6d43:: with SMTP id a3mr6346797ejt.142.1623469295092; Fri, 11 Jun 2021 20:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623469295; cv=none; d=google.com; s=arc-20160816; b=dZW5Abk6HoKm34Ilca6XXKMzQXFmdjdosqn68KRIV37YWXXll3TW40MfkzxTyyjIAE BIEBGwnHFa6U9U4Yadc6eIsgS/+BaKSfm5Xo7iH9Bj617mcQAZpTMsFFxaTIo8FV+Clc D+GFS8dnwgfjcmucbsnPIdq0nCV9GEf2H1dlbqj1qZnnDzneXrFZZG+HIKW1V3tze1Wx VpjtxbXR4tkTgceEaWQPRaJSccZ9lFmqcjQx+WZrLDVGNCRKqZ3UqTboFqNAYMMw4Lar k7NX2q4OLiD9qYy2SyhQy5aO4mqJNMccZWZnrC7eOsuZBqS62Af2oaf6g1owA8GrbXes PZVg== 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; bh=eNhLFayEnVRdupXQPgYoacoN3463pve3oC/Ea9sHmho=; b=WRENmqbPEZJ4sl94OCuPSil+RpuTTLfwrJj6nBqf88sh51/w36YmnJL//ZJ0EVIKYq LYUcyMkJBLHrrtyntSpIuuZNm6HDgHraVSkQRdHe8GQEkocuLtlNdh1wcI5iaPDaQGFF 9UGFYx13e0YgOFcN6a0rhCiHEnyH1CW3z/LH67AbLyPKTDCURWkdbrPB2BMNBNp+SgOI RnYchstcO9UinSts5AxY0Wiq1AZFS8L1EhWimzobY6lQZ+hYETEtpISOoKiK0WzMsWm7 VsiJ4pk2jVPfvlnttdyiC4T/m6LWjLeGjjTt8krsy9LM8IVewB+KvE5NW8Ir8JbCjCBp bH0A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si6077130edo.465.2021.06.11.20.41.12; Fri, 11 Jun 2021 20:41:35 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231145AbhFLDi3 (ORCPT + 99 others); Fri, 11 Jun 2021 23:38:29 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:9082 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230411AbhFLDi3 (ORCPT ); Fri, 11 Jun 2021 23:38:29 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G23G817vwzZcxN; Sat, 12 Jun 2021 11:33:36 +0800 (CST) Received: from dggema769-chm.china.huawei.com (10.1.198.211) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Sat, 12 Jun 2021 11:36:28 +0800 Received: from localhost (10.174.179.215) by dggema769-chm.china.huawei.com (10.1.198.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Sat, 12 Jun 2021 11:36:27 +0800 From: YueHaibing To: , CC: , , YueHaibing Subject: [PATCH -next] soc/tegra: fuse: Fix build error while only ARCH_TEGRA_234_SOC enabled Date: Sat, 12 Jun 2021 11:36:14 +0800 Message-ID: <20210612033614.42992-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggema769-chm.china.huawei.com (10.1.198.211) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drivers/soc/tegra/fuse/fuse-tegra30.c:376:10: error: ‘tegra30_fuse_read’ undeclared here (not in a function); did you mean ‘tegra_fuse_readl’? .read = tegra30_fuse_read, ^~~~~~~~~~~~~~~~~ tegra_fuse_readl drivers/soc/tegra/fuse/fuse-tegra30.c:382:10: error: ‘tegra30_fuse_init’ undeclared here (not in a function); did you mean ‘tegra30_fuse_read’? .init = tegra30_fuse_init, ^~~~~~~~~~~~~~~~~ tegra30_fuse_read Add missing #ifdef macro to fix this. Fixes: 1f44febf71ba ("soc/tegra: fuse: Add Tegra234 support") Signed-off-by: YueHaibing --- drivers/soc/tegra/fuse/fuse-tegra30.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/tegra/fuse/fuse-tegra30.c b/drivers/soc/tegra/fuse/fuse-tegra30.c index 9ea7f0168457..c1aa7815bd6e 100644 --- a/drivers/soc/tegra/fuse/fuse-tegra30.c +++ b/drivers/soc/tegra/fuse/fuse-tegra30.c @@ -37,7 +37,8 @@ defined(CONFIG_ARCH_TEGRA_132_SOC) || \ defined(CONFIG_ARCH_TEGRA_210_SOC) || \ defined(CONFIG_ARCH_TEGRA_186_SOC) || \ - defined(CONFIG_ARCH_TEGRA_194_SOC) + defined(CONFIG_ARCH_TEGRA_194_SOC) || \ + defined(CONFIG_ARCH_TEGRA_234_SOC) static u32 tegra30_fuse_read_early(struct tegra_fuse *fuse, unsigned int offset) { if (WARN_ON(!fuse->base)) -- 2.17.1