public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] ide-scsi compile fix
@ 2002-03-08 23:58 jason
  2002-03-09 13:08 ` Martin Dalecki
  0 siblings, 1 reply; 3+ messages in thread
From: jason @ 2002-03-08 23:58 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

GCC gives an error about an undefined reference to idescsi_init from ide.c when compiling 2.5.6 with ide scsi emulation enabled, this patch corrects the problem.

--- a/drivers/scsi/ide-scsi.c   Fri Mar  8 17:22:52 2002
+++ b/drivers/scsi/ide-scsi.c   Fri Mar  8 17:23:00 2002
@@ -565,7 +565,7 @@
 /*
  *     idescsi_init will register the driver for each scsi.
  */
-static int idescsi_init(void)
+int idescsi_init(void)
 {
        ide_drive_t *drive;
        idescsi_scsi_t *scsi;


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

* Re: [patch] ide-scsi compile fix
  2002-03-08 23:58 [patch] ide-scsi compile fix jason
@ 2002-03-09 13:08 ` Martin Dalecki
  2002-03-11 10:37   ` Petr Titera
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Dalecki @ 2002-03-09 13:08 UTC (permalink / raw)
  To: jason; +Cc: torvalds, linux-kernel

jason wrote:
> GCC gives an error about an undefined reference to idescsi_init from ide.c when compiling 2.5.6 with ide scsi emulation enabled, this patch corrects the problem.

Tank you for looking after this.
That was a bit too far reaching on my behalf. You are right if
one disables module support.

> 
> --- a/drivers/scsi/ide-scsi.c   Fri Mar  8 17:22:52 2002
> +++ b/drivers/scsi/ide-scsi.c   Fri Mar  8 17:23:00 2002
> @@ -565,7 +565,7 @@
>  /*
>   *     idescsi_init will register the driver for each scsi.
>   */
> -static int idescsi_init(void)
> +int idescsi_init(void)
>  {
>         ide_drive_t *drive;
>         idescsi_scsi_t *scsi;
> 
>


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

* Re: [patch] ide-scsi compile fix
  2002-03-09 13:08 ` Martin Dalecki
@ 2002-03-11 10:37   ` Petr Titera
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Titera @ 2002-03-11 10:37 UTC (permalink / raw)
  To: Martin Dalecki, linux-kernel

Martin Dalecki wrote:
> jason wrote:
> 
>> GCC gives an error about an undefined reference to idescsi_init from 
>> ide.c when compiling 2.5.6 with ide scsi emulation enabled, this patch 
>> corrects the problem.
> 
> 
> Tank you for looking after this.
> That was a bit too far reaching on my behalf. You are right if
> one disables module support.
> 

But ide-scsi works even if you remove call of this function from ide.c Why?

Petr Titera


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

end of thread, other threads:[~2002-03-11 10:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-08 23:58 [patch] ide-scsi compile fix jason
2002-03-09 13:08 ` Martin Dalecki
2002-03-11 10:37   ` Petr Titera

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