Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2300574imw; Wed, 6 Jul 2022 03:41:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sa21qoF5SwAF6VCJVycsQyTxJGmqGbuzE61+5szmhzimk1/+0P1o47cfREsWxmHvAJHn+u X-Received: by 2002:a17:90b:3143:b0:1ec:be03:e0a5 with SMTP id ip3-20020a17090b314300b001ecbe03e0a5mr49349570pjb.30.1657104083618; Wed, 06 Jul 2022 03:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657104083; cv=none; d=google.com; s=arc-20160816; b=pa5UYX8gH98SP0YtfOGeGZx+xqpZM3JbYRRUqje1xrLWoqYhtj0zAJfd8Vc1mSYANj w5WT1wx3XLxi5MAYWwl6izdYEOZahOAIlPCCsKGGQnNnqLktCHqpVo/oycO9Mzp4EWUI faElcBPfZVyLwN4wElEYHHZ59CcTwlRkn/QBJZ22ama1ThKLen3ZDycs8g/ydW1A+Hqd OHqOaw5/EAvRzy+2hPIvSpjGVQ2Hgm0hcSYKPX+VJ7KJL2Qe0K6y8B7RYbxn19kt2UTr KwfXvGEHzjUDwDN/gYlbLmHmka7HOHJfIb1/Cw6vZbBqDLDIOJP/z7twn3rmvk8nTlLa ZN8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=1m+ZKiB2sb7HrzVoAUSPctumZcgZ3EP8gbbHyC8OoYA=; b=wAXRaJKpeVeZsbD1+/X31Jw47RsAbWbVWyBJhUSWYnn8TYpN7b0THu3VEyprYgkuWS GoCBCIHAA7aTaff8pbgTBGze1MGjjHiQzNkNCeETuIoGnwPsJKeOwYjJXF4vJelxKNn5 515LQN9K5E4GHG8ALEbO4OHUyWgscrViGxGl047G9ydAGktoqdTLkTC9KJVIR8WazI3V 2tfmWxpzoMWhM3YfniLsrpyf40MMJyq7gVeSlxO5TWhBEBarw4zJ5SGjADwFaqKOQYKo jDsdTBYMEFkL2NHY0Gjhwv+1bzSVHGA+w0kDa5vjnG2c27kurLWoVM99+lXOOZUncl92 9X7g== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c1-20020a630d01000000b0040c9f5a0e43si1001196pgl.338.2022.07.06.03.41.12; Wed, 06 Jul 2022 03:41:23 -0700 (PDT) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232014AbiGFKcJ (ORCPT + 99 others); Wed, 6 Jul 2022 06:32:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231726AbiGFKcI (ORCPT ); Wed, 6 Jul 2022 06:32:08 -0400 Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8B8627170; Wed, 6 Jul 2022 03:32:06 -0700 (PDT) Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-31c9b70c382so72848487b3.6; Wed, 06 Jul 2022 03:32:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1m+ZKiB2sb7HrzVoAUSPctumZcgZ3EP8gbbHyC8OoYA=; b=HKsw0LL9leRQTSNa1JCFWFHWXUK04tIDKw2ZZgPLwk3IOW0/af347bXtX7ZGSh7CCj TgwCP2VFQjUpqb7+ysSweTHPugsJkB11SVd8Z/c+RgkXhNrpLfvB8cdsnGnM3tyBwwJ/ RmFDcOZcWxBFtysERqPnrO5lcnm09qByhmTNgP8yWTaiUjcM5pC2KWkvdM+r9vbOp5W/ R53JwsIIPK6S3FSw03yaeHwWjTqdbzbxCKQ+H5NbZy04oNhpKyskfogAb3icQc3gmUJM M/F8sOhzXHEViPb3jdcjBs4vHR2kAXpVRsNwzCt7wMRzhWXn65UjbVmDm9HASyZ7KAGS eU+w== X-Gm-Message-State: AJIora+vbYwFl4ynWyA42Hwd3NBGzZpKLQQ8CrZFazEhBBVtZCR1VDox X8hWub42SspwswU31JWeP+LcAdsTNtFQi3GbM8cnVnRMKvY= X-Received: by 2002:a0d:c486:0:b0:31c:3b63:91fe with SMTP id g128-20020a0dc486000000b0031c3b6391femr39955412ywd.7.1657103526222; Wed, 06 Jul 2022 03:32:06 -0700 (PDT) MIME-Version: 1.0 References: <20220706014404.3191-1-zeming@nfschina.com> In-Reply-To: <20220706014404.3191-1-zeming@nfschina.com> From: "Rafael J. Wysocki" Date: Wed, 6 Jul 2022 12:31:54 +0200 Message-ID: Subject: Re: [PATCH] acpi/sleep: Add header file macro definition To: Li zeming Cc: "Rafael J. Wysocki" , Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List , kernel@nfschina.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 6, 2022 at 3:44 AM Li zeming wrote: > > Add header file macro definition. Please explain why you want to make this change. > Signed-off-by: Li zeming > --- > drivers/acpi/sleep.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/acpi/sleep.h b/drivers/acpi/sleep.h > index 7fe41ee489d6..adb3b5c13f90 100644 > --- a/drivers/acpi/sleep.h > +++ b/drivers/acpi/sleep.h > @@ -1,4 +1,6 @@ > /* SPDX-License-Identifier: GPL-2.0 */ > +#ifndef _SLEEP_H > +#define _SLEEP_H > > extern void acpi_enable_wakeup_devices(u8 sleep_state); > extern void acpi_disable_wakeup_devices(u8 sleep_state); > @@ -30,3 +32,5 @@ extern bool acpi_sleep_default_s3; > #else > #define acpi_sleep_default_s3 (1) > #endif > + > +#endif > -- > 2.18.2 >