From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King Subject: Re: dead CONFIG_ variables: drivers/scsi/ Date: Thu, 3 May 2007 12:22:50 +0100 Message-ID: <20070503112250.GE12018@flint.arm.linux.org.uk> References: <20070503111113.GC12018@flint.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from caramon.arm.linux.org.uk ([217.147.92.249]:2611 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753395AbXECLXF (ORCPT ); Thu, 3 May 2007 07:23:05 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: "Robert P. J. Day" Cc: Linux Kernel Mailing List , linux-scsi@vger.kernel.org On Thu, May 03, 2007 at 07:17:34AM -0400, Robert P. J. Day wrote: > 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. :-) No, because the way you turn them on (as intended) is to do: perl -pi -e 's/undef/define/ if m/CONFIG_ACORNSCSI_CONSTANTS/' \ drivers/scsi/arm/acornscsi.c (or via your text editor). An alternative way around the issue is to keep a separate patch outside of mainline which patches the additional code and data into the driver. That's far less maintainable, and leads to additional problems. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: