From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 9 May 2002 16:34:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 9 May 2002 16:34:04 -0400 Received: from nat-pool-rdu.redhat.com ([66.187.233.200]:40514 "EHLO devserv.devel.redhat.com") by vger.kernel.org with ESMTP id ; Thu, 9 May 2002 16:34:04 -0400 Date: Thu, 9 May 2002 16:33:59 -0400 From: Pete Zaitcev Message-Id: <200205092033.g49KXxG06486@devserv.devel.redhat.com> To: "Tom 'spot' Callaway" Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] Fix scsi.c kmod noise In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > [...] This error crops up whenever scsi.c > is compiled in (which is fairly common in 2.4, Red Hat Linux does this > as well). > "kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2" > --- 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 @@ > +/* This doesn't make much sense to do unless CONFIG_SCSI is a module itself. > + * > + * ~spot 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); I do not see how you suppose this should work. What if scsi.c is compiled in, and sunesp.c is not? Besides, why are you running a kernel with CONFIG_KMOD if exec returns -ENOENT? I suspect something is broken in the Aurora land. -- Pete