* [PATCH] cciss: section mismatch
@ 2008-01-10 22:32 Randy Dunlap
2008-01-11 9:13 ` Jens Axboe
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Randy Dunlap @ 2008-01-10 22:32 UTC (permalink / raw)
To: scsi, mike.miller, iss_storagedev; +Cc: akpm, samr, axboe
From: Randy Dunlap <randy.dunlap@oracle.com>
Mark cciss_pci_init() as __devinit, to fix section mismatch warning.
WARNING: vmlinux.o(.text+0x601fc9): Section mismatch: reference to .init.text: (between 'cciss_pci_init' and 'cciss_getgeometry')
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
drivers/block/cciss.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.24-rc7-git1.orig/drivers/block/cciss.c
+++ linux-2.6.24-rc7-git1/drivers/block/cciss.c
@@ -2927,7 +2927,7 @@ default_int_mode:
return;
}
-static int cciss_pci_init(ctlr_info_t *c, struct pci_dev *pdev)
+static int __devinit cciss_pci_init(ctlr_info_t *c, struct pci_dev *pdev)
{
ushort subsystem_vendor_id, subsystem_device_id, command;
__u32 board_id, scratchpad = 0;
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] cciss: section mismatch
2008-01-10 22:32 [PATCH] cciss: section mismatch Randy Dunlap
@ 2008-01-11 9:13 ` Jens Axboe
2008-01-11 15:14 ` Miller, Mike (OS Dev)
2008-01-11 17:55 ` Sam Ravnborg
2 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2008-01-11 9:13 UTC (permalink / raw)
To: Randy Dunlap; +Cc: scsi, mike.miller, iss_storagedev, akpm, samr
On Thu, Jan 10 2008, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> Mark cciss_pci_init() as __devinit, to fix section mismatch warning.
>
> WARNING: vmlinux.o(.text+0x601fc9): Section mismatch: reference to .init.text: (between 'cciss_pci_init' and 'cciss_getgeometry')
Thanks Randy, added.
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] cciss: section mismatch
2008-01-10 22:32 [PATCH] cciss: section mismatch Randy Dunlap
2008-01-11 9:13 ` Jens Axboe
@ 2008-01-11 15:14 ` Miller, Mike (OS Dev)
2008-01-11 17:55 ` Sam Ravnborg
2 siblings, 0 replies; 4+ messages in thread
From: Miller, Mike (OS Dev) @ 2008-01-11 15:14 UTC (permalink / raw)
To: Randy Dunlap, scsi, ISS StorageDev; +Cc: akpm, samr, axboe@kernel.dk
> --- linux-2.6.24-rc7-git1.orig/drivers/block/cciss.c
> +++ linux-2.6.24-rc7-git1/drivers/block/cciss.c
> @@ -2927,7 +2927,7 @@ default_int_mode:
> return;
> }
>
> -static int cciss_pci_init(ctlr_info_t *c, struct pci_dev *pdev)
> +static int __devinit cciss_pci_init(ctlr_info_t *c, struct pci_dev
> +*pdev)
> {
> ushort subsystem_vendor_id, subsystem_device_id, command;
> __u32 board_id, scratchpad = 0;
>
Thanks, Randy.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] cciss: section mismatch
2008-01-10 22:32 [PATCH] cciss: section mismatch Randy Dunlap
2008-01-11 9:13 ` Jens Axboe
2008-01-11 15:14 ` Miller, Mike (OS Dev)
@ 2008-01-11 17:55 ` Sam Ravnborg
2 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2008-01-11 17:55 UTC (permalink / raw)
To: Randy Dunlap; +Cc: scsi, mike.miller, iss_storagedev, akpm, axboe
On Thu, Jan 10, 2008 at 02:32:35PM -0800, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> Mark cciss_pci_init() as __devinit, to fix section mismatch warning.
>
> WARNING: vmlinux.o(.text+0x601fc9): Section mismatch: reference to .init.text: (between 'cciss_pci_init' and 'cciss_getgeometry')
>
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-11 17:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-10 22:32 [PATCH] cciss: section mismatch Randy Dunlap
2008-01-11 9:13 ` Jens Axboe
2008-01-11 15:14 ` Miller, Mike (OS Dev)
2008-01-11 17:55 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox