Re: linux-next: build warnings after merge of the block tree

From: Josh Poimboeuf
Date: Mon Mar 27 2023 - 12:26:43 EST


On Mon, Mar 27, 2023 at 12:00:17PM +1100, Stephen Rothwell wrote:
> Hi all,
>
> After merging the block tree, today's linux-next build (x86_64
> allnoconfig) produced these warnings:
>
> lib/iov_iter.o: warning: objtool: .altinstr_replacement+0x0: redundant UACCESS d
> isable
> lib/iov_iter.o: warning: objtool: iovec_from_user.part.0+0xc7: call to copy_comp
> at_iovec_from_user.part.0() with UACCESS enabled
> lib/iov_iter.o: warning: objtool: __import_iovec+0x21d: call to copy_compat_iovec_from_user.part.0() with UACCESS enabled
>
> Presumably introduced by commit
>
> 6376ce56feb6 ("iov_iter: import single vector iovecs as ITER_UBUF")

I'm not able to recreate. What's your compiler version?

It's complaining about a call to a "part.0" function, maybe the IPA
optimization is moving the STAC to before the call.

--
Josh