[patch] MTD: fix cfi_interleave() build errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Ingo Molnar <[email protected]> wrote:

> FYI, the attached .config fails with the build errors below. Kernel is 
> latest 2.6.23-git. Found via make randconfig.

the quick fix below resolves these build failures. (i guess it might be 
cleaner/safer to solve this via excluding this .config combination via 
Kconfig rules, but that looks too involved for now.)

	Ingo

---------------->
Subject: MTD: fix cfi_interleave() build errors
From: Ingo Molnar <[email protected]>

if the .config specifies no cfi_interleave() then generate a
run-time bug. This makes 'make randconfig' build tests work again.

Signed-off-by: Ingo Molnar <[email protected]>
---
 include/linux/mtd/cfi.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: linux/include/linux/mtd/cfi.h
===================================================================
--- linux.orig/include/linux/mtd/cfi.h
+++ linux/include/linux/mtd/cfi.h
@@ -57,6 +57,10 @@
 #define cfi_interleave_is_8(cfi) (0)
 #endif
 
+#ifndef cfi_interleave
+# define cfi_interleave(cfi) ({ BUG_ON(1); 0; })
+#endif
+
 static inline int cfi_interleave_supported(int i)
 {
 	switch (i) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux