public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* RE: 2.4.28-pre3: broken ips update
@ 2004-09-13 14:28 Hammer, Jack
  2004-09-13 14:42 ` Matthew Wilcox
  2004-09-13 14:46 ` Arjan van de Ven
  0 siblings, 2 replies; 7+ messages in thread
From: Hammer, Jack @ 2004-09-13 14:28 UTC (permalink / raw)
  To: Adrian Bunk, Marcelo Tosatti; +Cc: linux-kernel, linux-scsi

[-- Attachment #1: Type: text/plain, Size: 3248 bytes --]

Marcelo,

This trivial one line patch corrects my mistake in ips.h. I assure you
that the previous patch was compiled and tested extensively - over a
several month test cycle.  However, our testing concentrates on existing
customers and shipping distro's.  Most of those changed to the 2.6
kernel on or before 2.4.20, so we had no 2.4 kernel in our test matrix
beyond that. I apologize for the oversight - we must update our test
matrix to always check out latest 2.4 development kernel.

The concerns expressed below about this driver being "blindly submitted"
or is "untested" are completely unwarranted.

Thanks.

Jack



--- linux.orig/drivers/scsi/ips.h	Mon Sep 13 09:40:04 2004
+++ linux/drivers/scsi/ips.h	Mon Sep 13 09:40:27 2004
@@ -97,7 +97,7 @@
 
    #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
    
-      #ifndef irqreturn_t
+      #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,23)
          typedef void irqreturn_t;
       #endif 







 

-----Original Message-----
From: linux-scsi-owner@vger.kernel.org
[mailto:linux-scsi-owner@vger.kernel.org] On Behalf Of Adrian Bunk
Sent: Monday, September 13, 2004 3:04 AM
To: Marcelo Tosatti; IpsLinux
Cc: linux-kernel@vger.kernel.org; linux-scsi@vger.kernel.org
Subject: 2.4.28-pre3: broken ips update

On Sat, Sep 11, 2004 at 07:01:17PM -0300, Marcelo Tosatti wrote:
>...
> Summary of changes from v2.4.28-pre2 to v2.4.28-pre3  
>============================================
>...
> Jack Hammer:
>   o ServeRAID driver (ips) Version 7.10.18 ...

<--  snip  -->

...
gcc-3.4 -D__KERNEL__
-I/home/bunk/linux/kernel-2.4/linux-2.4.28-pre3-full/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon 
-fno-unit-at-a-time   -nostdinc -iwithprefix include 
-DKBUILD_BASENAME=ips  -c -o ips.o ips.c In file included from
ips.c:190:
ips.h:101: error: redefinition of typedef 'irqreturn_t'
/home/bunk/linux/kernel-2.4/linux-2.4.28-pre3-full/include/linux/interru
pt.h:16: 
error: previous declaration of 'irqreturn_t' was here
make[3]: *** [ips.o] Error 1
make[3]: Leaving directory
`/home/bunk/linux/kernel-2.4/linux-2.4.28-pre3-full/drivers/scsi'

<--  snip  -->


This update was obviously submitted without even testing the compilation
of the driver (not to mention testing whether it actually works).


Even worse:

We had _exactly the same problem_ with the 7.00.15 driver in 
2.4.27-pre3, but 7.10.18 now simply reverts my (trivial) fix for this 
compile error.


Marcelo, can you please refuse patches from people who don't bother to 
do even the simplest compile testing when blindly submitting the latest 
version of a driver?


TIA
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[-- Attachment #2: patch_ips.h --]
[-- Type: application/octet-stream, Size: 330 bytes --]

--- linux.orig/drivers/scsi/ips.h	Mon Sep 13 09:40:04 2004
+++ linux/drivers/scsi/ips.h	Mon Sep 13 09:40:27 2004
@@ -97,7 +97,7 @@
 
    #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
    
-      #ifndef irqreturn_t
+      #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,23)
          typedef void irqreturn_t;
       #endif 
       

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: 2.4.28-pre3: broken ips update
@ 2004-09-13 15:00 Hammer, Jack
  0 siblings, 0 replies; 7+ messages in thread
From: Hammer, Jack @ 2004-09-13 15:00 UTC (permalink / raw)
  To: arjanv; +Cc: Adrian Bunk, Marcelo Tosatti, linux-kernel, linux-scsi


I concur with Arjan's critique.  

Please disregard this patch and I will create a new one, with Arjan's
recommendation, shortly.

Jack 



-----Original Message-----
From: Arjan van de Ven [mailto:arjanv@redhat.com] 
Sent: Monday, September 13, 2004 10:46 AM
To: Hammer, Jack
Cc: Adrian Bunk; Marcelo Tosatti; linux-kernel@vger.kernel.org;
linux-scsi@vger.kernel.org
Subject: RE: 2.4.28-pre3: broken ips update

On Mon, 2004-09-13 at 16:28, Hammer, Jack wrote:
> Marcelo,

> --- linux.orig/drivers/scsi/ips.h	Mon Sep 13 09:40:04 2004
> +++ linux/drivers/scsi/ips.h	Mon Sep 13 09:40:27 2004
> @@ -97,7 +97,7 @@
>  
>     #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
>     
> -      #ifndef irqreturn_t
> +      #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,23)
>           typedef void irqreturn_t;
>        #endif
> 

your fix is wrong.
you should nuke all version codes, and ONLY ifndef for  IRQ_NONE and
nothing else. That's not just cosmetics, that's also to make keep
working with those exact vendor kernels  you claim to have tested on :)



^ permalink raw reply	[flat|nested] 7+ messages in thread
* 2.4.28-pre3: broken ips update
@ 2004-09-13 18:01 Hammer, Jack
  0 siblings, 0 replies; 7+ messages in thread
From: Hammer, Jack @ 2004-09-13 18:01 UTC (permalink / raw)
  To: linux-kernel, linux-scsi; +Cc: Marcelo Tosatti, Arjan van de Ven, Adrian Bunk


This patch replaces the patch I submitted ( and then rescinded ) earlier
today. It fixes the compilation problem in 2.4.28 and includes the
changes recommended by Arjan on my earlier proposal for this.

Jack 




--- linux.orig/drivers/scsi/ips.h	Mon Sep 13 12:51:04 2004
+++ linux/drivers/scsi/ips.h	Mon Sep 13 12:55:15 2004
@@ -95,15 +95,14 @@
       #define scsi_set_pci_device(sh,dev) (0)
    #endif
 
-   #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
-   
-      #ifndef irqreturn_t
-         typedef void irqreturn_t;
-      #endif 
-      
+   #ifndef IRQ_NONE
+      typedef void irqreturn_t;
       #define IRQ_NONE
       #define IRQ_HANDLED
       #define IRQ_RETVAL(x)
+   #endif
+   
+   #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
       #define IPS_REGISTER_HOSTS(SHT)
scsi_register_module(MODULE_SCSI_HA,SHT)
       #define IPS_UNREGISTER_HOSTS(SHT)
scsi_unregister_module(MODULE_SCSI_HA,SHT)
       #define IPS_ADD_HOST(shost,device) 




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-09-13 18:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20040911220117.GA4669@logos.cnet>
2004-09-13  7:03 ` 2.4.28-pre3: broken ips update Adrian Bunk
2004-09-13 14:24   ` Mikael Pettersson
2004-09-13 14:28 Hammer, Jack
2004-09-13 14:42 ` Matthew Wilcox
2004-09-13 14:46 ` Arjan van de Ven
  -- strict thread matches above, loose matches on Subject: below --
2004-09-13 15:00 Hammer, Jack
2004-09-13 18:01 Hammer, Jack

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox