diff options
| author | Nicolas Pitre <nico@cam.org> | 2004-12-13 11:55:52 +0000 |
|---|---|---|
| committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2004-12-13 11:55:52 +0000 |
| commit | fc51c8ebd64e3862776b2f64612bfe5ceb9defec (patch) | |
| tree | c89502a3e8458840f9272d94aa1690f555237587 /include/linux | |
| parent | bc4278dab8433a445cbe0c06bfe79b5de232a5ef (diff) | |
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 <nico@cam.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mtd/xip.h | 12 |
1 files changed, 10 insertions, 2 deletions
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 /* |
