Skip to contentSkip to conversation

Qlogic compile warning fix

PATCH New Michael Buesch 1 participant 1 message Jul 5, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Qlogic compile warning fix

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

FIXME: Tom, are you the maintainer?

fixes "Warning: passing arg 1 of `scsi_unregister' from incompatible pointer type" compiletime warning.

- --- drivers/scsi/qlogicfas.c.orig 2003-06-13 20:52:42.000000000 +0200
+++ drivers/scsi/qlogicfas.c 2003-07-05 21:09:59.000000000 +0200
@@ -647,7 +647,7 @@
if(request_irq(qlirq, do_ql_ihandl, SA_SHIRQ, "qlogicfas", hreg) < 0)

 #endif
        {
- -               scsi_unregister(host);
+               scsi_unregister((struct Scsi_Host*)host);
                goto err_release_mem;
        }

#endif

- --
Regards Michael Buesch
http://www.8ung.at/tuxsoft
21:10:16 up 2:13, 3 users, load average: 0.44, 0.25, 0.23

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/BybmoxoigfggmSgRAtihAJ9ktdjsk2/6YoRqleRqDb6TDY6XQwCfaORR ZuSI2KFHPWcjgnUcjR9eDBI=
=bu/y
-----END PGP SIGNATURE-----