From 0e0505bca61e2877a5283e37ad447f1496fb5503 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Mon, 17 Mar 2003 21:21:56 +0000 Subject: - 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 ---------------------------------------------------------------------- --- linux/drivers/media/dvb/dvb-core/compat.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'linux/drivers/media/dvb/dvb-core') 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 -- cgit v1.2.3