Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3721550pxk; Tue, 29 Sep 2020 04:46:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNwD6d19b7C8sMudQTyX/O+48SzqB5ytfShX7vNdXxgNRgaQRhz9Uau2Ka6ldyE5t5pbMv X-Received: by 2002:a05:6402:1353:: with SMTP id y19mr2806823edw.71.1601380008291; Tue, 29 Sep 2020 04:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601380008; cv=none; d=google.com; s=arc-20160816; b=yRpG2rKUcJPovjJOaNHjozcETso29XuAaIFNjTaGovUHBK/fYSEF8PEeAGw3fTC3eJ 0rb1lNL/deN0T8Fi+vqYXrRrR/4KCp8kygQnpdGfSaRSah6uhxNoaPxDL08r3TzEfYJ7 5Rj/1VFYMMUdCh4XpGu0XPANmBrgM0IS7LLjOwLx5d0jBJFrEDNyTmGI8bIQdItzzRzm 3esfVPOsNiScdB4Pde4Zu7pDulBEGfcQdk2BeLP/CQS/8rAHyn0fIgAXTaT7L7asr+Ue Nbm0sPVzZQC61sK/3t7yJaemd9P2JEBLAERKq8Fqgsc2d649ToJcBbCMv3yQVwYLcve2 0m6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=ynUxbbScLxlFwI4hvpPwam4nC3WnM9qigs9sxfg/nsY=; b=hiv2bcI1Q7srilj4wccwDUpm/myERW6JdvPUsR8LjqzksJtyhxZXocT1tLU4nUOPW5 2iSDYHjWKq1IjZ1SRozbtVjPqqLVxVXWRwdhNsNwzdmovzxp5B3GbIggIAllDw0HObDG qLChbCZ1+0sq5Zb8crjoYW+BDd2klWPhWM5o82Ey5sEX1leq/kpWbuucpYyeJlf1/Kta r6HKeYtnkzzilZ24Ren2mw42MPEPd1WUachR3J5sUhfakjBxdjwxEB7feYS9rIeOcOWN 99ZdMNPOrUo/s1iJ+Y88e6eys+U3NEGhCZjPV4xvAFOUfNh/yYQ0SH8Sm9jFUBjkJh2Z 5Itg== 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 u12si2452751edy.390.2020.09.29.04.46.26; Tue, 29 Sep 2020 04:46:48 -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 S1730471AbgI2Lpd (ORCPT + 99 others); Tue, 29 Sep 2020 07:45:33 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14776 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730681AbgI2LpS (ORCPT ); Tue, 29 Sep 2020 07:45:18 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DB96EF3FBE7670F74CDA; Tue, 29 Sep 2020 19:45:14 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Tue, 29 Sep 2020 19:45:05 +0800 From: Wang ShaoBo CC: , , , , , , , Subject: [PATCH -next] soc/tegra: fuse: Fix build with Tegra234 configuration Date: Tue, 29 Sep 2020 19:43:25 +0800 Message-ID: <20200929114325.3909556-1-bobo.shaobowang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If only Tegra234 support is enabled, the tegra30_fuse_read() and tegra30_fuse_init() function are not declared and cause a build failure. 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 Signed-off-by: Wang ShaoBo --- 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.25.1