From patchwork Thu May 27 21:43:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 449631 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79A3CC47089 for ; Thu, 27 May 2021 21:45:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4B784613BA for ; Thu, 27 May 2021 21:45:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235904AbhE0Vqs (ORCPT ); Thu, 27 May 2021 17:46:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234798AbhE0Vp2 (ORCPT ); Thu, 27 May 2021 17:45:28 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3EB9C061574; Thu, 27 May 2021 14:43:54 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id t17so2704103ljd.9; Thu, 27 May 2021 14:43:54 -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=PZ7rCy2VE/t2KfttY6Z1tGootvL+h1fkg+mpjvNoBrY=; b=IeJKbId95K3iK17owixOY6kalvvBBzL4PEPRprUHFRyWbRjX0aT0nu/lkbbJJ2Pfel z14Ktt62JnhGWxW8BN6SN3951qZORfqqr63fqYM/wli6iyYHuQxQjHPMIqNiZUfIH0K8 4hBRaTXPLAIvP8szOiTPpYSllRNCmQN0gavhBoTrSOU/wsiI+VNJKc5mY3O4D7GTwrDM 4oPE4cOOI9OIWXHr4HqqOSonfWh+0MXOQXiM38aIKi4/7DI6MysjQc+gmD/Svv5ID1xh icsbSZZFw+YvuhHEZLWbsnJ04/DpqwKJy50541NtgbX2fKBfxqhgE01bqjboeMhFET0h pLfg== 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=PZ7rCy2VE/t2KfttY6Z1tGootvL+h1fkg+mpjvNoBrY=; b=MUdDiwivdkBsHsu+I1HSyHCfzjZhcM4kl4S9Nvbx8UIip2/0EGoQYsaVNm7PEzLEua VGx3KXYg9QlImRjMpOYjPCfVahBur2pIAGqKORpb8pjWyk5FKXnenWe55gHbBJbCNtmQ Y0ASG/wq6emO1WnCpbOYAy+JwiNObqFD7r5cjaHD+KJB5RwOAnFlimwo/H2z+Z+lbAKb WK4vPI9ljSKTbp6miiIM7wsc1R5TvtkVji7SeAU/Bh0cJh9oiFOK7GJNZhX1qqSGApCq v/cn8BkzFU6qh5+Hl1dgRLG9mWeDKPRcKtADyr/Cn+E6V6v29mTmwNZC1bJQf8TfXIGM Ejuw== X-Gm-Message-State: AOAM533RqE3YVSQptwewbD4NiMvA4yHDH/30dB4cXh3M6A+U5/tS+so8 FqgRZOULFcmK0Y6uqxbb6PU= X-Google-Smtp-Source: ABdhPJz1ay4qkLtz1wNyNXpgOskEjyw6OXgWZ39qRNHBlWbB5fzuPMVTtfpz2jZLaHVoTx404NsXuA== X-Received: by 2002:a2e:8746:: with SMTP id q6mr4149087ljj.416.1622151833296; Thu, 27 May 2021 14:43:53 -0700 (PDT) Received: from localhost.localdomain (46-138-12-55.dynamic.spd-mgts.ru. [46.138.12.55]) by smtp.gmail.com with ESMTPSA id v11sm298153lfr.44.2021.05.27.14.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 May 2021 14:43:52 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= , =?utf-8?q?Nikola_Milosavljevi=C4=87?= , Ulf Hansson , Peter Geis , Nicolas Chauvet , Viresh Kumar , Stephen Boyd , Matt Merhar , Paul Fertser , Mark Brown , Liam Girdwood , Krzysztof Kozlowski , Mikko Perttunen Cc: linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Nathan Chancellor , linux-clk@vger.kernel.org Subject: [PATCH v4 03/14] soc/tegra: Add stub for soc_is_tegra() Date: Fri, 28 May 2021 00:43:06 +0300 Message-Id: <20210527214317.31014-4-digetx@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210527214317.31014-1-digetx@gmail.com> References: <20210527214317.31014-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add stub required for compile-testing of drivers. Signed-off-by: Dmitry Osipenko --- include/soc/tegra/common.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/soc/tegra/common.h b/include/soc/tegra/common.h index 98027a76ce3d..744280ecab5f 100644 --- a/include/soc/tegra/common.h +++ b/include/soc/tegra/common.h @@ -6,6 +6,15 @@ #ifndef __SOC_TEGRA_COMMON_H__ #define __SOC_TEGRA_COMMON_H__ +#include + +#ifdef CONFIG_ARCH_TEGRA bool soc_is_tegra(void); +#else +static inline bool soc_is_tegra(void) +{ + return false; +} +#endif #endif /* __SOC_TEGRA_COMMON_H__ */