From mboxrd@z Thu Jan 1 00:00:00 1970 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=-8.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 AC096C54FD0 for ; Tue, 24 Mar 2020 04:17:24 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 83A752073E for ; Tue, 24 Mar 2020 04:17:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AtdIY25B"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="dn8HrI+n" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 83A752073E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date: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=CBzBzoEE8MJx0phzAOShDdtjm2kHs2svAv4JbsKvJ/s=; b=AtdIY25BkUJUz7 by250d4r16mmWgrAARwhHxngkLJRkbaw25Mj4pczJXUgqqvJt3y4bVc3tJImM4HluJMW6tbt/kC98 HO5tvuoU+sM0RYZfQBVyLSUWv5/bHU+VJREycsz3zgvf/39Nt5M7q/xZ6gN5CxkA09SGZBp/5DKps fbA2Ko4wbpBjflpDYAbIlQWKsWg0clKGyn/2w+TRwEZ5K2kDVoWucgp5cyTlEGYRbmkJs0FtGL/fz konS/mT8C8seGSglKRvzorRpaIh9ubE3ryYTBAgOoqKMSRYN6exQdOqi9Bj2N+XbqVh4SJytM/SSl 76HSlWwI82z5ssPUK4pw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGb0F-0005n2-PK; Tue, 24 Mar 2020 04:17:23 +0000 Received: from us-smtp-delivery-74.mimecast.com ([216.205.24.74]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGb0B-0005m6-Us for linux-arm-kernel@lists.infradead.org; Tue, 24 Mar 2020 04:17:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585023436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=n4RxvffG/7IgthqLXT54eLe3yEn0o9kSt/husDShtPU=; b=dn8HrI+nwmr4AsiE1GIoctCaekb1x08iF6MXnljAj1pYRtbDsx1VZJLYvPnJlF0m1MT4qC WPpLimZH0EZh67vNkyRr6g1+/koiWNreVIM9pdr0Md63gIZJBqmbrJn33i1B5Gtpyangtr NaK9ZAWgj/KwwjLWyj0ub7yK3HNUvc8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-288-V0B4BEPsNgCU0Ga8yp8c_Q-1; Tue, 24 Mar 2020 00:15:23 -0400 X-MC-Unique: V0B4BEPsNgCU0Ga8yp8c_Q-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7A1C813F5; Tue, 24 Mar 2020 04:15:22 +0000 (UTC) Received: from asgard.redhat.com (unknown [10.36.110.53]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3C9135C1B5; Tue, 24 Mar 2020 04:15:20 +0000 (UTC) Date: Tue, 24 Mar 2020 05:15:26 +0100 From: Eugene Syromiatnikov To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ulf Hansson , Mark Rutland , Lorenzo Pieralisi Subject: [PATCH] drivers: firmware: psci: avoid BIT() macro usage in PSCI_1_0_OS_INITIATED Message-ID: <20200324041526.GA1978@asgard.redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200323_211720_244936_982CDF78 X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Lezcano , "Rafael J. Wysocki" , "Dmitry V. Levin" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org The BIT() macro is not available in UAPI headers, so let's replace it with similarly defined _BITUL() macro provided by . Fixes: 60dd1ead65e8 ("drivers: firmware: psci: Announce support for OS initiated suspend mode") Signed-off-by: Eugene Syromiatnikov --- include/uapi/linux/psci.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/psci.h b/include/uapi/linux/psci.h index 2fcad1d..87afdeb 100644 --- a/include/uapi/linux/psci.h +++ b/include/uapi/linux/psci.h @@ -12,6 +12,8 @@ #ifndef _UAPI_LINUX_PSCI_H #define _UAPI_LINUX_PSCI_H +#include + /* * PSCI v0.1 interface * @@ -100,7 +102,7 @@ #define PSCI_1_0_FEATURES_CPU_SUSPEND_PF_MASK \ (0x1 << PSCI_1_0_FEATURES_CPU_SUSPEND_PF_SHIFT) -#define PSCI_1_0_OS_INITIATED BIT(0) +#define PSCI_1_0_OS_INITIATED _BITUL(0) #define PSCI_1_0_SUSPEND_MODE_PC 0 #define PSCI_1_0_SUSPEND_MODE_OSI 1 -- 2.1.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel