* Re: Qla1280 update to 3.23.24 [not found] <200308181606.h7IG6utZ021778@hera.kernel.org> @ 2003-08-18 16:18 ` Jeff Garzik 2003-08-19 9:26 ` Jes Sorensen 0 siblings, 1 reply; 2+ messages in thread From: Jeff Garzik @ 2003-08-18 16:18 UTC (permalink / raw) To: Linux Kernel Mailing List; +Cc: James Bottomley, Jes Sorensen On Thu, Aug 14, 2003 at 11:16:27PM +0000, Linux Kernel Mailing List wrote: > diff -Nru a/drivers/scsi/qla1280.h b/drivers/scsi/qla1280.h > --- a/drivers/scsi/qla1280.h Mon Aug 18 09:07:03 2003 > +++ b/drivers/scsi/qla1280.h Mon Aug 18 09:07:03 2003 > @@ -1111,7 +1111,11 @@ > /* > * Linux - SCSI Driver Interface Function Prototypes. > */ > +#if LINUX_VERSION_CODE < 0x020600 > int qla1280_proc_info(char *, char **, off_t, int, int, int); > +#else > +int qla1280_proc_info(struct Scsi_Host *, char *, char **, off_t, int, int); > +#endif Since we have people _constantly_ screwing this up (but of course, never you, Jes :)), please use the KERNEL_VERSION() macro instead of open-coding the kernel version you are testing. It makes these tests not only harder to screw up, but easier to read, too. Jeff ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Qla1280 update to 3.23.24 2003-08-18 16:18 ` Qla1280 update to 3.23.24 Jeff Garzik @ 2003-08-19 9:26 ` Jes Sorensen 0 siblings, 0 replies; 2+ messages in thread From: Jes Sorensen @ 2003-08-19 9:26 UTC (permalink / raw) To: Jeff Garzik; +Cc: Linux Kernel Mailing List, James Bottomley >>>>> "Jeff" == Jeff Garzik <jgarzik@pobox.com> writes: Jeff> Since we have people _constantly_ screwing this up (but of Jeff> course, never you, Jes :)), please use the KERNEL_VERSION() Jeff> macro instead of open-coding the kernel version you are testing. Jeff> It makes these tests not only harder to screw up, but easier to Jeff> read, too. Thats why I used the hex-value and not decimal. Sorry, maybe I am old fashioned but I always disliked that macro and the hex values are really easy to read which is why I decided to stick to that. Cheers, Jes ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-19 9:39 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <200308181606.h7IG6utZ021778@hera.kernel.org> 2003-08-18 16:18 ` Qla1280 update to 3.23.24 Jeff Garzik 2003-08-19 9:26 ` Jes Sorensen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).