Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2373806pxb; Sun, 15 Nov 2020 02:17:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1lyemThHxI+ROj4u4gtJHL+wNr/RutuPtmwuIi7pQ7T0js55+Nzyu5z3BGVDJ0+M5gDo5 X-Received: by 2002:aa7:c3cc:: with SMTP id l12mr5567032edr.304.1605435446644; Sun, 15 Nov 2020 02:17:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605435446; cv=none; d=google.com; s=arc-20160816; b=wVHHzvPPEoed6LICzT1awd5QKLeHvl15K8Te/KCItxcT2UgJmCH0rIjSjlSSOAjx/M ffuEg7yQl6gIOCETiNN/XG+4hHBQHLfmMlnCZwVqG8EVTxfyviBK+rhN85hMUu6OP3zZ rGgKORUtCbNad+PZKhsBm7Br8Cq1JffxPVMupvJh+dUbDqd2D6bb8eN/hlhj5gdCz4QM iGPzv0ZUMhaQc5MBTyR/4ULPKiq9dls9/a5UHPg0UocbPjIRbKZvzwQACu4o1XmhNTek WDRAGpnZ1Yrq5itj2tCMXy7E25kzBtS484kuG/w/00C0acr1U/Vm2T6gTyEttKFwG6Ny LmXQ== 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=Qwh/Qz3S9ONprnfNcbSy0gvRddvd3qkojVhhnmictRQ=; b=SLbENmCex6/7RRaUJW0DYyu01XOH5QCdZK5RdKtfqDa/eHiy0DDr7HXEiuGYUjla3a wK8KwpATHdw19Za+jeEA3Z0kqQX+5T7WvaUD7hc+28dq25h0RscChQZqJSRS9qDsL4xw b74RclQSlgmeXlj9q+bbWBpbMBEEI4X2rJhmkJ0mEHBDex3CYrcmfExYv1i5AHd8zCH4 t8vKPOA4FNqwHUQqlIffo8bHyGtcaC6pTw3HjihXOx50hst6gCYRASMeDyB52N3GzYYm KcZ6CSodDppyhNKeG9+ik0FLn5akgxrKmj4LB+/BPhL9B+WmrM1u29YRI4z9kJfh4nU+ Z/Rw== 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 d19si745048edx.252.2020.11.15.02.17.03; Sun, 15 Nov 2020 02:17:26 -0800 (PST) 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 S1726738AbgKOJKy (ORCPT + 99 others); Sun, 15 Nov 2020 04:10:54 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7541 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726600AbgKOJKu (ORCPT ); Sun, 15 Nov 2020 04:10:50 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CYmB70TpqzhZ5N; Sun, 15 Nov 2020 16:50:23 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Sun, 15 Nov 2020 16:50:25 +0800 From: Wang ShaoBo To: CC: , , , , , Subject: [PATCH] soc/tegra: fuse: Fix build with Tegra234 configuration Date: Sun, 15 Nov 2020 16:50:21 +0800 Message-ID: <20201115085021.42100-1-bobo.shaobowang@huawei.com> X-Mailer: git-send-email 2.17.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 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 Fixes: 1f44febf71ba ("soc/tegra: fuse: Add Tegra234 support") 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.17.1