Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
[linux-2.6-microblaze.git] / include / linux / module.h
index 20fce25..c4e7a88 100644 (file)
@@ -278,7 +278,7 @@ extern typeof(name) __mod_##type##__##name##_device_table           \
                .version        = _version,                             \
        };                                                              \
        static const struct module_version_attribute                    \
-       __used __attribute__ ((__section__ ("__modver")))               \
+       __used __section("__modver")                                    \
        * __moduleparam_const __modver_attr = &___modver_attr
 #endif
 
@@ -744,7 +744,7 @@ static inline bool within_module(unsigned long addr, const struct module *mod)
 }
 
 /* Get/put a kernel symbol (calls should be symmetric) */
-#define symbol_get(x) ({ extern typeof(x) x __attribute__((weak)); &(x); })
+#define symbol_get(x) ({ extern typeof(x) x __attribute__((weak,visibility("hidden"))); &(x); })
 #define symbol_put(x) do { } while (0)
 #define symbol_put_addr(x) do { } while (0)