Re: [Xen-devel] [PATCH v11 6/9] xen/common: use DECLARE_BOUNDS as required

2019-03-06 Thread Stefano Stabellini
On Wed, 6 Mar 2019, Jan Beulich wrote: > >>> On 05.03.19 at 23:38, wrote: > > --- a/xen/common/kernel.c > > +++ b/xen/common/kernel.c > > @@ -306,20 +306,25 @@ void add_taint(unsigned int flag) > > tainted |= flag; > > } > > > > -extern const initcall_t __initcall_start[], __presmp_initcal

Re: [Xen-devel] [PATCH v11 6/9] xen/common: use DECLARE_BOUNDS as required

2019-03-06 Thread Jan Beulich
>>> On 05.03.19 at 23:38, wrote: > --- a/xen/common/kernel.c > +++ b/xen/common/kernel.c > @@ -306,20 +306,25 @@ void add_taint(unsigned int flag) > tainted |= flag; > } > > -extern const initcall_t __initcall_start[], __presmp_initcall_end[], > -__initcall_end[]; > +DECLARE_ARRAY_BOUN

[Xen-devel] [PATCH v11 6/9] xen/common: use DECLARE_BOUNDS as required

2019-03-05 Thread Stefano Stabellini
Use DECLARE_BOUNDS and the two static inline functions that come with it for comparisons and subtractions of: __note_gnu_build_id_start, __note_gnu_build_id_end, __lock_profile_start, __lock_profile_end, __initcall_start, __initcall_end, __presmp_initcall_end, __ctors_start, __ctors_end, __end_sch