Message ID | 1676021646-2619-3-git-send-email-ssengar@linux.microsoft.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp854586wrn; Fri, 10 Feb 2023 01:38:27 -0800 (PST) X-Google-Smtp-Source: AK7set+vCA4enUI8ggcFv4+y0IN9Vm41wpIRK+gcCxigqZCBqR2EVWCwVpm8+xfsgCj1BotygUDw X-Received: by 2002:a17:906:198f:b0:894:acbe:7a97 with SMTP id g15-20020a170906198f00b00894acbe7a97mr15247930ejd.13.1676021906889; Fri, 10 Feb 2023 01:38:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676021906; cv=none; d=google.com; s=arc-20160816; b=epCCslLV6PHrRNTzC/jzF4Et4rROjdK66DFDzODSYUMV+d+0BQHjkR/RRGqvGsHgCf 0laXs3lgQsXT4klcIYbSMja0Rr1V1W/R54d0jjTeuI9zCnGBS1t/Y9n83OVrSQnZh3kB nYfdmZoWHoD93OXO5HKruJq55XmZJUT4np0gZpDDZXGfXjNEb0t8vJGTqO2coiBd90tT 8Wf9PdUHpF+j773xlJNgsjaMKti0mFCjKkHH4ugVdCndkRF2aqbEUyfGfWHI3rjDC5lG RdQXLKMXXFIXA5nffpPQEd6ThMApLhFSL57YNimNiRpX6zWCbr0mIgNFFaG/JWnB8hXY tqKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:dkim-filter; bh=xk324Cp6d3rfpuHgml/BUB2sel/VAv3cHll/JnxP2bs=; b=uMaOn7GQP2ExAAWXyqN+wwd8ktYbfgJx7RXHV7o1DFsYSX12Zu8rSEvcP2ZeTx/VAM 20YTBquuV+1EYPlSKt+qOBc69WpsVmga9+4b5+h7gy96/8XxB40tI9ONI1vDzavw+rDv 8dl8h+1sU8ypMDSYKXntJv89TKUcQfcE45cXSfipaKj/N6+6KbP7e2vYCPFwQNY664S6 Ia45lnt6Z7CWjhTRTwGmDYi2cQ67DHm8VwAw+1c55j2x9YEuPqL0qRcufNFcJ1iXQSR8 1wZguPKyuQiPBAfocZrEw/cVYwalV59FyCL2zzPBeM4eUbLysSTmioCtqP3VX9wTvct8 +0JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=cN97yvzs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fm6-20020a1709072ac600b008674dc31401si4755727ejc.632.2023.02.10.01.38.04; Fri, 10 Feb 2023 01:38:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=cN97yvzs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231923AbjBJJeQ (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Fri, 10 Feb 2023 04:34:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231809AbjBJJeM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 10 Feb 2023 04:34:12 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A0B9364640; Fri, 10 Feb 2023 01:34:11 -0800 (PST) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 189CD20C8B0B; Fri, 10 Feb 2023 01:34:11 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 189CD20C8B0B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1676021651; bh=xk324Cp6d3rfpuHgml/BUB2sel/VAv3cHll/JnxP2bs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cN97yvzsZ2MKlD/k6yv21cMadwmFVI0hrJy8tvTBWvyumyJ5LXLHWxX9gST8ZxOMv X1TWGxjKcZl0OIuJZyxeiLzIfk/Dph+qbwerLcYAaJLHszkDe7JvOO9DSRBOuMib1F pukg5tYLRYumB3qrMYDUXCs7h69LUI2u4HIWkCcY= From: Saurabh Sengar <ssengar@linux.microsoft.com> To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, daniel.lezcano@linaro.org, tglx@linutronix.de, virtualization@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, mikelley@microsoft.com, ssengar@linux.microsoft.com, dphadke@linux.microsoft.com, lenb@kernel.org, rafael@kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH v6 2/5] ACPI: bus: Add stub acpi_sleep_state_supported() in non-ACPI cases Date: Fri, 10 Feb 2023 01:34:03 -0800 Message-Id: <1676021646-2619-3-git-send-email-ssengar@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1676021646-2619-1-git-send-email-ssengar@linux.microsoft.com> References: <1676021646-2619-1-git-send-email-ssengar@linux.microsoft.com> X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757436347042323557?= X-GMAIL-MSGID: =?utf-8?q?1757436347042323557?= |
Series |
Device tree support for Hyper-V VMBus driver
|
|
Commit Message
Saurabh Singh Sengar
Feb. 10, 2023, 9:34 a.m. UTC
acpi_sleep_state_supported() is defined only when CONFIG_ACPI=y. The
function is in acpi_bus.h, and acpi_bus.h can only be used in
CONFIG_ACPI=y cases. Add the stub function to linux/acpi.h to make
compilation successful for !CONFIG_ACPI cases.
Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
---
include/linux/acpi.h | 5 +++++
1 file changed, 5 insertions(+)
Comments
On Fri, Feb 10, 2023 at 10:34 AM Saurabh Sengar <ssengar@linux.microsoft.com> wrote: > > acpi_sleep_state_supported() is defined only when CONFIG_ACPI=y. The > function is in acpi_bus.h, and acpi_bus.h can only be used in > CONFIG_ACPI=y cases. Add the stub function to linux/acpi.h to make > compilation successful for !CONFIG_ACPI cases. > > Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> and please feel free to toute this patch whichever way is convenient. Thanks! > --- > include/linux/acpi.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/linux/acpi.h b/include/linux/acpi.h > index efff750f326d..d331f76b0c19 100644 > --- a/include/linux/acpi.h > +++ b/include/linux/acpi.h > @@ -1075,6 +1075,11 @@ static inline u32 acpi_osc_ctx_get_cxl_control(struct acpi_osc_context *context) > return 0; > } > > +static inline bool acpi_sleep_state_supported(u8 sleep_state) > +{ > + return false; > +} > + > #endif /* !CONFIG_ACPI */ > > #ifdef CONFIG_ACPI_HOTPLUG_IOAPIC > -- > 2.34.1 >
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index efff750f326d..d331f76b0c19 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -1075,6 +1075,11 @@ static inline u32 acpi_osc_ctx_get_cxl_control(struct acpi_osc_context *context) return 0; } +static inline bool acpi_sleep_state_supported(u8 sleep_state) +{ + return false; +} + #endif /* !CONFIG_ACPI */ #ifdef CONFIG_ACPI_HOTPLUG_IOAPIC