Re: [PATCH] fs/aio: Fix __percpu annotation of *cpu pointer in struct kioctx

Christian Brauner
2024-07-30T14:11:06Z

On Tue, 30 Jul 2024 14:18:34 +0200, Uros Bizjak wrote:
> __percpu annotation of *cpu pointer in struct kioctx is put at
> the wrong place, resulting in several sparse warnings:
>
> aio.c:623:24: warning: incorrect type in argument 1 (different address spaces)
> aio.c:623:24: expected void [noderef] __percpu *__pdata
> aio.c:623:24: got struct kioctx_cpu *cpu
> aio.c:788:18: warning: incorrect type in assignment (different address spaces)
> aio.c:788:18: expected struct kioctx_cpu *cpu
> aio.c:788:18: got struct kioctx_cpu [noderef] __percpu *
> aio.c:835:24: warning: incorrect type in argument 1 (different address spaces)
> aio.c:835:24: expected void [noderef] __percpu *__pdata
> aio.c:835:24: got struct kioctx_cpu *cpu
> aio.c:940:16: warning: incorrect type in initializer (different address spaces)
> aio.c:940:16: expected void const [noderef] __percpu *__vpp_verify
> aio.c:940:16: got struct kioctx_cpu *
> aio.c:958:16: warning: incorrect type in initializer (different address spaces)
> aio.c:958:16: expected void const [noderef] __percpu *__vpp_verify
> aio.c:958:16: got struct kioctx_cpu *
>
> [...]

Applied to the vfs.misc branch of the vfs/vfs.git tree.
Patches in the vfs.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.misc

[1/1] fs/aio: Fix __percpu annotation of *cpu pointer in struct kioctx