Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: Rik van Riel <riel@surriel.com>
To: kernel test robot <lkp@intel.com>
Cc: llvm <llvm@lists.linux.dev>, x86 <x86@kernel.org>,
	Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	Peter Zijlstra <peterz@infradead.org>,
	kernel-team <kernel-team@meta.com>,
	 "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v5 05/12] x86/mm: add INVLPGB support code
Date: Fri, 17 Jan 2025 09:20:13 -0500	[thread overview]
Message-ID: <44837964d67d6f35a20139fbe310f621141a0404.camel@surriel.com> (raw)
In-Reply-To: <202501171121.nQcwVI41-lkp@intel.com>

On Fri, 2025-01-17 at 11:37 +0800, kernel test robot wrote:
> 
> compiler: clang version 19.1.3
> (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b25
> 4b6afab99)
> reproduce (this is a W=1 build):
> (https://download.01.org/0day-ci/archive/20250117/202501171121.nQcwVI
> 41-lkp@intel.com/reproduce)
> 

> > > arch/x86/include/asm/invlpgb.h:26:49: error: invalid input size
> > > for constraint 'a'
>       26 |         asm volatile(".byte 0x0f, 0x01, 0xfe" : : "a"
> (rax), "c" (ecx), "d" (edx));
>          |                                                        ^
> 

What do I do about this?

It didn't used to complain when we had a named
assembler operator there:

    asm volatile("invlpgb" : : "a" (rax), "c" (ecx), "d" (edx));

However, now that we're using .byte for compatibility
with older binutils, things break with newer llvm?

-- 
All Rights Reversed.

  reply	other threads:[~2025-01-17 14:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250116023127.1531583-6-riel@surriel.com>
2025-01-17  3:37 ` [PATCH v5 05/12] x86/mm: add INVLPGB support code kernel test robot
2025-01-17 14:20   ` Rik van Riel [this message]
2025-01-17 15:01     ` Rik van Riel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44837964d67d6f35a20139fbe310f621141a0404.camel@surriel.com \
    --to=riel@surriel.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=kernel-team@meta.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=peterz@infradead.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox