From patchwork Mon Feb 3 14:31:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11370829 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A444792A for ; Fri, 7 Feb 2020 17:20:08 +0000 (UTC) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 26C18214AF for ; Fri, 7 Feb 2020 17:20:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux.kernel.org header.i=@linux.kernel.org header.b="D6ie6L/U" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 26C18214AF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+26986+1346+1554929+3438807@linux.kernel.org X-Received: by 127.0.0.2 with SMTP id C2vyYY1556264xGChubC8sl6; Fri, 07 Feb 2020 09:20:07 -0800 X-Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mx.groups.io with SMTP id smtpd.web12.8258.1581096007507887945 for ; Fri, 07 Feb 2020 09:20:07 -0800 X-Received: by mail.kernel.org (Postfix) id 0D13E21741; Fri, 7 Feb 2020 17:20:07 +0000 (UTC) X-Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AEF34214AF for ; Fri, 7 Feb 2020 17:20:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AEF34214AF X-Received: by mail-wm1-f66.google.com with SMTP id q9so3304334wmj.5 for ; Fri, 07 Feb 2020 09:20:06 -0800 (PST) X-Gm-Message-State: IEAra1DIYSFVUzBtOjVY9zDcx1554929AA= X-Google-Smtp-Source: APXvYqxapPyCD8R2I1O7c9ZuTAKXAF3Ioa4i1ChtDeCFOTYxxtUtjNp4Bp+CUbOtrpc3ENvkFld34A== X-Received: by 2002:a1c:5419:: with SMTP id i25mr5460722wmb.150.1581096004846; Fri, 07 Feb 2020 09:20:04 -0800 (PST) X-Received: from localhost (p2E5BEF3F.dip0.t-ipconnect.de. [46.91.239.63]) by smtp.gmail.com with ESMTPSA id b13sm4263486wrq.48.2020.02.07.09.20.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 09:20:04 -0800 (PST) Resent-From: Thierry Reding Resent-Date: Fri, 7 Feb 2020 18:20:01 +0100 Resent-Message-ID: <20200207172001.GA2612022@ulmo> Resent-To: soc@kernel.org X-Received: from localhost (p2E5BEF3F.dip0.t-ipconnect.de. [46.91.239.63]) by smtp.gmail.com with ESMTPSA id r6sm26388213wrq.92.2020.02.03.06.31.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2020 06:31:18 -0800 (PST) From: Thierry Reding To: Linuxkernel+Patchwork-Soc via Email Integration Cc: Jon Hunter , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kbuild test robot Subject: [PATCH] soc/tegra: fuse: Fix build with Tegra194 configuration Date: Mon, 3 Feb 2020 15:31:14 +0100 Message-Id: <20200203143114.3967295-1-thierry.reding@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: patchwork-soc@linux.kernel.org List-Id: Mailing-List: list patchwork-soc@linux.kernel.org; contact patchwork-soc+owner@linux.kernel.org Delivered-To: mailing list patchwork-soc@linux.kernel.org Reply-To: patchwork-soc+owner@linux.kernel.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux.kernel.org; q=dns/txt; s=20140610; t=1581096007; bh=0zSn7Cd3bdAi7yErmXhJ7VixvkEZ7uFyeLvD8IcPfcA=; h=Cc:Date:From:Reply-To:Subject:To; b=D6ie6L/URGGCr+m1gMpYnig0cQ+6IxEze09GMDR+kdV7Hhd8DyBPxAsJHU8DXbBP5ix uwMt/heNrKT62DVd+0F3ZiZRMh8isGI941PJY4D9nXeiQc4Z71q0Zj5SWbCikUBbRs9Uj +zVHQkz4VcFrYb2L/W0dZ5KbWTwLF90Fd9U= From: Thierry Reding If only Tegra194 support is enabled, the tegra30_fuse_read() and tegra30_fuse_init() function are not declared and cause a build failure. Add Tegra194 to the preprocessor guard to make sure these functions are available for Tegra194-only builds as well. Reported-by: kbuild test robot Signed-off-by: Thierry Reding --- 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 f68f4e1c215d..e6037f900fb7 100644 --- a/drivers/soc/tegra/fuse/fuse-tegra30.c +++ b/drivers/soc/tegra/fuse/fuse-tegra30.c @@ -36,7 +36,8 @@ defined(CONFIG_ARCH_TEGRA_124_SOC) || \ defined(CONFIG_ARCH_TEGRA_132_SOC) || \ defined(CONFIG_ARCH_TEGRA_210_SOC) || \ - defined(CONFIG_ARCH_TEGRA_186_SOC) + defined(CONFIG_ARCH_TEGRA_186_SOC) || \ + defined(CONFIG_ARCH_TEGRA_194_SOC) static u32 tegra30_fuse_read_early(struct tegra_fuse *fuse, unsigned int offset) { if (WARN_ON(!fuse->base))