linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pata_it821x: fix section mismatch warning
@ 2007-06-25 17:42 Randy Dunlap
  2007-06-26  0:29 ` Alan Cox
  2007-06-27  6:45 ` Jeff Garzik
  0 siblings, 2 replies; 3+ messages in thread
From: Randy Dunlap @ 2007-06-25 17:42 UTC (permalink / raw)
  To: ide; +Cc: alan, jgarzik, bzolnier

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix section mismatch when CONFIG_HOTPLUG=n (but functions are used
for resume):

WARNING: drivers/ata/pata_it821x.o(.text+0x3f): Section mismatch: reference to .init.text: (between 'it821x_reinit_one' and 'it821x_program_udma')
WARNING: drivers/ata/pata_it821x.o(.text+0x691): Section mismatch: reference to .init.text: (between 'it821x_init_one' and 'it821x_passthru_set_dmamode')

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/ata/pata_it821x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.22-rc6.orig/drivers/ata/pata_it821x.c
+++ linux-2.6.22-rc6/drivers/ata/pata_it821x.c
@@ -690,7 +690,7 @@ static struct ata_port_operations it821x
 	.port_start	= it821x_port_start,
 };
 
-static void __devinit it821x_disable_raid(struct pci_dev *pdev)
+static void it821x_disable_raid(struct pci_dev *pdev)
 {
 	/* Reset local CPU, and set BIOS not ready */
 	pci_write_config_byte(pdev, 0x5E, 0x01);

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

* Re: [PATCH] pata_it821x: fix section mismatch warning
  2007-06-25 17:42 [PATCH] pata_it821x: fix section mismatch warning Randy Dunlap
@ 2007-06-26  0:29 ` Alan Cox
  2007-06-27  6:45 ` Jeff Garzik
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2007-06-26  0:29 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: ide, alan, jgarzik, bzolnier

On Mon, Jun 25, 2007 at 10:42:22AM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> Fix section mismatch when CONFIG_HOTPLUG=n (but functions are used
> for resume):
> 
> WARNING: drivers/ata/pata_it821x.o(.text+0x3f): Section mismatch: reference to .init.text: (between 'it821x_reinit_one' and 'it821x_program_udma')
> WARNING: drivers/ata/pata_it821x.o(.text+0x691): Section mismatch: reference to .init.text: (between 'it821x_init_one' and 'it821x_passthru_set_dmamode')
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>

Acked-by: Alan Cox <alan@redat.com> 

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

* Re: [PATCH] pata_it821x: fix section mismatch warning
  2007-06-25 17:42 [PATCH] pata_it821x: fix section mismatch warning Randy Dunlap
  2007-06-26  0:29 ` Alan Cox
@ 2007-06-27  6:45 ` Jeff Garzik
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2007-06-27  6:45 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: ide, alan, bzolnier

Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> Fix section mismatch when CONFIG_HOTPLUG=n (but functions are used
> for resume):
> 
> WARNING: drivers/ata/pata_it821x.o(.text+0x3f): Section mismatch: reference to .init.text: (between 'it821x_reinit_one' and 'it821x_program_udma')
> WARNING: drivers/ata/pata_it821x.o(.text+0x691): Section mismatch: reference to .init.text: (between 'it821x_init_one' and 'it821x_passthru_set_dmamode')
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> ---
>  drivers/ata/pata_it821x.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- linux-2.6.22-rc6.orig/drivers/ata/pata_it821x.c
> +++ linux-2.6.22-rc6/drivers/ata/pata_it821x.c
> @@ -690,7 +690,7 @@ static struct ata_port_operations it821x
>  	.port_start	= it821x_port_start,
>  };
>  
> -static void __devinit it821x_disable_raid(struct pci_dev *pdev)
> +static void it821x_disable_raid(struct pci_dev *pdev)
>  {
>  	/* Reset local CPU, and set BIOS not ready */
>  	pci_write_config_byte(pdev, 0x5E, 0x01);

applied



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

end of thread, other threads:[~2007-06-27  6:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-25 17:42 [PATCH] pata_it821x: fix section mismatch warning Randy Dunlap
2007-06-26  0:29 ` Alan Cox
2007-06-27  6:45 ` Jeff Garzik

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).