These were caused by some declarations happening before the compiler would have seen the visibility pragma. Signed-off-by: Jan Beulich --- a/xen/include/xen/config.h +++ b/xen/include/xen/config.h @@ -7,6 +7,9 @@ #ifndef __XEN_CONFIG_H__ #define __XEN_CONFIG_H__ +#ifndef __ASSEMBLY__ +#include +#endif #include #define EXPORT_SYMBOL(var) @@ -75,8 +78,6 @@ int current_domain_id(void); printk(XENLOG_GUEST _l "%s:%d:d%d " _f, __FILE__, \ __LINE__, current_domain_id() , ## _a ) -#include - #endif /* !__ASSEMBLY__ */ #define __STR(...) #__VA_ARGS__ --- a/xen/include/xen/ctype.h +++ b/xen/include/xen/ctype.h @@ -1,6 +1,8 @@ #ifndef _LINUX_CTYPE_H #define _LINUX_CTYPE_H +#include + /* * NOTE! This ctype does not handle EOF like the standard C * library is required to.