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

From: Stephen Rothwell <[email-masked]>
Date: Mon, 1 Jul 2024 18:28:30 +1000

Hi all,

On Mon, 1 Jul 2024 11:01:13 +1000 Stephen Rothwell <[email-masked]> 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