summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-core
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-03-17 21:21:56 +0000
committerMichael Hunold <devnull@localhost>2003-03-17 21:21:56 +0000
commit0e0505bca61e2877a5283e37ad447f1496fb5503 (patch)
tree480e781f36aebe33f461e4d73c16267cb054b0b5 /linux/drivers/media/dvb/dvb-core
parent8dd52d823f399f39d02e35cbd32da30175d0429b (diff)
downloadmediapointer-dvb-s2-0e0505bca61e2877a5283e37ad447f1496fb5503.tar.gz
mediapointer-dvb-s2-0e0505bca61e2877a5283e37ad447f1496fb5503.tar.bz2
- Fixed the build-2.4 tree to compile with 2.4.18 kernels.
- Moved some generic stuff from budget-core.c to saa7146_core.c where it belongs ----------------------------------------------------------------------
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core')
-rw-r--r--linux/drivers/media/dvb/dvb-core/compat.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/compat.h b/linux/drivers/media/dvb/dvb-core/compat.h
index c78e849ef..35471c721 100644
--- a/linux/drivers/media/dvb/dvb-core/compat.h
+++ b/linux/drivers/media/dvb/dvb-core/compat.h
@@ -81,11 +81,10 @@ int try_module_get(struct module *mod)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,20)
-
extern struct page * vmalloc_to_page(void *addr);
-
+#define unlikely(x) __builtin_expect((x),0)
+#define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0)
#endif
-
#endif