Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S270234AbTHHKIv (ORCPT ); Fri, 8 Aug 2003 06:08:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S270375AbTHHKIu (ORCPT ); Fri, 8 Aug 2003 06:08:50 -0400 Received: from scrub.xs4all.nl ([194.109.195.176]:61712 "EHLO scrub.xs4all.nl") by vger.kernel.org with ESMTP id S270234AbTHHKIt (ORCPT ); Fri, 8 Aug 2003 06:08:49 -0400 Date: Fri, 8 Aug 2003 12:03:45 +0200 (CEST) From: Roman Zippel X-X-Sender: roman@serv To: Adrian Bunk cc: linux-kernel@vger.kernel.org Subject: Re: 2.6: Problem multiple bool/tristate prompts In-Reply-To: <20030807235905.GO16091@fs.tum.de> Message-ID: References: <20030807235905.GO16091@fs.tum.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1128 Lines: 37 Hi, On Fri, 8 Aug 2003, Adrian Bunk wrote: > config BLK_DEV_PS2 > tristate "PS/2 ESDI hard disk support" if BROKEN_MODULAR > bool "PS/2 ESDI hard disk support" if !BROKEN_MODULAR > > > Every "make *config" gives the warning > > drivers/block/Kconfig:45: prompt redefined > drivers/block/Kconfig:45:warning: type of 'BLK_DEV_PS2' redefined from > 'tristate' to 'boolean' > > and the symbol is handled as tristate although BROKEN_MODULAR isn't > defined. A symbol can have only a single type and the warning is a bit misleading, the new type definition is simply ignored. I'm not sure what you're trying makes really sense, but you have to use a separate symbol: config BLK_DEV_PS2_B bool "PS/2 ESDI hard disk support" if !BROKEN_MODULAR config BLK_DEV_PS2 tristate "PS/2 ESDI hard disk support" if BROKEN_MODULAR default BLK_DEV_PS2_B bye, Roman - 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/