From fc51c8ebd64e3862776b2f64612bfe5ceb9defec Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Mon, 13 Dec 2004 11:55:52 +0000 Subject: MTD XIP support: allyesconfig compile fix. People insist on turning stuff on which doesn't make sense. Make it compile in the case where the platform doesn't provide the necessary XIP primitives. Signed-off-by: Nicolas Pitre Signed-off-by: David Woodhouse --- include/linux/mtd/xip.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'include/linux') diff --git a/include/linux/mtd/xip.h b/include/linux/mtd/xip.h index 521aa8e826ee..fc071125cbcc 100644 --- a/include/linux/mtd/xip.h +++ b/include/linux/mtd/xip.h @@ -12,7 +12,7 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * - * $Id: xip.h,v 1.1 2004/11/05 22:41:06 nico Exp $ + * $Id: xip.h,v 1.2 2004/12/01 15:49:10 nico Exp $ */ #ifndef __LINUX_MTD_XIP_H__ @@ -74,7 +74,15 @@ #define xip_elapsed_since(x) (signed)((OSCR - (x)) / 4) #else -#error "missing IRQ and timer primitives for XIP MTD support" + +#warning "missing IRQ and timer primitives for XIP MTD support" +#warning "some of the XIP MTD support code will be disabled" +#warning "your system will therefore be unresponsive when writing or erasing flash" + +#define xip_irqpending() (0) +#define xip_currtime() (0) +#define xip_elapsed_since(x) (0) + #endif /* -- cgit v1.2.3