linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 2.6.20-rc3-mm1 2/2] libata: SiS 180 pata/sata support
@ 2007-01-08  1:33 Jeff Garzik
  2007-01-08 10:28 ` Alan
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff Garzik @ 2007-01-08  1:33 UTC (permalink / raw)
  To: Uwe Koziolek; +Cc: Alan, linux.ide, Sven Ladegast

Uwe Koziolek wrote:
> This patch includes the PATA support for SiS180 importing PATA functionality from pata_sis.c
> 
> Signed-off-by: Uwe Koziolek <uwe.koziolek@gmx.net>
> 
> --- a/drivers/ata/sata_sis.c	2007-01-07 20:54:38.000000000 +0100
> +++ b/drivers/ata/sata_sis.c	2007-01-07 23:42:29.000000000 +0100
> @@ -138,6 +138,10 @@
>  	.port_ops	= &sis_ops,
>  };
>  
> +#ifdef CONFIG_PATA_SIS
> +extern struct ata_port_info sis_info133;
> +#endif

This is a poor way to share code between modules.  It fails when 
pata_sis is a module, and it forces another driver to be loaded, simply 
then to be used as a code library.

If the shared code is tiny, just create a header file and #include it 
(sata_promise and sata_sx4 do this).  Otherwise, create a shared library 
module.

	Jeff



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

end of thread, other threads:[~2007-01-08 15:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-08  1:33 [PATCH 2.6.20-rc3-mm1 2/2] libata: SiS 180 pata/sata support Jeff Garzik
2007-01-08 10:28 ` Alan
2007-01-08 11:44   ` Jeff Garzik
2007-01-08 12:51     ` Alan
2007-01-08 12:50       ` Jeff Garzik
2007-01-08 15:30         ` Alan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).