* [PATCH] cpqarray: section fixups
@ 2006-06-09 3:41 Randy.Dunlap
0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2006-06-09 3:41 UTC (permalink / raw)
To: lkml; +Cc: axboe, akpm, iss_storagedev
From: Randy Dunlap <rdunlap@xenotime.net>
Priority: not critical.
Makes cpqarray_register_ctlr() __init. Saves a little memory.
Fix section mismatch warning:
WARNING: drivers/block/cpqarray.o - Section mismatch: reference to .init.text: from .text between 'cpqarray_register_ctlr' (at offset 0x682) and 'alloc_cpqarray_hba'
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
---
drivers/block/cpqarray.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- linux-2617-rc6.orig/drivers/block/cpqarray.c
+++ linux-2617-rc6/drivers/block/cpqarray.c
@@ -392,7 +392,7 @@ static void __devexit cpqarray_remove_on
}
/* pdev is NULL for eisa */
-static int cpqarray_register_ctlr( int i, struct pci_dev *pdev)
+static int __init cpqarray_register_ctlr( int i, struct pci_dev *pdev)
{
request_queue_t *q;
int j;
@@ -745,7 +745,7 @@ __setup("smart2=", cpqarray_setup);
/*
* Find an EISA controller's signature. Set up an hba if we find it.
*/
-static int cpqarray_eisa_detect(void)
+static int __init cpqarray_eisa_detect(void)
{
int i=0, j;
__u32 board_id;
---
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-09 3:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-09 3:41 [PATCH] cpqarray: section fixups Randy.Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®