Skip to contentSkip to conversation

x86-64: remove left over uses of .got entries

PATCH New Jan Beulich 1 participant 1 message May 13, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86-64: remove left over uses of .got entries

These were caused by some declarations happening before the compiler would have seen the visibility pragma.

xen/include/xen/config.h +3 -2
@@ -7,6 +7,9 @@
 #ifndef __XEN_CONFIG_H__
 #define __XEN_CONFIG_H__
 
+#ifndef __ASSEMBLY__
+#include <xen/compiler.h>
+#endif
 #include <asm/config.h>
 
 #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 <xen/compiler.h>
-
 #endif /* !__ASSEMBLY__ */
 
 #define __STR(...) #__VA_ARGS__
xen/include/xen/ctype.h +2 -0
@@ -1,6 +1,8 @@
 #ifndef _LINUX_CTYPE_H
 #define _LINUX_CTYPE_H
 
+#include <xen/config.h>
+
 /*
  * NOTE! This ctype does not handle EOF like the standard C
  * library is required to.

These were caused by some declarations happening before the compiler would have seen the visibility pragma.

xen/include/xen/config.h +3 -2
@@ -7,6 +7,9 @@
 #ifndef __XEN_CONFIG_H__
 #define __XEN_CONFIG_H__
 
+#ifndef __ASSEMBLY__
+#include <xen/compiler.h>
+#endif
 #include <asm/config.h>
 
 #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 <xen/compiler.h>
-
 #endif /* !__ASSEMBLY__ */
 
 #define __STR(...) #__VA_ARGS__
xen/include/xen/ctype.h +2 -0
@@ -1,6 +1,8 @@
 #ifndef _LINUX_CTYPE_H
 #define _LINUX_CTYPE_H
 
+#include <xen/config.h>
+
 /*
  * NOTE! This ctype does not handle EOF like the standard C
  * library is required to.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel