[PATCH v2] powerpc: Add const qual to local_read() parameter
Stephen Rothwell
sfr at canb.auug.org.au
Wed Nov 20 13:05:32 AEDT 2019
Hi all,
On Wed, 20 Nov 2019 12:14:51 +1100 Michael Ellerman <mpe at ellerman.id.au> wrote:
>
> From: Eric Dumazet <edumazet at google.com>
>
> 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 at google.com>
> Reported-by: kbuild test robot <lkp at intel.com>
> Acked-by: Michael Ellerman <mpe at ellerman.id.au>
Tested-by: Stephen Rothwell <sfr at canb.auug.org.au> # build only
--
Cheers,
Stephen Rothwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20191120/257201ea/attachment.sig>
More information about the Linuxppc-dev
mailing list