[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH 2/4] include/essentials: Provide __used, __section macros
On 02/12/2018 05:01 PM, Simon Kuenzer wrote: Provide attribute macros for marking symbols as used and for specifying a target section for a symbol to be placed. Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx> Reviewed-by: Florian Schmidt <florian.schmidt@xxxxxxxxx> --- include/uk/essentials.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/uk/essentials.h b/include/uk/essentials.h index 44a6232..f6cc6ea 100644 --- a/include/uk/essentials.h +++ b/include/uk/essentials.h @@ -52,9 +52,15 @@ extern "C" { #ifndef __weak #define __weak __attribute__((weak)) #endif +#ifndef __used +#define __used __attribute__((used)) +#endif #ifndef __unused #define __unused __attribute__((unused)) #endif +#ifndef __section +#define __section(s) __attribute__((section(s))) +#endif #ifndef __nonnull #define __nonnull __attribute__((nonnull)) #endif -- Dr. Florian Schmidt フローリアン・シュミット Research Scientist, Systems and Machine Learning Group NEC Laboratories Europe Kurfürsten-Anlage 36, D-69115 Heidelberg Tel. +49 (0)6221 4342-265 Fax: +49 (0)6221 4342-155 e-mail: florian.schmidt@xxxxxxxxx ============================================================ Registered at Amtsgericht Mannheim, Germany, HRB728558 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |