Re: [PATCH v2] powerpc: Add const qual to local_read() parameter

From: Stephen Rothwell
Date: Tue Nov 19 2019 - 21:05:46 EST


Hi all,

On Wed, 20 Nov 2019 12:14:51 +1100 Michael Ellerman <mpe@xxxxxxxxxxxxxx> wrote:
>
> From: Eric Dumazet <edumazet@xxxxxxxxxx>
>
> A patch in net-next triggered a compile error on powerpc:
>
> include/linux/u64_stats_sync.h: In function 'u64_stats_read':
> include/asm-generic/local64.h:30:37: warning: passing argument 1 of 'local_read' discards 'const' qualifier from pointer target type
>
> This seems reasonable to relax powerpc local_read() requirements.
>
> Fixes: 316580b69d0a ("u64_stats: provide u64_stats_t type")
> Signed-off-by: Eric Dumazet <edumazet@xxxxxxxxxx>
> Reported-by: kbuild test robot <lkp@xxxxxxxxx>
> Acked-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>

Tested-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> # build only

--
Cheers,
Stephen Rothwell

Attachment: pgpmhS5GtPRXO.pgp
Description: OpenPGP digital signature