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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 76BECC433B4 for ; Fri, 21 May 2021 09:01:39 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 F16A06101E for ; Fri, 21 May 2021 09:01:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F16A06101E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6tqWB1x/+HYqy9kBsukquIiQXur2V+fDp0kLtEhRI9c=; b=j8Ns4hrCTNtgFp/mhWLx8nwn7z aIwzYA8Oe9jU9dVBIQKSdNJhR6KIRThg43AiG9BOnE1orBeYeGkk+0Mi0Pl565RxHosafwjSyOBxl GeIyYvBVX+9NfZd/ksVnd5aIlSKBIRgCwWzJxqqc43L7TqVdFZlzyb+8Q+MSDkjAgKfq2upYYDeDw bIE16+TVO9kY3PjLrWckJwFygATJdBSUdwEUSZNNWwfBROEc1odd0IPuEYM+HUP2DJQmqc8OdW1mD qmbWR03qsHubugXsG2i9bDqDRqc6c6EZR4mht/1Bof8aXEyZw96Yxh/7b18p2xQVkcLAt29BfhIka +ipzvCMw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk10c-004Zqq-WB; Fri, 21 May 2021 08:59:55 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk106-004Zlt-52 for linux-arm-kernel@desiato.infradead.org; Fri, 21 May 2021 08:59:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=XBuT/V3P0pWC+ggnGmOX+z+lc1lWh88kce8Okb29znM=; b=YG//If6iMcWAnmjqDXWlqgc09O RbmYDc45Zznqz5OgGDxwbxKP1OlTr65gMyJV1Oxe+dw4aP6mql1oPqx8JoTc4qAVschTHjrzqpwrF /fmIC1CK/xZyv+Kg/xuiXBcBKREc4oEZaHaYlkhDWUj6OQvelCjvs8+KdE8y0St9U1YiLD9zm0cj0 elc0U1PqHQL1a1cQ4hcG767C8PBiaz3lJe39a877IzQqeEwhDJQ4YmQo97MD9zlluSmLou1FqvVkE EhBOq2gKpFq5X0hypHUfEqhj/AMLq1eXeNCBGosO6hTflGViwPZUhAwWBZ/oCYPxYw+ABZgorfgzz kC06mGCw==; Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lk103-00GxvZ-Js for linux-arm-kernel@lists.infradead.org; Fri, 21 May 2021 08:59:20 +0000 Received: by mail-pl1-x62e.google.com with SMTP id z4so8424909plg.8 for ; Fri, 21 May 2021 01:59:19 -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=XBuT/V3P0pWC+ggnGmOX+z+lc1lWh88kce8Okb29znM=; b=th9xtbD/aHMHBiQSY1g07NwM3TUVpqnBAcUupD1TBpQoSsfG5Oe7BGVpfS2U/UZclg Xhy8zEINjoqy+dS3JRZZreMPv3kmVVhsiQTeg4OIijjOL4mxp2M+c3FJnGOODP0uX75X +yaMqHGoq6CFlVwzsbJc9Ar5p8shcAFQHMumoNlVXUbBW78j08UG0IydZqh+Qv6eX3X/ XW01VeLen5pxgW5OJhJsK2bqSsP8MC6WEZ2VMw7svpBqhR3vgRJ6x7wxh+DFx9gNlKHf Or87tEbqDGiLmGNJ7FH7pWzJzmLZIVo7DD12Cx/LQKe11DkkbsyJe9xGm/G7n2fWjklt enqw== 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=XBuT/V3P0pWC+ggnGmOX+z+lc1lWh88kce8Okb29znM=; b=Rxa1zuqHnycjEFIwpjfFR9BvchEZtfVY36lGiu3Os6EHCT/+X5yMKMj0SsR6h6AzM4 XFYkU6KgKDrpLj740RSsXjYci25yVAjTGCi25teuF19roYduE6sxI3vh4QB9qsML4Ob7 eKXvjRBoJEKYldhVmnYELQv1h5APBofPGIKSvSH+9conVS2yQevu5paUCtZkySOx6G3z TAGHue6F24o/Yc+xyzirS9+eIJf38nk1AldbIxugs99KH00Ss0EneZ7NOg6L7o7DXSHe DLPDmUHWXag/hv5gi/cnXqQcR4CFCrdyAMzFRNUnk7TwzQ+PPgkPKY2flJfqm0pL4j6d ppYw== X-Gm-Message-State: AOAM531yVcVocMCDgZBzKUSg9HWMk9Fcp2J0VDZRBXIpvFJNhw4/IppY h3fCJqUQfKDliswgHcBv4tw= X-Google-Smtp-Source: ABdhPJxN3X0zUHNKO+LXfZHgjCVL4v9DqnY3i+c5fxiXCCPHA3ZbZc9Z7NLyQm2mTJpTyKmmE4lfNg== X-Received: by 2002:a17:90b:19c2:: with SMTP id nm2mr10180945pjb.18.1621587559209; Fri, 21 May 2021 01:59:19 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 01:59:18 -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 , "Rafael J. Wysocki" , Ulf Hansson , Jean-Philippe Brucker , Zaibo Xu , Kenneth Lee , Jonathan Cameron , 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 2/7] KVM: X86: Use _BITUL() macro in UAPI headers Date: Fri, 21 May 2021 01:58:43 -0700 Message-Id: <20210521085849.37676-3-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210521_015919_676427_898361E0 X-CRM114-Status: GOOD ( 14.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Joe Richey Replace BIT() in KVM's UPAI header with _BITUL(). BIT() is not defined in the UAPI headers and its usage may cause userspace build errors. Fixes: fb04a1eddb1a ("KVM: X86: Implement ring-based dirty memory tracking") Signed-off-by: Joe Richey --- include/uapi/linux/kvm.h | 5 +++-- tools/include/uapi/linux/kvm.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 3fd9a7e9d90c..79d9c44d1ad7 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -8,6 +8,7 @@ * Note: you must update KVM_API_VERSION if you change this interface. */ +#include #include #include #include @@ -1879,8 +1880,8 @@ struct kvm_hyperv_eventfd { * conversion after harvesting an entry. Also, it must not skip any * dirty bits, so that dirty bits are always harvested in sequence. */ -#define KVM_DIRTY_GFN_F_DIRTY BIT(0) -#define KVM_DIRTY_GFN_F_RESET BIT(1) +#define KVM_DIRTY_GFN_F_DIRTY _BITUL(0) +#define KVM_DIRTY_GFN_F_RESET _BITUL(1) #define KVM_DIRTY_GFN_F_MASK 0x3 /* diff --git a/tools/include/uapi/linux/kvm.h b/tools/include/uapi/linux/kvm.h index 3fd9a7e9d90c..79d9c44d1ad7 100644 --- a/tools/include/uapi/linux/kvm.h +++ b/tools/include/uapi/linux/kvm.h @@ -8,6 +8,7 @@ * Note: you must update KVM_API_VERSION if you change this interface. */ +#include #include #include #include @@ -1879,8 +1880,8 @@ struct kvm_hyperv_eventfd { * conversion after harvesting an entry. Also, it must not skip any * dirty bits, so that dirty bits are always harvested in sequence. */ -#define KVM_DIRTY_GFN_F_DIRTY BIT(0) -#define KVM_DIRTY_GFN_F_RESET BIT(1) +#define KVM_DIRTY_GFN_F_DIRTY _BITUL(0) +#define KVM_DIRTY_GFN_F_RESET _BITUL(1) #define KVM_DIRTY_GFN_F_MASK 0x3 /* -- 2.31.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel