From patchwork Wed Mar 23 18:40:47 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philipp Zabel
X-Patchwork-Id: 12790053
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
aws-us-west-2-korg-lkml-1.web.codeaurora.org
Received: from bombadil.infradead.org (bombadil.infradead.org
[198.137.202.133])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by smtp.lore.kernel.org (Postfix) with ESMTPS id 5CFEEC433EF
for ;
Wed, 23 Mar 2022 18:42:07 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.infradead.org; s=bombadil.20210309; h=Sender:
Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:
List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc
:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:
List-Owner; bh=JVF68jx9MWcg4EfQdj+d0MPkGoSGPqve7BXB6et8rg0=; b=KEIzN322U6KpuR
+XyxjUlqLPsyj2FREPTWkrekj8VAtAxB1U+g6cXWq54HovAzRUWBKHtjM9Dpf4X0z7ZbBpabJ4iSg
WdxdkAiKkE+KvR7rJn5avvORJ42QqjpCer1YDRkg+A0yu93rsc+d07l5ApR8XyQbVM1QjL9wkfDL4
wiGMl0pIc2+4JsuYvg3rnFb0AP7YgBqE57ipuRy7cRy2RWunJMEIsq3JaX9gXyjdWdSsGlFixY6AZ
/LDNn0wiTwvOQh8wCklygYFUw/mhIHOdDTR55EhgZ7J9Q19ks09wVeJgNutjFA8AvIdhiAWqO53Xj
VS3KkvYZC24JjhvDhHZw==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux))
id 1nX5un-00EbsC-Go; Wed, 23 Mar 2022 18:41:01 +0000
Received: from metis.ext.pengutronix.de
([2001:67c:670:201:290:27ff:fe1d:cc33])
by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux))
id 1nX5ui-00Ebqb-Ps
for linux-arm-kernel@lists.infradead.org; Wed, 23 Mar 2022 18:40:58 +0000
Received: from dude03.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::39])
by metis.ext.pengutronix.de with esmtp (Exim 4.92)
(envelope-from )
id 1nX5ua-0006qP-Jn; Wed, 23 Mar 2022 19:40:48 +0100
From: Philipp Zabel
To: Nishanth Menon
Cc: Tero Kristo , Santosh Shilimkar ,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH] firmware: ti_sci: Fix devm_ti_sci_get_resource() stub
Date: Wed, 23 Mar 2022 19:40:47 +0100
Message-Id: <20220323184047.3931367-1-p.zabel@pengutronix.de>
X-Mailer: git-send-email 2.30.2
MIME-Version: 1.0
X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::39
X-SA-Exim-Mail-From: p.zabel@pengutronix.de
X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de);
SAEximRunCond expanded to false
X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20220323_114056_877058_E900CA94
X-CRM114-Status: GOOD ( 11.45 )
X-BeenThere: linux-arm-kernel@lists.infradead.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id:
List-Unsubscribe:
,
List-Archive:
List-Post:
List-Help:
List-Subscribe:
,
Sender: "linux-arm-kernel"
Errors-To:
linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org
Fix build errors when including linux/soc/ti/ti_sci_protocol.h with
CONFIG_TI_SCI_PROTOCOL disabled.
This allows to build the reset-ti-sci driver under CONFIG_COMPILE_TEST.
Signed-off-by: Philipp Zabel
---
include/linux/soc/ti/ti_sci_protocol.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/soc/ti/ti_sci_protocol.h b/include/linux/soc/ti/ti_sci_protocol.h
index 0aad7009b50e..bd0d11af76c5 100644
--- a/include/linux/soc/ti/ti_sci_protocol.h
+++ b/include/linux/soc/ti/ti_sci_protocol.h
@@ -645,7 +645,7 @@ devm_ti_sci_get_of_resource(const struct ti_sci_handle *handle,
static inline struct ti_sci_resource *
devm_ti_sci_get_resource(const struct ti_sci_handle *handle, struct device *dev,
- u32 dev_id, u32 sub_type);
+ u32 dev_id, u32 sub_type)
{
return ERR_PTR(-EINVAL);
}