Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp146943pxf; Wed, 31 Mar 2021 19:41:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE29nh0vCIsD85uX+nW4WcOK8GvNnxZRJrieh4kTvzStKiMfEP6BqZ+NgPwGeHkSL9pgbQ X-Received: by 2002:aa7:c6da:: with SMTP id b26mr7455253eds.254.1617244881323; Wed, 31 Mar 2021 19:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617244881; cv=none; d=google.com; s=arc-20160816; b=MnhjBB3Vg1L/djTBDCZB8TsBwSzY0hrYJbuLDlhxvWCoC7WrbktUHy2m3ZuoLR5mos ubmmPX13zHwDGn/lLIs7miNRx1CYc5fOusueAdIMItnEegoI4de/FuakzHcCxGf1VoZ1 ti3th5825r7f+J/fwiomCeM4gny4kp7DgCrhl6sD9hx0inXwDCFkLjHrREZ/pWkM6Y8+ CiUbcUZSmgY2JbuBB730H5SJA1KPE2Hb/y+ltqQfjOfr2wcjq4wQ7lACzDu4LcCM4Dpy wClt2cGm6jAaiZdHwBtFRkKgTqNE24NAB3KGE0qwcZvsHGrBJ2nR2ZGiNI5BGINpxaAC N3Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=quqjXpZ+LQ8z1TT3YhuyTDLL0XtJG9fYJohXcSZx4BI=; b=dPtWn+slFywiDQmlWdSFQAAIhIqCOQvjRW/IvBW2RiyoChLG+ocXKjzM51YmmLJjy0 1XM4tQ3L4DxsLQxXB3obIqAoSjEn+eWLT572UWJbb8wwkk/6ZbaniPD0pu52SsEP92LR cnsQnSDCjO5EHeZkRuvG5EoXWyF/yeGxh6A4bn0Nnk7cDPLzll4qwYrA1PcYal8WhLit mMhGufk6cMslU7oEAoP0/ouYZUb+C1EwvHEeLU193KDzcAl6561IRuI/YQhgn4CcSOnk r6CGjLwgnvJWnZXi3QwRVgYEl9kW9nO7p9iqKuJmL4Sp4BEOxKHC9ZBGrRdFGzMBl512 ZCpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fy14si3146960ejb.533.2021.03.31.19.40.59; Wed, 31 Mar 2021 19:41:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232492AbhDACj7 (ORCPT + 99 others); Wed, 31 Mar 2021 22:39:59 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:15839 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233090AbhDACj1 (ORCPT ); Wed, 31 Mar 2021 22:39:27 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4F9nQR2NFKz93g8; Thu, 1 Apr 2021 10:37:19 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Thu, 1 Apr 2021 10:39:17 +0800 From: Shixin Liu To: Vitaly Kuznetsov , "Rafael J. Wysocki" , Len Brown CC: , , Shixin Liu Subject: [PATCH -next] ACPI: processor: Fix a prepocessor warning Date: Thu, 1 Apr 2021 10:39:00 +0800 Message-ID: <20210401023900.3114325-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When compiling with defconfig on x86_64, I got a warning: drivers/acpi/processor_idle.c: In function ‘acpi_idle_play_dead’: drivers/acpi/processor_idle.c:542:15: warning: extra tokens at end of #ifdef directive 542 | #ifdef defined(CONFIG_X86) && defined(CONFIG_HOTPLUG_CPU) | Fixes: bc5706eaeae0 ("ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()") Signed-off-by: Shixin Liu --- drivers/acpi/processor_idle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 19fb28a8005b..0925b1477230 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -539,7 +539,7 @@ static int acpi_idle_play_dead(struct cpuidle_device *dev, int index) } else return -ENODEV; -#ifdef defined(CONFIG_X86) && defined(CONFIG_HOTPLUG_CPU) +#if defined(CONFIG_X86) && defined(CONFIG_HOTPLUG_CPU) /* If NMI wants to wake up CPU0, start CPU0. */ if (wakeup_cpu0()) start_cpu0(); -- 2.25.1