Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2215438pxf; Sat, 27 Mar 2021 05:39:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuyckYkrGGuBANImsUZ4mK3X5pMeCNcet+YeWgrHgYq6OeIcJBFF4pMZeb6KjsIfa5cbUx X-Received: by 2002:aa7:cf02:: with SMTP id a2mr20019585edy.59.1616848768867; Sat, 27 Mar 2021 05:39:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616848768; cv=none; d=google.com; s=arc-20160816; b=VnoeWl/K1ab0r1E7Z6v6EhiTKnKQoX2pGGA1jLfQOpYzcpBCDhbNXc0kku8uzRJA0d xqtFYfRuQiAB4lnWMupLiFCTMUSTVRB6ylLRos7QtSNkz2PKRUD6EN1ZqX6Q8/u+YJIf CBHSfhchM6oARVI5EJwZ4pRgl0q6+H56kqkTUkBUkh/tjW1qs94awRUTqQcms8FU7YTz 5ogk94yD/IBkK+H5hcjaJICfcIiEcnJ1AatGBtPDDE+PK0Wklg0J+jPXjZkdB33Gq4u8 LNNhHTdNAHJqkUUGG8pNwoyHcWQKwmrxPfMVWoOr6ZgTypGdH9zg7aj2x3d7w8G3+wlJ 8eCw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=+i02wyO8KbDW3QUIK6R1WptNp0Zk0eWb4PGALvHBebc=; b=NQXS2WOCI22kGuQUtEAI7eVt+VxG6aWfudd5zd+Wbnd1jbZaVP63RUd/LVnQrrfhPS THKpaaEOIj+fSWUEtQddZ+wd+//6sgF4/M0bV8BUmYnJlopuO1ja64hEKLfdersQPTrA MVsIq5kVkV/EzUTLIoWE/ovDpy7jato76uyCctVbi3ApirZBck2r4oCGTDOVTmGGuoLb UxTvuYrk+A19ZeeWC/VcYSHPkXT9P405SwONeCaKY0IKk0XM6A2Su8maRcTfavtau9pr OaTuwy8PMglDuZZt+zNB8PHsFYL3DTmosutX3OkoVo9xwKMbQQ+cYdMYjlcwb5SDfCj6 7tnQ== 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 y2si8954091eje.495.2021.03.27.05.39.06; Sat, 27 Mar 2021 05:39:28 -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 S230226AbhC0Mgf (ORCPT + 99 others); Sat, 27 Mar 2021 08:36:35 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:14937 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbhC0Mge (ORCPT ); Sat, 27 Mar 2021 08:36:34 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4F6yw7430dzkg2b; Sat, 27 Mar 2021 20:34:47 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 20:36:20 +0800 From: Xie XiuQi To: , CC: , , Subject: [PATCH 1/2] soc/tegra: fuse: Fix build with Tegra234 configuration Date: Sat, 27 Mar 2021 20:37:56 +0800 Message-ID: <20210327123757.4568-2-xiexiuqi@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210327123757.4568-1-xiexiuqi@huawei.com> References: <20210327123757.4568-1-xiexiuqi@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] 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. Add Tegra234 to the preprocessor guard to make sure these functions are available for Tegra234-only builds as well. Fixes: 1f44febf71ba ("soc/tegra: fuse: Add Tegra234 support") Signed-off-by: Xie XiuQi --- 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