|
@@ -6,10 +6,10 @@
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
/* Built-in __init functions needn't be compiled with retpoline */
|
|
|
-#if defined(RETPOLINE) && !defined(MODULE)
|
|
|
-#define __noretpoline __attribute__((indirect_branch("keep")))
|
|
|
+#if defined(__noretpoline) && !defined(MODULE)
|
|
|
+#define __noinitretpoline __noretpoline
|
|
|
#else
|
|
|
-#define __noretpoline
|
|
|
+#define __noinitretpoline
|
|
|
#endif
|
|
|
|
|
|
/* These macros are used to mark some functions or
|
|
@@ -47,7 +47,7 @@
|
|
|
|
|
|
/* These are for everybody (although not all archs will actually
|
|
|
discard it in modules) */
|
|
|
-#define __init __section(.init.text) __cold __latent_entropy __noretpoline
|
|
|
+#define __init __section(.init.text) __cold __latent_entropy __noinitretpoline
|
|
|
#define __initdata __section(.init.data)
|
|
|
#define __initconst __section(.init.rodata)
|
|
|
#define __exitdata __section(.exit.data)
|