Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753553AbXECLSR (ORCPT ); Thu, 3 May 2007 07:18:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753388AbXECLSR (ORCPT ); Thu, 3 May 2007 07:18:17 -0400 Received: from nic.NetDirect.CA ([216.16.235.2]:50974 "EHLO rubicon.netdirect.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753170AbXECLSP (ORCPT ); Thu, 3 May 2007 07:18:15 -0400 X-Originating-Ip: 72.143.66.196 Date: Thu, 3 May 2007 07:17:34 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost.localdomain To: Russell King cc: Linux Kernel Mailing List , linux-scsi@vger.kernel.org Subject: Re: dead CONFIG_ variables: drivers/scsi/ In-Reply-To: <20070503111113.GC12018@flint.arm.linux.org.uk> Message-ID: References: <20070503111113.GC12018@flint.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Net-Direct-Inc-MailScanner-Information: Please contact the ISP for more information X-Net-Direct-Inc-MailScanner: Found to be clean X-Net-Direct-Inc-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-16.8, required 5, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -15.00, INIT_RECVD_OUR_AUTH -20.00, RCVD_IN_SORBS_DUL 20.00) X-Net-Direct-Inc-MailScanner-From: rpjday@mindspring.com Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2082 Lines: 46 On Thu, 3 May 2007, Russell King wrote: > On Thu, May 03, 2007 at 06:10:28AM -0400, Robert P. J. Day wrote: > > > > $ ../dead_config.sh drivers/scsi > > ========== ACORNSCSI_CONSTANTS ========== > > drivers/scsi/arm/acornscsi.c:106:#undef CONFIG_ACORNSCSI_CONSTANTS > > drivers/scsi/arm/acornscsi.c:417:#ifdef CONFIG_ACORNSCSI_CONSTANTS > > drivers/scsi/arm/acornscsi.c:495:#ifdef CONFIG_ACORNSCSI_CONSTANTS > > ========== SCSI_ACORNSCSI_LINK ========== > > drivers/scsi/arm/acornscsi.c:70:#undef CONFIG_SCSI_ACORNSCSI_LINK > > drivers/scsi/arm/acornscsi.c:169:#ifdef CONFIG_SCSI_ACORNSCSI_LINK > > drivers/scsi/arm/acornscsi.c:1675:#ifdef CONFIG_SCSI_ACORNSCSI_LINK > > drivers/scsi/arm/acornscsi.c:2849:#ifdef CONFIG_SCSI_ACORNSCSI_LINK > > drivers/scsi/arm/acornscsi.c:2880:#ifdef CONFIG_SCSI_ACORNSCSI_LINK > > False positives. That #undef is preceded by a comment describing the > driver-internal configuration for developers rather than users. I > guess they shouldn't be preceded by CONFIG_. i've already admitted that this script is going to generate false positives for a number of reasons, the most common one being using the "CONFIG_" prefix outside the context of Kconfig. technically, of course, that doesn't hurt but it sure would make the code clearer if that prefix was officially reserved for Kconfig stuff. rday p.s. "CONFIG_" prefix aside, i would think it's also a bit yucky to be checking for the definition of a preprocessor symbol that you've already hardcoded out of existence in the same source file. :-) -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page ======================================================================== - 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/