Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2106014pxj; Sun, 16 May 2021 14:47:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQuC/69/nr89OmBZMHsvjoJbWLg8RkjE3FN6/ThrNUI6bTEbJ2NbV7nZe1gAIvwt10dd5t X-Received: by 2002:a17:906:5786:: with SMTP id k6mr21845092ejq.198.1621201626694; Sun, 16 May 2021 14:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621201626; cv=none; d=google.com; s=arc-20160816; b=UjzRsbYiBcg9x9OyedNIpK8FJ3WMe730tl2KI3floHmQrIzE2VUV1oBTDOrhYb9y5i BxngcHGAr2eukNiKulVqvw+RvaV/yZQSPBMkznvmxYL2RvpXm6LkLgwzOQT1MrgqwEHX 2eCQEO0Fo+CdnLOmd6uHUgqaWMtybY7QpT8Vxv0L15CfxZSgPhORPIW/tGXrlp8pnLxO prSWfkQy8Ff7cJZy7kc24bB0skg/EUfe8x4HwWa6pO6vS+qfWLdGN51fdDi+sBJNVN/X /K2gEgvnd3BKAwDtHPlzM6EY/xDVy6ZK/Cm2ZjtsAJqnl5IPjGpE7gwksXNhr83u+RhB 0bAw== 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 :dkim-signature; bh=HXT+IvjVluiKH3yhs5geuypz9CaKXis2aNZdKmGa0hs=; b=aGEP2OLlpcqMZhd0t0JJhBJ0g1PJT/O3/fyul/7XBEefDmshOEkCC8G/kKAYaXk3w3 YXqLcmSqMdqC0/KDd1UWv2wNwMGLn7XhuDRt2B0h+eUYSv3dG/yQs0GKw2aW1SFx4UJj mww9ZTDqO/b51hnGNWtTfaKLenCvH/SvEqt8kwuwo2Wg9Go5vQAAw43lLA9/XH1AXBVA jwmrs5cA2iMUnU3woJdFxQOia5Uv9RcoZauBB5WNnK9sRPNTkb8MrVSvgo09PIynOVe4 vffYN85BKBO+Osnih+OCRH3D2wrSXCYgG57xVoQl5B/GR76OkNHfD6WnJgQv68YwKLuc sjcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VpNSp5sT; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zg9si14048490ejb.436.2021.05.16.14.46.43; Sun, 16 May 2021 14:47:06 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VpNSp5sT; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232431AbhEPQOi (ORCPT + 99 others); Sun, 16 May 2021 12:14:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231693AbhEPQOb (ORCPT ); Sun, 16 May 2021 12:14:31 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D184C06174A; Sun, 16 May 2021 09:13:15 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 131so4315209ljj.3; Sun, 16 May 2021 09:13:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HXT+IvjVluiKH3yhs5geuypz9CaKXis2aNZdKmGa0hs=; b=VpNSp5sTj82VHq1x8rPglSLKU+du/lRZSmzxHj1V/HxCgEfJfmYnmf+qGDTLahPPao wVHxHwKTL4n1q9W8Q7+M7nDncVo8Ct8ON9r4uxTvXbCl4/booVH0HY5iXTjaX5t9pwz6 3zGpf+Q1I4tWj0K1zqFNkpxu9/JMSpBHlSxQ8qnYiAXzah8TKap3qWmnX5Dq0w4sxiIB HL4d/vGgBR37Q3Zj/SLOE+qwP4qwdnIDs+mzeuOUvAHL2EHZ/i3ahCwt/NU9y3ORw5HI 4ti+v9Wt4kUo7G1d7t8M0ug697uiu1mUKSJE4G0R8vrcW9IoIAQ0NoxTsa9qawF2l6V1 mxSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HXT+IvjVluiKH3yhs5geuypz9CaKXis2aNZdKmGa0hs=; b=eGr1Ug0zskx0RUSyfyBD8EqAiXm/8EU4VVHIhXpdAPUk0PRPBAoOBdhd6Qo2n9anbJ 6zhFdqGgQvdt+V2Of2s7gD5N3mHH03trOMqvGKThBUze4A4yfkgvLK+xXhVXLwFMlj5E 7mNqji+6paMcsSxbEpZjVG6J9Ct76IZ6jwYcofDdxugqViyc+aOY8POXcNB5GtJw9Me7 IFRvksOQguN4eHRgAD2yGRhbLlrk5mW3CAncH7pwz36Zr78WfwUJkE5Hv4jhEEI8ymbN 7amHWUzjGimjRsjcEsjggHvyw+ymaTmQfw+zqIfASpusMSEnUu+GmQdqTRQNXASAo20u np6g== X-Gm-Message-State: AOAM533ey14EKMGQsGhd+fR5UOeF8jdz7vhJqVFA362um7dhA9wq449/ mKL8ZYpQV7s5H/NaZVAcxoA= X-Received: by 2002:a05:651c:21b:: with SMTP id y27mr43091505ljn.72.1621181594232; Sun, 16 May 2021 09:13:14 -0700 (PDT) Received: from localhost.localdomain (109-252-193-91.dynamic.spd-mgts.ru. [109.252.193.91]) by smtp.gmail.com with ESMTPSA id d27sm1712547lfq.290.2021.05.16.09.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 May 2021 09:13:13 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Krzysztof Kozlowski , Stephen Boyd , Nathan Chancellor , Mikko Perttunen Cc: linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v2 1/4] soc/tegra: fuse: Add missing stubs Date: Sun, 16 May 2021 19:12:11 +0300 Message-Id: <20210516161214.4693-2-digetx@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210516161214.4693-1-digetx@gmail.com> References: <20210516161214.4693-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing stubs that will allow Tegra memory driver to be compile-tested by kernel build bots. Signed-off-by: Dmitry Osipenko --- include/soc/tegra/fuse.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h index 78cbc787a4dc..990701f788bc 100644 --- a/include/soc/tegra/fuse.h +++ b/include/soc/tegra/fuse.h @@ -52,14 +52,28 @@ struct tegra_sku_info { enum tegra_revision revision; }; +#ifdef CONFIG_ARCH_TEGRA +extern struct tegra_sku_info tegra_sku_info; u32 tegra_read_straps(void); u32 tegra_read_ram_code(void); int tegra_fuse_readl(unsigned long offset, u32 *value); - -#ifdef CONFIG_ARCH_TEGRA -extern struct tegra_sku_info tegra_sku_info; #else static struct tegra_sku_info tegra_sku_info __maybe_unused; + +static inline u32 tegra_read_straps(void) +{ + return 0; +} + +static inline u32 tegra_read_ram_code(void) +{ + return 0; +} + +static inline int tegra_fuse_readl(unsigned long offset, u32 *value) +{ + return -ENODEV; +} #endif struct device *tegra_soc_device_register(void); -- 2.30.2