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

Stephen Rothwell
2024-07-01T08:28:32Z

[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]

Hi all,

On Mon, 1 Jul 2024 11:01:13 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> After merging the mm tree, today's linux-next build (arm
> multi_v7_defconfig) produced these warnings:
>
> fs/proc/task_mmu.c: In function 'do_procmap_query':
> fs/proc/task_mmu.c:598:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> 598 | if (karg.vma_name_size && copy_to_user((void __user *)karg.vma_name_addr,
> | ^
> fs/proc/task_mmu.c:605:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> 605 | if (karg.build_id_size && copy_to_user((void __user *)karg.build_id_addr,
> | ^
>
> Introduced by commits
>
> 3757be498749 ("fs/procfs: implement efficient VMA querying API for /proc/<pid>/maps")
> df789ce1eb90 ("fs/procfs: add build ID fetching to PROCMAP_QUERY API")

This became a build failure in my i386 defconfig build, so I applied
Andrii's patch.
--
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]