Re: [Xen-devel] [PATCH v10 6/6] xen: use DEFINE_SYMBOL as required

2019-03-01 Thread Stefano Stabellini
On Wed, 27 Feb 2019, Jan Beulich wrote: > >>> On 26.02.19 at 22:22, wrote: > > On Tue, 26 Feb 2019, Jan Beulich wrote: > >> >>> On 25.02.19 at 21:50, wrote: > >> > @@ -210,7 +210,8 @@ static int __apply_alternatives_multi_stop(void > >> > *unused) > >> > region.begin = __alt_instruction

Re: [Xen-devel] [PATCH v10 6/6] xen: use DEFINE_SYMBOL as required

2019-02-27 Thread Jan Beulich
>>> On 26.02.19 at 22:22, wrote: > On Tue, 26 Feb 2019, Jan Beulich wrote: >> >>> On 25.02.19 at 21:50, wrote: >> > @@ -210,7 +210,8 @@ static int __apply_alternatives_multi_stop(void >> > *unused) >> > region.begin = __alt_instructions; >> > region.end = (struct alt_instr *)__

Re: [Xen-devel] [PATCH v10 6/6] xen: use DEFINE_SYMBOL as required

2019-02-26 Thread Stefano Stabellini
On Tue, 26 Feb 2019, Jan Beulich wrote: > >>> On 25.02.19 at 21:50, wrote: > > @@ -210,7 +210,8 @@ static int __apply_alternatives_multi_stop(void *unused) > > region.begin = __alt_instructions; > > region.end = (struct alt_instr *)__alt_instructions_end; > > > > -ret =

Re: [Xen-devel] [PATCH v10 6/6] xen: use DEFINE_SYMBOL as required

2019-02-26 Thread Jan Beulich
>>> On 25.02.19 at 21:50, wrote: > @@ -210,7 +210,8 @@ static int __apply_alternatives_multi_stop(void *unused) > region.begin = __alt_instructions; > region.end = (struct alt_instr *)__alt_instructions_end; > > -ret = __apply_alternatives(®ion, xenmap - (void *)_start)

[Xen-devel] [PATCH v10 6/6] xen: use DEFINE_SYMBOL as required

2019-02-25 Thread Stefano Stabellini
Use DEFINE_SYMBOL and the two static inline functions that come with it for comparisons and subtractions of: _start, _end, _stext, _etext, _srodata, _erodata, _sinittext, _einittext Use explicit casts to uintptr_t when it is not possible to use the provided static inline functions. M3CM: Rule-18