summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/src/include/linux/init.h10
-rw-r--r--linux/src/include/linux/kcomp.h2
2 files changed, 9 insertions, 3 deletions
diff --git a/linux/src/include/linux/init.h b/linux/src/include/linux/init.h
index 06da72d..d4798b2 100644
--- a/linux/src/include/linux/init.h
+++ b/linux/src/include/linux/init.h
@@ -1,9 +1,17 @@
#ifndef _COMPAT_INIT_H
#define _COMPAT_INIT_H
+#include <linux/compiler.h>
+
+#ifdef MODULE
+#define __exitused
+#else
+#define __exitused __used
+#endif
+
#define __init
#define __initdata
-#define __exit
+#define __exit __exitused __cold notrace
#define __exitdata
#define __devinit
#define __devinitdata
diff --git a/linux/src/include/linux/kcomp.h b/linux/src/include/linux/kcomp.h
index 1f7344a..5e06d7e 100644
--- a/linux/src/include/linux/kcomp.h
+++ b/linux/src/include/linux/kcomp.h
@@ -7,8 +7,6 @@
#include <linux/netdevice.h>
#include <linux/pagemap.h>
-#define __exit
-
#define pci_enable_device(x) 0
#define page_address(x) (x | PAGE_OFFSET)