]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/percpu-defs.h
Merge branch 'master' into for-next
[karo-tx-linux.git] / include / linux / percpu-defs.h
index 9b7a53cc16eba90ccb3b08291152d6cd7d78b18e..aefc2f12b48c3276a77f56d6fdab68e6dd1cee1a 100644 (file)
@@ -61,7 +61,8 @@
 #define DEFINE_PER_CPU_SECTION(type, name, sec)                                \
        __PCPU_DUMMY_ATTRS char __pcpu_scope_##name;                    \
        __PCPU_DUMMY_ATTRS char __pcpu_unique_##name;                   \
-       __PCPU_ATTRS(sec) __weak __typeof__(type) per_cpu__##name
+       __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES __weak                 \
+       __typeof__(type) per_cpu__##name
 #else
 /*
  * Normal declaration and definition macros.
@@ -70,7 +71,8 @@
        extern __PCPU_ATTRS(sec) __typeof__(type) per_cpu__##name
 
 #define DEFINE_PER_CPU_SECTION(type, name, sec)                                \
-       __PCPU_ATTRS(sec) __typeof__(type) per_cpu__##name
+       __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES                        \
+       __typeof__(type) per_cpu__##name
 #endif
 
 /*