Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sata_sil: Fix build breakage

Commit e57db7b (SATA Sil: Blacklist system that spins off disks during ACPI power off)
breaks build like the following, in both cases when CONFIG_DMI set or not.

drivers/ata/sata_sil.c: In function 'sil_broken_system_poweroff':
drivers/ata/sata_sil.c:713: error: implicit declaration of function 'dmi_first_match'
drivers/ata/sata_sil.c:713: warning: initialization makes pointer from integer without a cast

sata_sil.c should include dmi.h

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Alexander Beregalov and committed by
Linus Torvalds
1737ef75 242f45da

+1
+1
drivers/ata/sata_sil.c
··· 44 44 #include <linux/device.h> 45 45 #include <scsi/scsi_host.h> 46 46 #include <linux/libata.h> 47 + #include <linux/dmi.h> 47 48 48 49 #define DRV_NAME "sata_sil" 49 50 #define DRV_VERSION "2.4"