summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-08-11 10:00:03 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-08-13 16:52:09 +0200
commit12f00ac59c0670a3b96e3c278cf6b8280d61d772 (patch)
tree2d4f179d8a1b4f66762515bdb9dcfe91a9610c1a /include/common.h
parent8b9dd936e893901ef7fcb32a3936af6d9e0eb665 (diff)
downloadbarebox-12f00ac59c0670a3b96e3c278cf6b8280d61d772.tar.gz
barebox-12f00ac59c0670a3b96e3c278cf6b8280d61d772.tar.xz
add include/linux/kernel.h
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/include/common.h b/include/common.h
index 2fbb3cd6cd..699d971743 100644
--- a/include/common.h
+++ b/include/common.h
@@ -25,12 +25,12 @@
#define __COMMON_H_ 1
#include <stdio.h>
-#include <linux/compiler.h>
#include <module.h>
#include <config.h>
#include <linux/bitops.h>
#include <linux/types.h>
#include <linux/string.h>
+#include <linux/kernel.h>
#include <asm/common.h>
#ifdef DEBUG
@@ -52,18 +52,6 @@ typedef void (interrupt_handler_t)(void *);
#include <asm/u-boot.h> /* boot information for Linux kernel */
/*
- * General Purpose Utilities
- */
-#define min(X, Y) \
- ({ typeof (X) __x = (X), __y = (Y); \
- (__x < __y) ? __x : __y; })
-
-#define max(X, Y) \
- ({ typeof (X) __x = (X), __y = (Y); \
- (__x > __y) ? __x : __y; })
-
-
-/*
* Function Prototypes
*/
void reginfo(void);