[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 3/4] xen: introduce SYMBOL
>>> On 06.11.18 at 23:05, <sstabellini@xxxxxxxxxx> wrote: > --- a/xen/include/xen/compiler.h > +++ b/xen/include/xen/compiler.h > @@ -99,6 +99,12 @@ > __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \ > (typeof(ptr)) (__ptr + (off)); }) > > +/* > + * Use RELOC_HIDE with symbols such as _stext and _etext to avoid errors > + * on comparing pointers to different objects > + */ > +#define SYMBOL(x) (RELOC_HIDE((unsigned long)(x), 0)) I'm not overly happy with this rather generic name, but I have no better suggestion. I'd appreciate though if you dropped the unnecessary outermost pair of parentheses. Acked-by: Jan Beulich <jbeulich@xxxxxxxx> Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |