]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
dmi: Fix build breakage
authorKumar Gala <galak@kernel.crashing.org>
Wed, 28 Jan 2009 06:07:20 +0000 (00:07 -0600)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 28 Jan 2009 15:50:14 +0000 (07:50 -0800)
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>
include/linux/dmi.h

index aea23105d3ed4c8bad7e22a38f786c99f3e0f71a..d741b9ceb0e06ad75b032a9f3251ca038d98f5ac 100644 (file)
@@ -65,6 +65,8 @@ static inline int dmi_walk(void (*decode)(const struct dmi_header *))
        { return -1; }
 static inline bool dmi_match(enum dmi_field f, const char *str)
        { return false; }
+static inline const struct dmi_system_id *
+       dmi_first_match(const struct dmi_system_id *list) { return NULL; }
 
 #endif