* [PATCH for-4.7] arm: constify atomic_read parameter
@ 2018-08-15 8:28 Wei Liu
2018-08-15 8:29 ` Andrew Cooper
0 siblings, 1 reply; 4+ messages in thread
From: Wei Liu @ 2018-08-15 8:28 UTC (permalink / raw)
To: xen-devel
Cc: Stefano Stabellini, Wei Liu, Andrew Cooper, xen-devel,
Julien Grall, Jan Beulich
ded2a37d63 added const to atomic_read. Do the same for Arm
counterpart.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Julien Grall <julien.grall@arm.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Breakage due to XSA-273 changes.
---
xen/include/asm-arm/atomic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/include/asm-arm/atomic.h b/xen/include/asm-arm/atomic.h
index 29ab265f00..de22fd55d7 100644
--- a/xen/include/asm-arm/atomic.h
+++ b/xen/include/asm-arm/atomic.h
@@ -110,7 +110,7 @@ typedef struct { int counter; } atomic_t;
* strex/ldrex monitor on some implementations. The reason we can use it for
* atomic_set() is the clrex or dummy strex done on every exception return.
*/
-static inline int atomic_read(atomic_t *v)
+static inline int atomic_read(const atomic_t *v)
{
return *(volatile int *)&v->counter;
}
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH for-4.7] arm: constify atomic_read parameter
2018-08-15 8:28 [PATCH for-4.7] arm: constify atomic_read parameter Wei Liu
@ 2018-08-15 8:29 ` Andrew Cooper
2018-08-15 8:51 ` Julien Grall
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cooper @ 2018-08-15 8:29 UTC (permalink / raw)
To: Wei Liu, xen-devel
Cc: Julien Grall, Stefano Stabellini, Jan Beulich, xen-devel
On 15/08/2018 09:28, Wei Liu wrote:
> ded2a37d63 added const to atomic_read. Do the same for Arm
> counterpart.
>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Most likely needed for 4.6 as well.
~Andrew
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH for-4.7] arm: constify atomic_read parameter
2018-08-15 8:29 ` Andrew Cooper
@ 2018-08-15 8:51 ` Julien Grall
2018-08-15 8:53 ` Wei Liu
0 siblings, 1 reply; 4+ messages in thread
From: Julien Grall @ 2018-08-15 8:51 UTC (permalink / raw)
To: Andrew Cooper, Wei Liu, xen-devel
Cc: Stefano Stabellini, Jan Beulich, xen-devel
On 08/15/2018 09:29 AM, Andrew Cooper wrote:
> On 15/08/2018 09:28, Wei Liu wrote:
>> ded2a37d63 added const to atomic_read. Do the same for Arm
>> counterpart.
>>
>> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
>
> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
>
> Most likely needed for 4.6 as well.
Feel free to add my ack on 4.6 patch as well:
Acked-by: Julien Grall <julien.grall@arm.com>.
>
> ~Andrew
>
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH for-4.7] arm: constify atomic_read parameter
2018-08-15 8:51 ` Julien Grall
@ 2018-08-15 8:53 ` Wei Liu
0 siblings, 0 replies; 4+ messages in thread
From: Wei Liu @ 2018-08-15 8:53 UTC (permalink / raw)
To: Julien Grall
Cc: Stefano Stabellini, Wei Liu, Andrew Cooper, xen-devel,
Jan Beulich, xen-devel
On Wed, Aug 15, 2018 at 09:51:35AM +0100, Julien Grall wrote:
>
>
> On 08/15/2018 09:29 AM, Andrew Cooper wrote:
> > On 15/08/2018 09:28, Wei Liu wrote:
> > > ded2a37d63 added const to atomic_read. Do the same for Arm
> > > counterpart.
> > >
> > > Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> >
> > Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
> >
> > Most likely needed for 4.6 as well.
>
> Feel free to add my ack on 4.6 patch as well:
>
> Acked-by: Julien Grall <julien.grall@arm.com>.
Thanks. I will commit both patches shortly.
>
> >
> > ~Andrew
> >
>
> --
> Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-08-15 8:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-15 8:28 [PATCH for-4.7] arm: constify atomic_read parameter Wei Liu
2018-08-15 8:29 ` Andrew Cooper
2018-08-15 8:51 ` Julien Grall
2018-08-15 8:53 ` Wei Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).