public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix scsi.c kmod noise
@ 2002-05-09 17:36 Tom 'spot' Callaway
  0 siblings, 0 replies; 6+ messages in thread
From: Tom 'spot' Callaway @ 2002-05-09 17:36 UTC (permalink / raw)
  To: linux-kernel

This patch fixes the scsi kmod issue that annoyed me to tears, and
confused me on several bug reports. This error crops up whenever scsi.c
is compiled in (which is fairly common in 2.4, Red Hat Linux does this
as well). Since its in scsi.c, this bug occurs on all archs, not just
sparc/sparc64 (which is where I'm working).

"kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2"

I didn't see it in bk, so I sent it here.

~spot
---
Tom "spot" Callaway <tcallawa@redhat.com> Red Hat Sales Engineer
Sair Linux and GNU Certified Administrator (LCA)
Red Hat Certified Engineer (RHCE)
GPG: D786 8B22 D9DB 1F8B 4AB7  448E 3C5E 99AD 9305 4260

The words and opinions reflected in this message do not necessarily
reflect those of my employer, Red Hat, and belong solely to me.

"Immature poets borrow, mature poets steal." --- T. S. Eliot
----


--- linux/drivers/scsi/scsi.c.OLD	Wed May  1 16:33:14 2002
+++ linux/drivers/scsi/scsi.c	Wed May  1 16:34:46 2002
@@ -2389,10 +2389,18 @@
 
 		/* Load upper level device handler of some kind */
 	case MODULE_SCSI_DEV:
+
+/* This doesn't make much sense to do unless CONFIG_SCSI is a module itself.
+ *
+ * ~spot <tcallawa@redhat.com> 05012002
+ */
+
+#ifdef MODULE
 #ifdef CONFIG_KMOD
 		if (scsi_hosts == NULL)
 			request_module("scsi_hostadapter");
 #endif
+#endif
 		return scsi_register_device_module((struct Scsi_Device_Template *) ptr);
 		/* The rest of these are not yet implemented */
 


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

end of thread, other threads:[~2002-05-10  0:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1020966481.25371.linux-kernel2news@redhat.com>
2002-05-09 20:33 ` [PATCH] Fix scsi.c kmod noise Pete Zaitcev
2002-05-09 20:41   ` Doug Ledford
2002-05-09 22:41     ` Tom 'spot' Callaway
2002-05-09 23:55       ` Christoph Hellwig
2002-05-10  0:46       ` Patrick Mansfield
2002-05-09 17:36 Tom 'spot' Callaway

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