summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2011-08-30 03:09:39 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-08-31 00:38:25 +0200
commit13e123efc65ee999a0eb754f7d14e78323792343 (patch)
tree22a36bc97098e0a9c43e396dc197a23dc91d40d3 /linux
parent6cc4f7c68051431f309109c261667fcbec626fc1 (diff)
Denote __exit symbols as used
* linux/src/include/linux/init.h: Include <linux/compiler.h>. (__exitused): New macro. (__exit): Define to ` __exitused __cold notrace'. * linux/src/include/linux/kcomp.h (__exit): Remove.
Diffstat (limited to 'linux')
-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)