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

Configure Feed

Select the types of activity you want to include in your feed.

dmi: Fix build breakage

Commit d7b1956fed33d30c4815e848fd7a143722916868 ("DMI: Introduce
dmi_first_match to make the interface more flexible") introduced compile
errors like the following when !CONFIG_DMI

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

We just need a dummy version of dmi_first_match() to fix this all up.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kumar Gala and committed by
Linus Torvalds
d8204ee2 30b23634

+2
+2
include/linux/dmi.h
··· 65 65 { return -1; } 66 66 static inline bool dmi_match(enum dmi_field f, const char *str) 67 67 { return false; } 68 + static inline const struct dmi_system_id * 69 + dmi_first_match(const struct dmi_system_id *list) { return NULL; } 68 70 69 71 #endif 70 72