Re: [2.6 patch] drivers/scsi/nsp32.c: remove kernel 2.4 code

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: James Bottomley <James.Bottomley@...>
Cc: Adrian Bunk <bunk@...>, Andrew Morton <akpm@...>, <linux-scsi@...>, <linux-kernel@...>, Yokota Hiroshi <yokota@...>, GOTO Masanori <gotom@...>
Date: Friday, April 27, 2007 - 10:55 am

On Thu, 26 Apr 2007, James Bottomley wrote:


while we're on the subject, what's the policy on supporting kernel
version selection *within* the 2.5 series?  as in:

$ grep -r "KERNEL_VERSION(2,5" *
drivers/scsi/pcmcia/nsp_cs.h:#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,74))
drivers/scsi/pcmcia/nsp_cs.c:#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
drivers/scsi/pcmcia/nsp_cs.c:#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,2))
drivers/scsi/pcmcia/nsp_cs.c:#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,73))
... etc etc ...

granted, this doesn't happen in a lot of files (almost of them
SCSI-related), but is it official policy to support code based on its
release number in the 2.5 series of releases?  unless you have a good
reason, wouldn't it make more sense to compare against (2,6,0) rather
than, say, (2,5,73)?  just an observation.

rday

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [2.6 patch] drivers/scsi/nsp32.c: remove kernel 2.4 code, Robert P. J. Day, (Thu Apr 26, 7:59 pm)
Re: [2.6 patch] drivers/scsi/nsp32.c: remove kernel 2.4 code, James Bottomley, (Thu Apr 26, 8:30 pm)
Re: [2.6 patch] drivers/scsi/nsp32.c: remove kernel 2.4 code, Robert P. J. Day, (Fri Apr 27, 10:55 am)