Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1398803pxj; Fri, 21 May 2021 13:16:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrEikMNCu3FqOoepAknxIWAtkpx8rEnC6AHdRdroez6G+gFEA6VURjcVLfDXIN7ed+M+HO X-Received: by 2002:a05:6602:14c4:: with SMTP id b4mr617310iow.82.1621628212478; Fri, 21 May 2021 13:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621628212; cv=none; d=google.com; s=arc-20160816; b=BuiHhzBhN2dBtg1VSC30NKm126Dw3nW5R5cXDiJf47rg0+DtnaqPvzw2VIxJ9Rsqd6 pX94EXoUhft5ErRkgsAWXIZD+7pkM21slrax0tHdiHhq5xVqRcK2QtJpRlP3ntOgzltU FW5YvsgE1YewXGkXjELCv7B7AN1vGNEXSVkzb6INgnhxvZdcezlb1HJ1kLit6+qG31Z5 jOwApji5PQ+LChRO7m5ta2Zcc28eONlgDUtmrkYbG7f7rRUv43JxF0qrfnvNBFQw0lvt Veo29f4geR+JOpDvk+bSHOobIIlPlxoYzSxK3Mf6lnPKrBHpTZEhdbLZFzl4nJZ/cFkG 4cGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=BrMuO8zKUQZXiZMl4byp5s4jBNUfKWjrCHGRQ2C5rBg=; b=yyFbFR4b9g9vp7EBEkpe982VyXZD+HhEHksOpt+ZJjrh4XsN4vdd2PcOqyRNlmOEzj 8SGIcCV/SjXHLzPiz8TIOD82tyyQspJQpv6cq4UZMzFM8mV6JzB8/+aMiWnKqsKfOL0P vGHKLdPjanKG+gIos2xyvol/VO4siXwzRKVPRmQjEerQTFqEx8Gy7yqTPBMHoFGKJ3SX 4rhiAsECV1PkkJinaZKnhzvPUlEzABYgzoDioK1TzgA/Y0QRWygatrN1f1qIGUtcQEGx GxHOZhB+IekioaM2ojS2fmlP+1vR9eDWY/276ERLamtgMqiDpKhz/b1gYNqggCX65AkK ntzg== 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=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y196si7220762iof.24.2021.05.21.13.16.38; Fri, 21 May 2021 13:16:52 -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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235221AbhEUN1I (ORCPT + 99 others); Fri, 21 May 2021 09:27:08 -0400 Received: from foss.arm.com ([217.140.110.172]:47306 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235201AbhEUN05 (ORCPT ); Fri, 21 May 2021 09:26:57 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 55B3811B3; Fri, 21 May 2021 06:25:34 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.33.243]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 795FC3F73B; Fri, 21 May 2021 06:25:28 -0700 (PDT) Date: Fri, 21 May 2021 14:25:19 +0100 From: Mark Rutland To: Joe Richey Cc: trivial@kernel.org, Joe Richey , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Paolo Bonzini , Lorenzo Pieralisi , Mauro Carvalho Chehab , Zhangfei Gao , Zhou Wang , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , Sasha Levin , "Chang S. Bae" , Andi Kleen , Lei Cao , Peter Xu , Daniel Lezcano , Ulf Hansson , "Rafael J. Wysocki" , Jean-Philippe Brucker , Zaibo Xu , Kenneth Lee , Greg Kroah-Hartman , Hans Verkuil , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-accelerators@lists.ozlabs.org Subject: Re: [PATCH v2 3/7] drivers: firmware: psci: Use _BITUL() macro in UAPI headers Message-ID: <20210521132519.GA7325@C02TD0UTHF1T.local> References: <20210520104343.317119-1-joerichey94@gmail.com> <20210521085849.37676-1-joerichey94@gmail.com> <20210521085849.37676-4-joerichey94@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210521085849.37676-4-joerichey94@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 21, 2021 at 01:58:44AM -0700, Joe Richey wrote: > From: Joe Richey > > Replace BIT() in psci's UPAI header with _BITUL(). BIT() is not defined > in the UAPI headers and its usage may cause userspace build errors. > > Fixes: 60dd1ead65e8 ("drivers: firmware: psci: Announce support for OS initiated suspend mode") > Signed-off-by: Joe Richey Acked-by: Mark Rutland Mark. > --- > 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 2fcad1dd0b0e..87afdeb95096 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.31.1 >