These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / include / linux / cpufeature.h
index c4d4eb8..986c06c 100644 (file)
@@ -11,6 +11,7 @@
 
 #ifdef CONFIG_GENERIC_CPU_AUTOPROBE
 
+#include <linux/init.h>
 #include <linux/mod_devicetable.h>
 #include <asm/cpufeature.h>
 
  * For a list of legal values for 'feature', please consult the file
  * 'asm/cpufeature.h' of your favorite architecture.
  */
-#define module_cpu_feature_match(x, __init)                    \
+#define module_cpu_feature_match(x, __initfunc)                        \
 static struct cpu_feature const cpu_feature_match_ ## x[] =    \
        { { .feature = cpu_feature(x) }, { } };                 \
 MODULE_DEVICE_TABLE(cpu, cpu_feature_match_ ## x);             \
                                                                \
-static int cpu_feature_match_ ## x ## _init(void)              \
+static int __init cpu_feature_match_ ## x ## _init(void)       \
 {                                                              \
        if (!cpu_have_feature(cpu_feature(x)))                  \
                return -ENODEV;                                 \
-       return __init();                                        \
+       return __initfunc();                                    \
 }                                                              \
 module_init(cpu_feature_match_ ## x ## _init)