linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ahci: Fix build breakage
@ 2009-01-28  5:02 Kumar Gala
  2009-01-28  5:02 ` [PATCH] ata_piix: " Kumar Gala
  2009-01-28  6:09 ` [PATCH] ahci: " Kumar Gala
  0 siblings, 2 replies; 8+ messages in thread
From: Kumar Gala @ 2009-01-28  5:02 UTC (permalink / raw)
  To: jeff; +Cc: Linus Torvalds, linux-kernel, linux-ide, rjw

The following commit introduces:

commit 1fd684346d41f6be2487c161f60d03a7feb68911
Author: Rafael J. Wysocki <rjw@sisk.pl>
Date:   Mon Jan 19 20:57:36 2009 +0100

    SATA AHCI: Blacklist system that spins off disks during ACPI power off

the following errors on non-x86 systems:

drivers/ata/ahci.c: In function 'ahci_broken_system_poweroff':
drivers/ata/ahci.c:2566: error: implicit declaration of function 'dmi_first_match'
drivers/ata/ahci.c:2566: warning: initialization makes pointer from integer without a cast

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 drivers/ata/ahci.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 77bba4c..2c84f53 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -2550,6 +2550,7 @@ static void ahci_p5wdh_workaround(struct ata_host *host)
 
 static bool ahci_broken_system_poweroff(struct pci_dev *pdev)
 {
+#ifdef CONFIG_DMI
 	static const struct dmi_system_id broken_systems[] = {
 		{
 			.ident = "HP Compaq nx6310",
@@ -2570,6 +2571,7 @@ static bool ahci_broken_system_poweroff(struct pci_dev *pdev)
 		/* apply the quirk only to on-board controllers */
 		return slot == PCI_SLOT(pdev->devfn);
 	}
+#endif
 
 	return false;
 }
-- 
1.5.6.6


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

end of thread, other threads:[~2009-01-28 23:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-28  5:02 [PATCH] ahci: Fix build breakage Kumar Gala
2009-01-28  5:02 ` [PATCH] ata_piix: " Kumar Gala
2009-01-28  5:02   ` [PATCH] sata_sil: " Kumar Gala
2009-01-28  6:08     ` Kumar Gala
2009-01-28 23:30       ` Alexander Beregalov
2009-01-28  6:08   ` [PATCH] ata_piix: " Kumar Gala
2009-01-28  6:08   ` Kumar Gala
2009-01-28  6:09 ` [PATCH] ahci: " Kumar Gala

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