Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1003160ybj; Thu, 7 May 2020 12:26:55 -0700 (PDT) X-Google-Smtp-Source: APiQypI9zmbt9HSB8ejPAUOOeVVNtirhLKFwDPiy3Vw3svAmLjzyq564sYbqGPdot5/7C1pkXSNq X-Received: by 2002:a17:907:11de:: with SMTP id va30mr14042838ejb.121.1588879615199; Thu, 07 May 2020 12:26:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588879615; cv=none; d=google.com; s=arc-20160816; b=z8fv75olQOq8xOhHkfXK+XTuqfhaba32ThZRKoau5+FTRwpvsQiiI9ELF9oZl3jmKk bC9+VZR9JYuREse3MmdWsK6iyGd2I0YljKGK185hiJFwBLwId3ibkWvJJD4XE00pCN7p Urq9z1hYLOxg7zflcw6GdQRJq16t0rzwlmaAKusE4wBYuXMfF7IP6Nn2bmxMAlxFDqtA X5gHTm21NJsbniBWbHliP3Kl/RDRwsJeyAzrPQ4qH4XNpaxlBmUbwlguxZvgJ2MB1R0z UKQ2EBkmsZjLsiv4jhPqopcRkeecT5W7eOIfAFGV/0owQDhOIG+/iUP7GvJ+bzrhUAny iZOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zCmfLDT8Xg7KPWdKGsHrM2wJdMC2w066YnMbUyG6BXw=; b=qT4Bwkvu9UdPvkaOarKxKTTfztrP8h5jeapjS4W4mqF7S9+aitC59d+O7EL9GJulou 7L5HyzFXAb5e9UZGFfIElJx3AFOLlYZqSErqxmhGphr1Pi5hMmG/n6Ytx4B3f8DWpWCg 6RFh4Sorp8tQc3e2i/znqcsDyLTPNMaAnsKFGwflxecZhEHaryDZtcBe1zxbWBb/ijJV 4yM6wrf7mtbgdKFVIduqz+92kvE6mEox2K/GPmWgIVXCH8mrI6RqV3nOmj+f3USx/inq lOfknMGUoxrugFn5g6vnsXmDn9tMUVjtWhNmUCFZC70qYw7nqm8J5maEb9HxzcxPUiuI AIGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CVCWdnIe; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si3834129ejt.145.2020.05.07.12.26.31; Thu, 07 May 2020 12:26:55 -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=@google.com header.s=20161025 header.b=CVCWdnIe; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728775AbgEGTWo (ORCPT + 99 others); Thu, 7 May 2020 15:22:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728765AbgEGTWm (ORCPT ); Thu, 7 May 2020 15:22:42 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FE60C05BD43 for ; Thu, 7 May 2020 12:22:42 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id m7so2467757plt.5 for ; Thu, 07 May 2020 12:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zCmfLDT8Xg7KPWdKGsHrM2wJdMC2w066YnMbUyG6BXw=; b=CVCWdnIeskzXgjEvarxpiqkffrQBPs2WijjSDxPkUwJ88jvue9p8Q6qNV7j3mUyeO2 D2mvbyqxacJUrQSCSThA+zohdxCizwaw6chIgnZ4c5qV27xYnAHyw+Lw+rILBt64PlBY 5VB+VH8MF6ViEQZV+1rMnUMCyqi0ucXmWRWHwsgp8IE9CMQ2Zly+G01wDMYURAjiDEQ3 L4Wf1fpshwO3J+v+pdW0hR/518mf35doIpWL5bgJpwepfkXRwQiVaxiq81tBBJf0i4l5 w5kEnEVCa5/n7Bp+U9naTAsgjX4XBCUk7TAyWv3c83Iccma+VlOVqs2T+BtxDlo/9Nvm Bqpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zCmfLDT8Xg7KPWdKGsHrM2wJdMC2w066YnMbUyG6BXw=; b=J1j/7AtuBw7bKBc9w8DxuQwcvpzf0966Ygx+K+7n3AkOxM8y6tICJUiMQHYh7RHxmr evRsUct9O7qY7tb2eG9mKZLT65a0XtngeQCfuNqUNfmFWnBq1FvnA03SclpQbzly/Gll 8pYFR9HmGEf9sLVAXRou2NHU+4OiaXtnazUzDncBDglg9HAUB5x+WskKBNewH+dF77+z kjOjR53Y/rP4dohkjY6qAbx7ddZmqyW6nsx7v0tuEJTYNnIYl9HgJAUZbORSkpefeSeG XvVB8apF/A95JRAeCP5AKAGXimKwXxx0bSqdQeSrmzffEWEwRTuH3581Xfwp3u+tA7nT NVPQ== X-Gm-Message-State: AGi0PubaDLu8xrB+q0LH7PeRQXLa4uIQaNoa4v1GQAu13184jACED6rs /n9aG/VdEmt6ykCOC+v7YPwpQvaKerNxohUtDzN7eA== X-Received: by 2002:a17:902:eb54:: with SMTP id i20mr12412963pli.179.1588879361657; Thu, 07 May 2020 12:22:41 -0700 (PDT) MIME-Version: 1.0 References: <20200505174423.199985-1-ndesaulniers@google.com> In-Reply-To: From: Nick Desaulniers Date: Thu, 7 May 2020 12:22:30 -0700 Message-ID: Subject: Re: [PATCH] x86: bitops: fix build regression To: Brian Gerst Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Sedat Dilek , stable , Jesse Brandeburg , "kernelci . org bot" , Andy Shevchenko , Ilie Halip , "the arch/x86 maintainers" , "H. Peter Anvin" , Marco Elver , "Paul E. McKenney" , "Peter Zijlstra (Intel)" , Daniel Axtens , Masahiro Yamada , Luc Van Oostenryck , Linux Kernel Mailing List , clang-built-linux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 6, 2020 at 11:18 PM Brian Gerst wrote: > > I think a better fix would be to make CONST_MASK() return a u8 value > rather than have to cast on every use. > > Also I question the need for the "q" constraint. It was added in > commit 437a0a54 as a workaround for GCC 3.4.4. Now that the minimum > GCC version is 4.6, is this still necessary? TL;DR yes ah, thanks for the git archeology, it's useful. I don't think this is a compiler bug however, just the compiler being more strict that the `b` suffix on `orb` requires a 8b register operand. For 32b x86, `q` asm constraint is required, because not all GPR's had lower 8b register aliases, as Arnd found and HPA noted as well. I like your suggested change to CONST_MASK, and will send that in a bit. -- Thanks, ~Nick Desaulniers