Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1395198pxj; Fri, 21 May 2021 13:11:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcHC+bzeOQHmChJOTto0MrqqljJau+CmHL6OGINlzfwn7Ecsc3LAQZzaxts0HjyVjtuEHf X-Received: by 2002:a92:cd85:: with SMTP id r5mr590401ilb.294.1621627867492; Fri, 21 May 2021 13:11:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621627867; cv=none; d=google.com; s=arc-20160816; b=rMtGUHoS00OCZwXh+OOlmdfoB8v0mkrRLsfgnaoA6GRfTRVOvGVfiViLDXzG8RfKW7 MHityBm1ngRn1n22eK+mmpIS1fh1CVdxwkC75vfuw64lirhrKPqzxXNgULMV1FIVQCu+ fAcld/u3sZQ9T6D2tYyHkPkZ67vwwvWxiXXUPNUonHJ3bQao94cwkfyj8q/caoFBWe07 bHQILeptIcGj8EaTNBGzkm8Z3BrCAOP/Pi6/A7j0BN9LycUQSopYTDONie05XsJxo6pk F+Hndu6Lp/9OM3f7Ouj/vt2jnazSXFChwP3MKT92by1LMwGBQXFngnFPyKjOI2fTm5Ce lH2Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=J2YdikRzDA0+TJpu2vHIxRfLfNi2y/X1orUObOJPMcQ=; b=BxS4ESVTQicilHdywkcj9x9GkSmu9y/YH8jBvkiVkFI2LVPUmuggY8xmJDe1qAXHJE vSLuRXwo7DfOHC9lDWmBJr2xT6PrCpCoxuqNmeQq2rHvA5oEyLu/TUde/rpbHfQfVUSk lYA341iWsOwWYbKXZ4rfnQUSGb1GSe6PtArCfjGpQccmbA88J5W6A9iQWejDOBAK30eI o8NYCHWtJzKutU8wuT3WFQaLGhX8gQBKHx49CfgmMtsIp+3QqmiXorGhhyFzYW79XtVi sdiSKDf2wOhfQ67EeyrEWU8uigYYFquHywDGn2soUu8nbjphRkaXktNqHSmN4Jrw0TD6 cl1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YPWezR8r; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si5997879iot.47.2021.05.21.13.10.54; Fri, 21 May 2021 13:11:07 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YPWezR8r; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234446AbhEUJAp (ORCPT + 99 others); Fri, 21 May 2021 05:00:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233878AbhEUJAl (ORCPT ); Fri, 21 May 2021 05:00:41 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C30C5C061763; Fri, 21 May 2021 01:59:17 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id p6so10610743plr.11; Fri, 21 May 2021 01:59:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J2YdikRzDA0+TJpu2vHIxRfLfNi2y/X1orUObOJPMcQ=; b=YPWezR8rmITdukllwU88BHwlaqRM1dPHToJuAi/XZT4/apUsiR2eBO7sBJjPLlr8bz A+ZJ/F2lBzogpk4U2KC4tEjqlKJcytL9Mc1y9bitI7M8IdQpJY16ZqVeieIMbJTaXtcG k0CaQj/1LQiU8yyP4itYEL1YcUoHTSQKtSI+6BogDR79h2KNPNDzIr5AUViL+Ru9Wxv6 SIoBrpB2Dt9sjglTXzAG9CoOSBBj3Weu5HfJtvvXqvFYcW4LkHJU25b8YXekuYPZ6YKN kY/aFaavE7V1kunGfNIwPpISOYxvM2WeOdRTzHtYeR+wh58PQZMe2SNWFsDrEDFsE+Xp xGtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J2YdikRzDA0+TJpu2vHIxRfLfNi2y/X1orUObOJPMcQ=; b=IIiuPWTX59Ujk7C4rrdT2fxej/jbM5ssLwjSNzKHLT3t0ZWGlyb3QtmCzLVBK6sl/q pedmaRSbKcqr2SD0oeL6Dn1SFtfxqxECSrtA4KJyFJhYMYxBJqekLutQi51LQt34ndZr Dl8n377d8brpcjFXyuqG4j0KLrweuk5yBKTCNIYOthO08Wmsumn2iiIWkxQHnYMgTMmI gs2+yHuvCUYce6OoZ7BeZkmqKOub/XQFT2HBCBu4muht/+ytGUFkiHTk5OlGEmHHrqRY 005raDyrIqvLPQ5gYtdaUy7ifXwqxkiyY1/d1zUxxCO8v7avJG79VkPJS1ffcup3qQPi Kutg== X-Gm-Message-State: AOAM53063KX+cVwQF6dRocV8AjnT31jpwo90NjM0tBLUCh23wB3pXKkw 3ozEZFmEerxYmXo3msd0eww= X-Received: by 2002:a17:90a:c792:: with SMTP id gn18mr9489955pjb.44.1621587557337; Fri, 21 May 2021 01:59:17 -0700 (PDT) Received: from pride.localdomain (c-174-61-140-56.hsd1.wa.comcast.net. [174.61.140.56]) by smtp.gmail.com with ESMTPSA id q3sm3914489pff.142.2021.05.21.01.59.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 01:59:17 -0700 (PDT) From: Joe Richey To: trivial@kernel.org Cc: Joe Richey , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Paolo Bonzini , Mark Rutland , Lorenzo Pieralisi , Mauro Carvalho Chehab , Zhangfei Gao , Zhou Wang , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , Andi Kleen , "Chang S. Bae" , Sasha Levin , Peter Xu , Lei Cao , Daniel Lezcano , Ulf Hansson , "Rafael J. Wysocki" , Jean-Philippe Brucker , Jonathan Cameron , 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: [PATCH v2 1/7] x86/elf: Use _BITUL() macro in UAPI headers Date: Fri, 21 May 2021 01:58:42 -0700 Message-Id: <20210521085849.37676-2-joerichey94@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210521085849.37676-1-joerichey94@gmail.com> References: <20210520104343.317119-1-joerichey94@gmail.com> <20210521085849.37676-1-joerichey94@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joe Richey Replace BIT() in x86's UPAI header with _BITUL(). BIT() is not defined in the UAPI headers and its usage may cause userspace build errors. Fixes: 742c45c3ecc9 ("x86/elf: Enumerate kernel FSGSBASE capability in AT_HWCAP2") Signed-off-by: Joe Richey --- arch/x86/include/uapi/asm/hwcap2.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/uapi/asm/hwcap2.h b/arch/x86/include/uapi/asm/hwcap2.h index 5fdfcb47000f..054604aba9f0 100644 --- a/arch/x86/include/uapi/asm/hwcap2.h +++ b/arch/x86/include/uapi/asm/hwcap2.h @@ -2,10 +2,12 @@ #ifndef _ASM_X86_HWCAP2_H #define _ASM_X86_HWCAP2_H +#include + /* MONITOR/MWAIT enabled in Ring 3 */ -#define HWCAP2_RING3MWAIT (1 << 0) +#define HWCAP2_RING3MWAIT _BITUL(0) /* Kernel allows FSGSBASE instructions available in Ring 3 */ -#define HWCAP2_FSGSBASE BIT(1) +#define HWCAP2_FSGSBASE _BITUL(1) #endif -- 2.31.1