Subject: Re: arm64: entry.S:774: Error: immediate out of range at operand 3 -- `and x2,x19,

From: Stephen Rothwell <[email-masked]>
Date: Thu, 17 Dec 2020 17:46:18 +1100

Hi Naresh,

On Thu, 17 Dec 2020 12:13:03 +0530 Naresh Kamboju <[email-masked]> wrote:
>
> arm64 build failed on Linux next 20201217 tag with gcc-8, gcc-9 and gcc-10.
> 
> make --silent --keep-going --jobs=8
> O=/home/tuxbuild/.cache/tuxmake/builds/2/tmp ARCH=arm64
> CROSS_COMPILE=aarch64-linux-gnu- 'CC=sccache aarch64-linux-gnu-gcc'
> 'HOSTCC=sccache gcc'
> arch/arm64/kernel/entry.S: Assembler messages:
> arch/arm64/kernel/entry.S:774: Error: immediate out of range at
> operand 3 -- `and
> x2,x19,#((1<<1)|(1<<0)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<7))'
> make[3]: *** [scripts/Makefile.build:360: arch/arm64/kernel/entry.o] Error 1

This is fixed by commit

  870d16757ba8 ("arm64: make _TIF_WORK_MASK bits contiguous")

in Linus' tree which will be in linux-next tomorrow.

-- 
Cheers,
Stephen Rothwell