Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263947AbTICRDg (ORCPT ); Wed, 3 Sep 2003 13:03:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263980AbTICRDg (ORCPT ); Wed, 3 Sep 2003 13:03:36 -0400 Received: from hermes.fachschaften.tu-muenchen.de ([129.187.202.12]:8910 "HELO hermes.fachschaften.tu-muenchen.de") by vger.kernel.org with SMTP id S263947AbTICRDU (ORCPT ); Wed, 3 Sep 2003 13:03:20 -0400 Date: Wed, 3 Sep 2003 19:02:56 +0200 From: Adrian Bunk To: Andrew Morton , Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, campbell@torque.net, linux-scsi@vger.kernel.org Subject: 2.6.0-test4-mm5: SCSI imm driver doesn't compile Message-ID: <20030903170256.GA18025@fs.tum.de> References: <20030902231812.03fae13f.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030902231812.03fae13f.akpm@osdl.org> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1385 Lines: 53 The following compile error (tested with gcc 2.95) seems to come from Linus' tree: <-- snip --> ... CC [M] drivers/scsi/imm.o In file included from drivers/scsi/imm.c:55: drivers/scsi/imm.h:105: duplicate array index in initializer drivers/scsi/imm.h:105: (near initialization for `IMM_MODE_STRING') make[2]: *** [drivers/scsi/imm.o] Error 1 <-- snip --> The problem is the following code in imm.h (with CONFIG_SCSI_IZIP_EPP16 enabled): <-- snip --> ... static char *IMM_MODE_STRING[] = { [IMM_AUTODETECT] = "Autodetect", [IMM_NIBBLE] = "SPP", [IMM_PS2] = "PS/2", [IMM_EPP_8] = "EPP 8 bit", [IMM_EPP_16] = "EPP 16 bit", #ifdef CONFIG_SCSI_IZIP_EPP16 [IMM_EPP_16] = "EPP 16 bit", #else [IMM_EPP_32] = "EPP 32 bit", #endif [IMM_UNKNOWN] = "Unknown", }; ... <-- snip --> cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed - 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/