All of lore.kernel.org
 help / color / mirror / Atom feed
* "make oldconfig" problem
@ 2009-03-31  6:49 Peter Teoh
  2009-03-31  8:47 ` Jike Song
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Teoh @ 2009-03-31  6:49 UTC (permalink / raw)
  To: LKML, Frederic Weisbecker

When I do "make oldconfig" on the latest linus git tree, I got:

make oldconfig
scripts/kconfig/conf -o arch/x86/Kconfig
usr/Kconfig:145:warning: defaults for choice values not supported
#
# configuration written to .config
#

But checking usr/Kconfig:145:

if INITRAMFS_SOURCE=""
# The builtin initramfs is so small so we don't want to bug the user...

config INITRAMFS_COMPRESSION_NONE
        bool
        default y

endif

I cannot understand the source of errors as well?   Frederic, any ideas?

-- 
Regards,
Peter Teoh

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "make oldconfig" problem
  2009-03-31  6:49 "make oldconfig" problem Peter Teoh
@ 2009-03-31  8:47 ` Jike Song
  2009-03-31  8:51   ` Peter Teoh
  0 siblings, 1 reply; 7+ messages in thread
From: Jike Song @ 2009-03-31  8:47 UTC (permalink / raw)
  To: Peter Teoh; +Cc: LKML, Frederic Weisbecker, H. Peter Anvin

On Tue, Mar 31, 2009 at 2:49 PM, Peter Teoh <htmldeveloper@gmail.com> wrote:
> When I do "make oldconfig" on the latest linus git tree, I got:
>
> make oldconfig
> scripts/kconfig/conf -o arch/x86/Kconfig
> usr/Kconfig:145:warning: defaults for choice values not supported
> #
> # configuration written to .config
> #
>
> But checking usr/Kconfig:145:
>
> if INITRAMFS_SOURCE=""
> # The builtin initramfs is so small so we don't want to bug the user...
>
> config INITRAMFS_COMPRESSION_NONE
>        bool
>        default y
>
> endif
>
> I cannot understand the source of errors as well?   Frederic, any ideas?
>
> --
> Regards,
> Peter Teoh
> --
> 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/
>

Seems to be caused by
40297927575a50b1d0d308d735c445924d33fba6("bzip2/lzma: don't ask for
compression mode for the default initramfs").

I get no errors with that commit reverted.


-- 
Thanks,
Jike

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "make oldconfig" problem
  2009-03-31  8:47 ` Jike Song
@ 2009-03-31  8:51   ` Peter Teoh
  2009-03-31 19:35     ` H. Peter Anvin
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Teoh @ 2009-03-31  8:51 UTC (permalink / raw)
  To: Jike Song; +Cc: LKML, Frederic Weisbecker, H. Peter Anvin

On Tue, Mar 31, 2009 at 4:47 PM, Jike Song <albcamus@gmail.com> wrote:
> On Tue, Mar 31, 2009 at 2:49 PM, Peter Teoh <htmldeveloper@gmail.com> wrote:
>> When I do "make oldconfig" on the latest linus git tree, I got:
>>
>> make oldconfig
>> scripts/kconfig/conf -o arch/x86/Kconfig
>> usr/Kconfig:145:warning: defaults for choice values not supported
>> #
>> # configuration written to .config
>> #
>>
>> But checking usr/Kconfig:145:
>>
>> if INITRAMFS_SOURCE=""
>> # The builtin initramfs is so small so we don't want to bug the user...
>>
>> config INITRAMFS_COMPRESSION_NONE
>>        bool
>>        default y
>>
>> endif
>>
>> I cannot understand the source of errors as well?   Frederic, any ideas?
>>
>> --
>> Regards,
>> Peter Teoh
>> --
>> 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/
>>
>
> Seems to be caused by
> 40297927575a50b1d0d308d735c445924d33fba6("bzip2/lzma: don't ask for
> compression mode for the default initramfs").
>
> I get no errors with that commit reverted.
>

Thank you, will try that.


-- 
Regards,
Peter Teoh

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "make oldconfig" problem
  2009-03-31  8:51   ` Peter Teoh
@ 2009-03-31 19:35     ` H. Peter Anvin
  2009-04-01  6:35       ` Peter Teoh
  0 siblings, 1 reply; 7+ messages in thread
From: H. Peter Anvin @ 2009-03-31 19:35 UTC (permalink / raw)
  To: Peter Teoh; +Cc: Jike Song, LKML, Frederic Weisbecker

[-- Attachment #1: Type: text/plain, Size: 673 bytes --]

Peter Teoh wrote:
>>>
>> Seems to be caused by
>> 40297927575a50b1d0d308d735c445924d33fba6("bzip2/lzma: don't ask for
>> compression mode for the default initramfs").
>>
>> I get no errors with that commit reverted.
> 
> Thank you, will try that.
> 

Linus complained about a choice that didn't make sense for most users. 
Unfortunately Kconfig doesn't seem to have a sane block to deal with 
having alternatives to conditionalized choice blocks.

Fortunately, CONFIG_INITRAMFS_COMPRESSION_NONE doesn't actually *do* 
anything, so this is probably the preferred hack.

Could you try this out?  If it works as expected for you as well as me, 
I'll push it to Linus.

	-hpa


[-- Attachment #2: 0001-bzip2-lzma-quiet-Kconfig-warning-for-INITRAMFS_COMP.patch --]
[-- Type: text/x-patch, Size: 1825 bytes --]

>From 758d6f7ba5a26b07ecd99ad7966b5ce3531b1f0a Mon Sep 17 00:00:00 2001
From: H. Peter Anvin <hpa@zytor.com>
Date: Tue, 31 Mar 2009 12:24:17 -0700
Subject: [PATCH] bzip2/lzma: quiet Kconfig warning for INITRAMFS_COMPRESSION_NONE

Impact: quiet Kconfig warning

It appears that Kconfig simply has no way to provide defaults for
entries that exist inside a conditionalized choice block.
Fortunately, it turns out we don't actually ever use
CONFIG_INITRAMFS_COMPRESSION_NONE, so we can just drop it for
everything outside the choice block.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
---
 usr/Kconfig  |   15 +--------------
 usr/Makefile |    3 ---
 2 files changed, 1 insertions(+), 17 deletions(-)

diff --git a/usr/Kconfig b/usr/Kconfig
index 588c588..1c3039f 100644
--- a/usr/Kconfig
+++ b/usr/Kconfig
@@ -72,10 +72,8 @@ config RD_LZMA
 	  Support loading of a LZMA encoded initial ramdisk or cpio buffer
 	  If unsure, say N.
 
-if INITRAMFS_SOURCE!=""
-
 choice
-	prompt "Built-in initramfs compression mode"
+	prompt "Built-in initramfs compression mode" if INITRAMFS_SOURCE!=""
 	help
 	  This option decides by which algorithm the builtin initramfs
 	  will be compressed.  Several compression algorithms are
@@ -134,14 +132,3 @@ config INITRAMFS_COMPRESSION_LZMA
 	  smaller with LZMA in comparison to gzip.
 
 endchoice
-
-endif
-
-if INITRAMFS_SOURCE=""
-# The builtin initramfs is so small so we don't want to bug the user...
-
-config INITRAMFS_COMPRESSION_NONE
-	bool
-	default y
-
-endif
diff --git a/usr/Makefile b/usr/Makefile
index b84894b..245145a 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -6,9 +6,6 @@ klibcdirs:;
 PHONY += klibcdirs
 
 
-# No compression
-suffix_$(CONFIG_INITRAMFS_COMPRESSION_NONE)   =
-
 # Gzip, but no bzip2
 suffix_$(CONFIG_INITRAMFS_COMPRESSION_GZIP)   = .gz
 
-- 
1.6.0.6


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: "make oldconfig" problem
  2009-03-31 19:35     ` H. Peter Anvin
@ 2009-04-01  6:35       ` Peter Teoh
  2009-04-01  7:08         ` [GIT PULL] bzip2/lzma Kconfig warning fix H. Peter Anvin
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Teoh @ 2009-04-01  6:35 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: Jike Song, LKML, Frederic Weisbecker

On Wed, Apr 1, 2009 at 3:35 AM, H. Peter Anvin <hpa@zytor.com> wrote:
> Peter Teoh wrote:
>>>>
>>> Seems to be caused by
>>> 40297927575a50b1d0d308d735c445924d33fba6("bzip2/lzma: don't ask for
>>> compression mode for the default initramfs").
>>>
>>> I get no errors with that commit reverted.
>>
>> Thank you, will try that.
>>
>
> Linus complained about a choice that didn't make sense for most users.
> Unfortunately Kconfig doesn't seem to have a sane block to deal with having
> alternatives to conditionalized choice blocks.
>
> Fortunately, CONFIG_INITRAMFS_COMPRESSION_NONE doesn't actually *do*
> anything, so this is probably the preferred hack.
>
> Could you try this out?  If it works as expected for you as well as me, I'll
> push it to Linus.
>
>        -hpa
>
>

Yes, it worked for me, compiled fine and well.   Thanks.


-- 
Regards,
Peter Teoh

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [GIT PULL] bzip2/lzma Kconfig warning fix
  2009-04-01  6:35       ` Peter Teoh
@ 2009-04-01  7:08         ` H. Peter Anvin
  0 siblings, 0 replies; 7+ messages in thread
From: H. Peter Anvin @ 2009-04-01  7:08 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Peter Teoh, Alain Knaff, Jike Song, LKML, Frederic Weisbecker,
	Ingo Molnar, Thomas Gleixer

Hi Linus,

This patch should take care of the annoying Kconfig warning from the
bzip2/lzma code.

The following changes since commit 15f7176eb1cccec0a332541285ee752b935c1c85:
  Linus Torvalds (1):
        Merge git://git.kernel.org/.../davem/net-2.6

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-tip.git bzip2-lzma-for-linus

H. Peter Anvin (1):
      bzip2/lzma: quiet Kconfig warning for INITRAMFS_COMPRESSION_NONE

 usr/Kconfig  |   15 +--------------
 usr/Makefile |    3 ---
 2 files changed, 1 insertions(+), 17 deletions(-)

commit 1359096eacb1971be67eead8bf9b582864d92a30
Author: H. Peter Anvin <hpa@zytor.com>
Date:   Tue Mar 31 12:24:17 2009 -0700

    bzip2/lzma: quiet Kconfig warning for INITRAMFS_COMPRESSION_NONE
    
    Impact: quiet Kconfig warning
    
    It appears that Kconfig simply has no way to provide defaults for
    entries that exist inside a conditionalized choice block.
    Fortunately, it turns out we don't actually ever use
    CONFIG_INITRAMFS_COMPRESSION_NONE, so we can just drop it for
    everything outside the choice block.
    
    Signed-off-by: H. Peter Anvin <hpa@zytor.com>

diff --git a/usr/Kconfig b/usr/Kconfig
index 588c588..1c3039f 100644
--- a/usr/Kconfig
+++ b/usr/Kconfig
@@ -72,10 +72,8 @@ config RD_LZMA
 	  Support loading of a LZMA encoded initial ramdisk or cpio buffer
 	  If unsure, say N.
 
-if INITRAMFS_SOURCE!=""
-
 choice
-	prompt "Built-in initramfs compression mode"
+	prompt "Built-in initramfs compression mode" if INITRAMFS_SOURCE!=""
 	help
 	  This option decides by which algorithm the builtin initramfs
 	  will be compressed.  Several compression algorithms are
@@ -134,14 +132,3 @@ config INITRAMFS_COMPRESSION_LZMA
 	  smaller with LZMA in comparison to gzip.
 
 endchoice
-
-endif
-
-if INITRAMFS_SOURCE=""
-# The builtin initramfs is so small so we don't want to bug the user...
-
-config INITRAMFS_COMPRESSION_NONE
-	bool
-	default y
-
-endif
diff --git a/usr/Makefile b/usr/Makefile
index b84894b..245145a 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -6,9 +6,6 @@ klibcdirs:;
 PHONY += klibcdirs
 
 
-# No compression
-suffix_$(CONFIG_INITRAMFS_COMPRESSION_NONE)   =
-
 # Gzip, but no bzip2
 suffix_$(CONFIG_INITRAMFS_COMPRESSION_GZIP)   = .gz
 

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: "make oldconfig" problem
@ 2009-04-01  8:02 Torsten Schmidt
  0 siblings, 0 replies; 7+ messages in thread
From: Torsten Schmidt @ 2009-04-01  8:02 UTC (permalink / raw)
  To: linux-kernel

Hi, 

fixes also my problem, reported some days ago:
http://lkml.org/lkml/2009/3/30/384

Thx, Torsten

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-04-01  8:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-31  6:49 "make oldconfig" problem Peter Teoh
2009-03-31  8:47 ` Jike Song
2009-03-31  8:51   ` Peter Teoh
2009-03-31 19:35     ` H. Peter Anvin
2009-04-01  6:35       ` Peter Teoh
2009-04-01  7:08         ` [GIT PULL] bzip2/lzma Kconfig warning fix H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2009-04-01  8:02 "make oldconfig" problem Torsten Schmidt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.