* [PATCH] Build mptspi.c on architectures where CONFIG_PM is unset
@ 2006-06-03 14:36 Tom 'spot' Callaway
2006-06-10 0:00 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Tom 'spot' Callaway @ 2006-06-03 14:36 UTC (permalink / raw)
To: linux-scsi, sparclinux; +Cc: davem
When trying to build mpt* for sparc64 (my T2000 needs mptsas and
friends), I noticed that mptspi.o was not building:
CC [M] drivers/message/fusion/mptspi.o
drivers/message/fusion/mptspi.c: In function `mptspi_resume':
drivers/message/fusion/mptspi.c:844: error: implicit declaration of
function `mptscsih_resume'
drivers/message/fusion/mptspi.c: At top level:
drivers/message/fusion/mptspi.c:839: warning: 'mptspi_resume' defined
but not used
make[3]: *** [drivers/message/fusion/mptspi.o] Error 1
make[2]: *** [drivers/message/fusion] Error 2
make[1]: *** [drivers/message] Error 2
sparc64 does not have CONFIG_PM defined, and mptscsih_resume is wrapped
in an #ifdef CONFIG_PM in mptscsih.h. mptscsih_resume is only used in
the mptspi_resume function in mptspi.c, and its only call is in the
pci_driver struct (and that call is also #ifdef CONFIG_PM). In order to
get the code to compile, I just needed to wrap the actual function in
#ifdef CONFIG_PM, which is what this patch does. I can confirm that it
gets the module building again without errors.
Signed-off-by: Tom "spot" Callaway <tcallawa@redhat.com>
--- linux-2.6.16-sparc64/drivers/message/fusion/mptspi.c.BAD
+++ linux-2.6.16-sparc64/drivers/message/fusion/mptspi.c
@@ -831,6 +831,7 @@
return rc;
}
+#ifdef CONFIG_PM
/*
* spi module resume handler
*/
@@ -846,6 +847,7 @@
return rc;
}
+#endif
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
~spot
--
Tom "spot" Callaway: Red Hat Senior Sales Engineer || GPG ID: 93054260
Fedora Extras Steering Committee Member (RPM Standards and Practices)
Aurora Linux Project Leader: http://auroralinux.org
Lemurs, llamas, and sparcs, oh my!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Build mptspi.c on architectures where CONFIG_PM is unset
2006-06-03 14:36 [PATCH] Build mptspi.c on architectures where CONFIG_PM is unset Tom 'spot' Callaway
@ 2006-06-10 0:00 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2006-06-10 0:00 UTC (permalink / raw)
To: tcallawa; +Cc: linux-scsi, sparclinux
From: "Tom 'spot' Callaway" <tcallawa@redhat.com>
Date: Sat, 03 Jun 2006 09:36:47 -0500
> sparc64 does not have CONFIG_PM defined, and mptscsih_resume is wrapped
> in an #ifdef CONFIG_PM in mptscsih.h. mptscsih_resume is only used in
> the mptspi_resume function in mptspi.c, and its only call is in the
> pci_driver struct (and that call is also #ifdef CONFIG_PM). In order to
> get the code to compile, I just needed to wrap the actual function in
> #ifdef CONFIG_PM, which is what this patch does. I can confirm that it
> gets the module building again without errors.
>
> Signed-off-by: Tom "spot" Callaway <tcallawa@redhat.com>
Thanks Tom I'll apply this.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] Build mptspi.c on architectures where CONFIG_PM is unset
@ 2006-06-14 23:16 Moore, Eric
2006-06-14 23:47 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Moore, Eric @ 2006-06-14 23:16 UTC (permalink / raw)
To: Tom 'spot' Callaway, linux-scsi, sparclinux,
James.Bottomley; +Cc: davem
On Saturday, June 03, 2006 8:37 AM, Tom Callaway wrote:
> When trying to build mpt* for sparc64 (my T2000 needs mptsas and
> friends), I noticed that mptspi.o was not building:
>
> CC [M] drivers/message/fusion/mptspi.o
> drivers/message/fusion/mptspi.c: In function `mptspi_resume':
> drivers/message/fusion/mptspi.c:844: error: implicit declaration of
> function `mptscsih_resume'
> drivers/message/fusion/mptspi.c: At top level:
> drivers/message/fusion/mptspi.c:839: warning: 'mptspi_resume' defined
> but not used
> make[3]: *** [drivers/message/fusion/mptspi.o] Error 1
> make[2]: *** [drivers/message/fusion] Error 2
> make[1]: *** [drivers/message] Error 2
>
> sparc64 does not have CONFIG_PM defined, and mptscsih_resume
> is wrapped
> in an #ifdef CONFIG_PM in mptscsih.h. mptscsih_resume is only used in
> the mptspi_resume function in mptspi.c, and its only call is in the
> pci_driver struct (and that call is also #ifdef CONFIG_PM).
> In order to
> get the code to compile, I just needed to wrap the actual function in
> #ifdef CONFIG_PM, which is what this patch does. I can confirm that it
> gets the module building again without errors.
>
> Signed-off-by: Tom "spot" Callaway <tcallawa@redhat.com>
>
> --- linux-2.6.16-sparc64/drivers/message/fusion/mptspi.c.BAD
> +++ linux-2.6.16-sparc64/drivers/message/fusion/mptspi.c
> @@ -831,6 +831,7 @@
> return rc;
> }
>
> +#ifdef CONFIG_PM
> /*
> * spi module resume handler
> */
> @@ -846,6 +847,7 @@
>
> return rc;
> }
> +#endif
>
ACK, James pls apply to your scsi-misc tree.
Eric Moore
LSI Logic
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Build mptspi.c on architectures where CONFIG_PM is unset
2006-06-14 23:16 Moore, Eric
@ 2006-06-14 23:47 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2006-06-14 23:47 UTC (permalink / raw)
To: Eric.Moore; +Cc: tcallawa, linux-scsi, sparclinux, James.Bottomley
From: "Moore, Eric" <Eric.Moore@lsil.com>
Date: Wed, 14 Jun 2006 17:16:27 -0600
> ACK, James pls apply to your scsi-misc tree.
Don't bother, I already pushed this fix into Linus's tree. :-)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-06-14 23:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-03 14:36 [PATCH] Build mptspi.c on architectures where CONFIG_PM is unset Tom 'spot' Callaway
2006-06-10 0:00 ` David Miller
-- strict thread matches above, loose matches on Subject: below --
2006-06-14 23:16 Moore, Eric
2006-06-14 23:47 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox