lkml.org 
[lkml]   [2007]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] [MTD] Fix CFI build error with meaningless nonfunctional .config

* David Woodhouse <dwmw2@infradead.org> wrote:

> On Mon, 2007-08-06 at 18:15 +0200, Ingo Molnar wrote:
> > randconfig testing on .23-rc2 triggered the following build error:
>
> When building NOR flash support, you have compile-time options for the
> bus width and the number of individual chips which are interleaved
> together onto that bus. The code to deal with arbitrary geometry is a
> bit convoluted, and people want to just configure it for the specific
> hardware they have, to avoid the runtime overhead.
>
> Selecting _none_ of the available options doesn't make any sense. You
> should have at least one. This makes it build though, since people
> persist in trying.

i didnt persist - randconfig picked it - it's a legit .config.

> +#ifndef cfi_interleave
> +#warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
> +static inline int cfi_interleave(void *cfi)
> +{
> + BUG();
> + return 0;

looks quite quirky. Is there no Kconfig-space solution for this?

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-08-10 09:45    [W:0.053 / U:1.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site