From patchwork Sun Sep 12 20:29:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 509614 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.8 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 B4238C4332F for ; Sun, 12 Sep 2021 20:29:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 94BFE6108E for ; Sun, 12 Sep 2021 20:29:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236396AbhILUai (ORCPT ); Sun, 12 Sep 2021 16:30:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236372AbhILUaf (ORCPT ); Sun, 12 Sep 2021 16:30:35 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54B3EC061762; Sun, 12 Sep 2021 13:29:20 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id d6so11341176wrc.11; Sun, 12 Sep 2021 13:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JTbm+Ivds98cb9V5q8q1C/zZH2NCdOMIxgLjAuUIi4Y=; b=QdWTkWXDkHr1OL1oUfrE+dECJvDZkBMO98M5MBCU2R8F6tt47tXHBM72yq7z85SzOs b8T/Lgz5zoU/tOWehQFeBfYsFU7xBSPFKMjO+dErY2llrYtII90K67dkk0qVCgqoL/XS KGUjU8e870h2J57SuTHzRDxat/KdQKvk/aFP7TnQclG2P+60qLgV6FRoZLa/k9wHCs8i TCXdOJWrxlpbr6i6KFKYJJxspQqmWeKgPA8kssvCRWoH+w/4jbOnaHh13mVXx0M8mk6t 1UrD5h+oNXFl9CTzMXoclhEsy/1hUMmZ83918ADBhOFCt+gpH3yIG3R5iW4eRoQ+ebf/ jTrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JTbm+Ivds98cb9V5q8q1C/zZH2NCdOMIxgLjAuUIi4Y=; b=TgdFdWDHvqVdmxlk9GESheysw+LC+BIXXm9IQS/D/1LkL+v7uL+72VtkD7AGiGI18I qd4zeGsF490PtYZHptoCrLnZH+ZsTVDXwq7Pt9Q0apWc6iQmTK/2Z7Z2AVI/YsAMzcaA RlbqttehqdRpSsLzpdGw0fMCCLMBrxRM2/fEMemyVH7BLEEb7vqchIu7LogOjqqbDS85 8KmEtZIO2nklPJYkPsm8lIQ0BJ4tNeH6wisNzfLSsZhpeofVBYHmHdNLRNc8ow22N1tl ixBIR+uMRd93ytkjjbbwPKylnozqsl54+gyB1vQvBJNaUVUc/Ph6vhsb7Fv+bXWU4EXZ g6RQ== X-Gm-Message-State: AOAM5310hRXSpI28s5sCr8+jdlyPSA9IGK5U6cvXB9NTm+MklJGfHxui JJVwBKBVljdteiU0DRhXvGE= X-Google-Smtp-Source: ABdhPJwx6tSscBJiPzgeceppiIUbf4P3AF4lYVjjAILZ4ZG14NRxwmFtq7F+tTtUa6kn6EIHen6JjQ== X-Received: by 2002:a5d:67c8:: with SMTP id n8mr1616735wrw.122.1631478559016; Sun, 12 Sep 2021 13:29:19 -0700 (PDT) Received: from localhost.localdomain (46-138-83-36.dynamic.spd-mgts.ru. [46.138.83.36]) by smtp.gmail.com with ESMTPSA id k29sm4847466wms.24.2021.09.12.13.29.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Sep 2021 13:29:18 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Daniel Lezcano Cc: "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/6] soc/tegra: irq: Add stubs needed for compile testing Date: Sun, 12 Sep 2021 23:29:03 +0300 Message-Id: <20210912202907.28471-3-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210912202907.28471-1-digetx@gmail.com> References: <20210912202907.28471-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add stubs needed for compile-testing of tegra-cpuidle driver. Signed-off-by: Dmitry Osipenko --- include/soc/tegra/irq.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/soc/tegra/irq.h b/include/soc/tegra/irq.h index 8eb11a7109e4..94539551c8c1 100644 --- a/include/soc/tegra/irq.h +++ b/include/soc/tegra/irq.h @@ -6,8 +6,15 @@ #ifndef __SOC_TEGRA_IRQ_H #define __SOC_TEGRA_IRQ_H -#if defined(CONFIG_ARM) +#include + +#if defined(CONFIG_ARM) && defined(CONFIG_ARCH_TEGRA) bool tegra_pending_sgi(void); +#else +static inline bool tegra_pending_sgi(void) +{ + return false; +} #endif #endif /* __SOC_TEGRA_IRQ_H */