From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755300AbXD0AA7 (ORCPT ); Thu, 26 Apr 2007 20:00:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751661AbXD0AA6 (ORCPT ); Thu, 26 Apr 2007 20:00:58 -0400 Received: from nic.NetDirect.CA ([216.16.235.2]:42694 "EHLO rubicon.netdirect.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755295AbXD0AA4 (ORCPT ); Thu, 26 Apr 2007 20:00:56 -0400 X-Originating-Ip: 74.109.98.66 Date: Thu, 26 Apr 2007 19:59:57 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost.localdomain To: Adrian Bunk cc: Andrew Morton , James.Bottomley@SteelEye.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [2.6 patch] drivers/scsi/nsp32.c: remove kernel 2.4 code In-Reply-To: <20070426234742.GH3468@stusta.de> Message-ID: References: <20070426234742.GH3468@stusta.de> 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=-36.8, required 5, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -15.00, INIT_RECVD_OUR_AUTH -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 On Fri, 27 Apr 2007, Adrian Bunk wrote: > This patch removes kernel 2.4 code. > > Signed-off-by: Adrian Bunk > > --- > > This patch has been sent on: > - 26 Mar 2007 > > drivers/scsi/nsp32.c | 109 +++++-------------------------------------- > 1 file changed, 13 insertions(+), 96 deletions(-) > > --- linux-2.6.21-rc4-mm1/drivers/scsi/nsp32.c.old 2007-03-25 20:27:34.000000000 +0200 > +++ linux-2.6.21-rc4-mm1/drivers/scsi/nsp32.c 2007-03-25 20:31:59.000000000 +0200 > @@ -49,10 +49,6 @@ > #include > #include > > -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)) > -# include > -#endif > - i'm curious about the rules for removing code like this. in the case of drivers, isn't it possible that some driver source could be relevant for both the 2.4 and 2.6 kernel source tree, and simply uses that kind of preprocessor check to make sure it's being compiled appropriately? or are you doing something more sophisticated than simply checking the kernel version being tested? rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page ========================================================================