* [PATCH] powerpc: add const qual to local_read() parameter
@ 2019-11-08 14:13 Eric Dumazet
2019-11-11 23:38 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Eric Dumazet @ 2019-11-08 14:13 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: linux-kernel, David S . Miller, Eric Dumazet, Eric Dumazet,
kbuild test robot
A patch in net-next triggered a compile error on powerpc.
This seems reasonable to relax powerpc local_read() requirements.
Fixes: 316580b69d0a ("u64_stats: provide u64_stats_t type")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: kbuild test robot <lkp@intel.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
---
arch/powerpc/include/asm/local.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/include/asm/local.h b/arch/powerpc/include/asm/local.h
index fdd00939270bf08113b537a090d6a6e34a048361..bc4bd19b7fc235b80ec1132f44409b6fe1057975 100644
--- a/arch/powerpc/include/asm/local.h
+++ b/arch/powerpc/include/asm/local.h
@@ -17,7 +17,7 @@ typedef struct
#define LOCAL_INIT(i) { (i) }
-static __inline__ long local_read(local_t *l)
+static __inline__ long local_read(const local_t *l)
{
return READ_ONCE(l->v);
}
--
2.24.0.432.g9d3f5f5b63-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] powerpc: add const qual to local_read() parameter
2019-11-08 14:13 [PATCH] powerpc: add const qual to local_read() parameter Eric Dumazet
@ 2019-11-11 23:38 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2019-11-11 23:38 UTC (permalink / raw)
To: Eric Dumazet, Benjamin Herrenschmidt
Cc: linux-kernel, David S . Miller, Eric Dumazet, Eric Dumazet,
kbuild test robot
Eric Dumazet <edumazet@google.com> writes:
> A patch in net-next triggered a compile error on powerpc.
Would be nice to mention the compiler error, I haven't seen the report.
> This seems reasonable to relax powerpc local_read() requirements.
Seems fine.
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Dave can you please put this in net-next to limit the window of
breakage.
cheers
> Fixes: 316580b69d0a ("u64_stats: provide u64_stats_t type")
> Signed-off-by: Eric Dumazet <edumazet@google.com>
> Reported-by: kbuild test robot <lkp@intel.com>
> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Cc: Paul Mackerras <paulus@samba.org>
> Cc: Michael Ellerman <mpe@ellerman.id.au>
> Cc: linuxppc-dev@lists.ozlabs.org
Seems it didn't actually get cc'ed to linuxppc-dev for some reason.
> ---
> arch/powerpc/include/asm/local.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/include/asm/local.h b/arch/powerpc/include/asm/local.h
> index fdd00939270bf08113b537a090d6a6e34a048361..bc4bd19b7fc235b80ec1132f44409b6fe1057975 100644
> --- a/arch/powerpc/include/asm/local.h
> +++ b/arch/powerpc/include/asm/local.h
> @@ -17,7 +17,7 @@ typedef struct
>
> #define LOCAL_INIT(i) { (i) }
>
> -static __inline__ long local_read(local_t *l)
> +static __inline__ long local_read(const local_t *l)
> {
> return READ_ONCE(l->v);
> }
> --
> 2.24.0.432.g9d3f5f5b63-goog
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-11 23:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-08 14:13 [PATCH] powerpc: add const qual to local_read() parameter Eric Dumazet
2019-11-11 23:38 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox