* [Bug 6537] New: #ifdef CONFIG_PM causes MPT to not compile
@ 2006-05-12 14:58 Martin J. Bligh
2006-05-12 16:45 ` Alexey Dobriyan
0 siblings, 1 reply; 3+ messages in thread
From: Martin J. Bligh @ 2006-05-12 14:58 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: bill
http://bugzilla.kernel.org/show_bug.cgi?id=6537
Summary: #ifdef CONFIG_PM causes MPT to not compile
Kernel Version: 2.6.17-rc4
Status: NEW
Severity: blocking
Owner: io_other@kernel-bugs.osdl.org
Submitter: bill@crowellsystems.com
Most recent kernel where this bug did not occur: 2.6.17-rc3
Distribution: slack
Hardware Environment: i386
Software Environment: gcc 3.3
Problem Description: /drivers/message/fusion/mpt* using #ifdef CONFIG_PM
are not
exporting the mpt_suspend mpt_resume. I do not know why we would want to
exercise power management on high-performance scsi controllers in the first
place. LSI controllers are server devices.
Steps to reproduce: compile the kernel. causes a kernel compilation failure.
Steps to fix:
comment out the #ifdef CONFIG_pm and corresponding #endif to disable this
compilation flag. recompile and the world is happy.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bug 6537] New: #ifdef CONFIG_PM causes MPT to not compile
2006-05-12 14:58 [Bug 6537] New: #ifdef CONFIG_PM causes MPT to not compile Martin J. Bligh
@ 2006-05-12 16:45 ` Alexey Dobriyan
0 siblings, 0 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2006-05-12 16:45 UTC (permalink / raw)
To: Martin J. Bligh; +Cc: linux-kernel, bill, bugme-daemon, Eric Moore
On Fri, May 12, 2006 at 07:58:54AM -0700, Martin J. Bligh wrote:
> Problem Description: /drivers/message/fusion/mpt* using #ifdef CONFIG_PM
> are not exporting the mpt_suspend mpt_resume.
> Steps to reproduce: compile the kernel. causes a kernel compilation failure.
>
> Steps to fix:
> comment out the #ifdef CONFIG_pm and corresponding #endif to disable this
> compilation flag. recompile and the world is happy.
This patch fixes your anonymous compilation problems?
[PATCH] mptspi: fix compilation with CONFIG_PM=n
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
--- a/drivers/message/fusion/mptspi.c
+++ b/drivers/message/fusion/mptspi.c
@@ -831,6 +831,7 @@ mptspi_ioc_reset(MPT_ADAPTER *ioc, int r
return rc;
}
+#ifdef CONFIG_PM
/*
* spi module resume handler
*/
@@ -846,6 +847,7 @@ mptspi_resume(struct pci_dev *pdev)
return rc;
}
+#endif
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [Bug 6537] New: #ifdef CONFIG_PM causes MPT to not compile
@ 2006-05-12 22:10 Moore, Eric
0 siblings, 0 replies; 3+ messages in thread
From: Moore, Eric @ 2006-05-12 22:10 UTC (permalink / raw)
To: Alexey Dobriyan, Martin J. Bligh; +Cc: linux-kernel, bill, bugme-daemon
On Friday, May 12, 2006 10:46 AM, Alexey Dobriyan wrote:
> This patch fixes your anonymous compilation problems?
>
> [PATCH] mptspi: fix compilation with CONFIG_PM=n
>
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
>
> --- a/drivers/message/fusion/mptspi.c
> +++ b/drivers/message/fusion/mptspi.c
> @@ -831,6 +831,7 @@ mptspi_ioc_reset(MPT_ADAPTER *ioc, int r
> return rc;
> }
>
> +#ifdef CONFIG_PM
> /*
> * spi module resume handler
> */
> @@ -846,6 +847,7 @@ mptspi_resume(struct pci_dev *pdev)
>
> return rc;
> }
> +#endif
>
ACK
Alex, thanks. Can you post this patch over on the linux-scsi@ list, and
copy James Bottomley?
Thankyou,
Eric Moore
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-05-12 22:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-12 14:58 [Bug 6537] New: #ifdef CONFIG_PM causes MPT to not compile Martin J. Bligh
2006-05-12 16:45 ` Alexey Dobriyan
-- strict thread matches above, loose matches on Subject: below --
2006-05-12 22:10 Moore, Eric
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox