Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp82878ybk; Thu, 14 May 2020 16:59:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9RNF9JVO2HPvKlohgGi15vEFGqd2jLvq7SrV5xiyX0TcLyAG0HkLwuc0KntdsF6P41d/s X-Received: by 2002:a50:9a86:: with SMTP id p6mr500546edb.153.1589500749210; Thu, 14 May 2020 16:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589500749; cv=none; d=google.com; s=arc-20160816; b=A5RtHFgYOTgQmqfPc5jDJMGbPv577tLFMybJMvbga7RqTtKrGeJ1mZjca8Xqak7NRw BuJ7KUJvIn6xKDx0Dyx/SxJHN1ZPI74UwHA2YbxK/GR+ioJ+A3erP/yVAXtlP2RHd9J4 VdyoXlSdA2b0Y3zr/e6vy03ngecH7fpG480jJCJn8uczLNEZRBLHIDr+SwxuJ6T2nj6p 9evpjTsc9e37PlYeb+pdzSckAGMuXFWX/essYKM+iFArAcKDRa/4rxEelaCLTJSEt1N1 kxz4Et7ELjkVEUmFragS6+onWu3vF51WK1SHK32WQzz2Dfhf0VC9ZSoMVdsFJzN3Mb1X L+Zg== 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=KJ319p+W05TbtIHodnmslKmxvaislCF8XQX/X/cRrWQ=; b=0W/D+xSUFbsMdODwBa9AOP6o3a0HJ4Rrx0255aqW2lasN1ZG74tHy5OlqEUL3A6E5J dPm78xiUT9iOr+eTtlwx+QmpnjL+yAS2BLkwLXysGzbIDNGFCDMt/r15g+kDUnF8aVaD CuSoFIxVLFb9SJ5EmuJm+VnBkN4TyNLSksyqKjh1WAKLP9Oaz1KceLJR7DgnjrIzU7dK vLHgo7FhhrGnkZKOwj605iy37cZUuYX/gy1ekio7HYW06a20zTG6YjSIiDJ66LUw6iZt Xonbi1O7/yeB1IfXe6473ozz+PqQtRexFhwl8Zmsi3sl13sYDo7k5tAPjWqXYAie0t7c enIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=SEYPs998; 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 s14si255387ejq.37.2020.05.14.16.58.39; Thu, 14 May 2020 16:59:09 -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=SEYPs998; 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 S1726125AbgENXrX (ORCPT + 99 others); Thu, 14 May 2020 19:47:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgENXrX (ORCPT ); Thu, 14 May 2020 19:47:23 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9E35C061A0C for ; Thu, 14 May 2020 16:47:21 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id t16so182184plo.7 for ; Thu, 14 May 2020 16:47:21 -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=KJ319p+W05TbtIHodnmslKmxvaislCF8XQX/X/cRrWQ=; b=SEYPs998J8EWU2hjALQreAwc4NjDwFAysfzWzr7uoSSmx1pwv4YS8tlO+w7px5ULBR yPya5dHOQxFl1ZrOtUtt4b9B9m2829UCEKeaZ37Vy9c9iFEDaBiUgjQrpp2O6xbMLhrg WUTOJp9bWCZJOen7ErMBngCbfg6dTJNg+Lhqg9uGcZk/yOkZsIeA0lW1uDXjYc7g4CPU G349CKzFMb5bfTgpKZdYsgZ4RJcuvoOIGDnE+JAh63lVUC3nBVNRg4VsP6Fpk1dyovS7 /Ic3oOUdhGqMqv++U6LU669vxzuxBBWyCSZirc1YtzBwPIo8VLhUfaNz1NZZxZgmw7xk BYDg== 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=KJ319p+W05TbtIHodnmslKmxvaislCF8XQX/X/cRrWQ=; b=G4dLb1rhe8tAf8QaXbbrbwivEU6I9Am3hIJYtZr8OdwJn6sFYDXERwZbvxcQ6xrfks E/nAguuAFapDlhivspSYETSKZAp0C7zuZFsK/uXi2nSdhWr1qFeZ2RjN3hSzWh9GmefB 1G1zJIbjP5KmdYlsSUvw2yJZhrNubxwDCCl/jTnHvpAdCfgEg4Yi+uRRq7k3cjCva+TC /gbM9gqsBjG08pYmHZ0Sk//O58DwakPe98fKSFNjv1JKtyvVuqWbN/bCVlRoBD9ZfvrH 7TtHo/UXwoSTIJdiPHYyvYm1lZfSdFNT/60LANRNOQn/bW7mwgWOA8ZhGyCRUKWW+hfw 3tXg== X-Gm-Message-State: AOAM532rHW1hWlfdybb7J/ezdpOpgr7PKhAEu//IdapawNoyYyQ7Roby vcK+9b3eI80qwQkz/AeW4A9WA8oBuTN8+bwPBan74A== X-Received: by 2002:a17:902:c3c1:: with SMTP id j1mr960276plj.179.1589500040518; Thu, 14 May 2020 16:47:20 -0700 (PDT) MIME-Version: 1.0 References: <20200508182835.228107-1-ndesaulniers@google.com> <20200508183230.229464-1-ndesaulniers@google.com> In-Reply-To: From: Nick Desaulniers Date: Thu, 14 May 2020 16:47:08 -0700 Message-ID: Subject: Re: [PATCH v5] x86: bitops: fix build regression To: Thomas Gleixner , Ingo Molnar , Borislav Petkov Cc: Jesse Brandeburg , Sedat Dilek , "kernelci . org bot" , Andy Shevchenko , "H . Peter Anvin" , Ilie Halip , "the arch/x86 maintainers" , Marco Elver , "Paul E. McKenney" , Andrey Ryabinin , Luc Van Oostenryck , Andrew Morton , Masahiro Yamada , Daniel Axtens , "Peter Zijlstra (Intel)" , Linux Kernel Mailing List , clang-built-linux , Brian Gerst 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 Bumping for this to get reviewed+picked up. Fixes a regression I would prefer didn't ship in 5.7. On Mon, May 11, 2020 at 11:52 AM Brian Gerst wrote: > > On Fri, May 8, 2020 at 2:32 PM Nick Desaulniers wrote: > > > > This is easily reproducible via CC=clang+CONFIG_STAGING=y+CONFIG_VT6656=m. > > > > It turns out that if your config tickles __builtin_constant_p via > > differences in choices to inline or not, these statements produce > > invalid assembly: > > > > $ cat foo.c > > long a(long b, long c) { > > asm("orb\t%1, %0" : "+q"(c): "r"(b)); > > return c; > > } > > $ gcc foo.c > > foo.c: Assembler messages: > > foo.c:2: Error: `%rax' not allowed with `orb' > > > > Use the `%b` "x86 Operand Modifier" to instead force register allocation > > to select a lower-8-bit GPR operand. > > > > The "q" constraint only has meaning on -m32 otherwise is treated as > > "r". Not all GPRs have low-8-bit aliases for -m32. > > > > Cc: Jesse Brandeburg > > Link: https://github.com/ClangBuiltLinux/linux/issues/961 > > Link: https://lore.kernel.org/lkml/20200504193524.GA221287@google.com/ > > Link: https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#x86Operandmodifiers > > Fixes: 1651e700664b4 ("x86: Fix bitops.h warning with a moved cast") > > Reported-by: Sedat Dilek > > Reported-by: kernelci.org bot > > Suggested-by: Andy Shevchenko > > Suggested-by: Brian Gerst > > Suggested-by: H. Peter Anvin > > Suggested-by: Ilie Halip > > Signed-off-by: Nick Desaulniers > > Reviewed-By: Brian Gerst -- Thanks, ~Nick Desaulniers