Subject: Re: Build regressions/improvements in v6.12-rc1

From: Herve Codina <[email-masked]>
Date: Mon, 30 Sep 2024 18:26:33 +0200

Hi Geert,

On Mon, 30 Sep 2024 17:11:09 +0200 (CEST)
Geert Uytterhoeven <[email-masked]> wrote:

> On Mon, 30 Sep 2024, Geert Uytterhoeven wrote:
> > Below is the list of build error/warning regressions/improvements in
> > v6.12-rc1[1] compared to v6.11[2].  

...

 powerpc-gcc13/ppc64_book3e_allmodconfig
> 
> drivers/soc/fsl/qe/qmc.c: In function 'qmc_qe_init_resources':
> include/linux/err.h:28:49: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>     28 | #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
>        |                                                 ^
> include/linux/compiler.h:77:45: note: in definition of macro 'unlikely'
>     77 | # define unlikely(x)    __builtin_expect(!!(x), 0)
>        |                                             ^
> drivers/soc/fsl/qe/qmc.c:1764:13: note: in expansion of macro 'IS_ERR_VALUE'
>   1764 |         if (IS_ERR_VALUE(info)) {
>        |             ^~~~~~~~~~~~
> 
> IS_ERR_VALUE() is meant for pointers (fix available)

I saw your patch, tested and acked it.
Thanks for the patch.

Hervé