]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/mod_devicetable.h
Fix longstanding "error: storage size of '__mod_dmi_device_table' isn't known"
[linux-2.6-omap-h63xx.git] / include / linux / mod_devicetable.h
index 97b91d1abb433e39ced31566b7d160d46719b66e..fde86671f48f380ed6205eb0c66dcf7aec17fd2c 100644 (file)
@@ -443,6 +443,13 @@ struct dmi_system_id {
        struct dmi_strmatch matches[4];
        void *driver_data;
 };
+/*
+ * struct dmi_device_id appears during expansion of
+ * "MODULE_DEVICE_TABLE(dmi, x)". Compiler doesn't look inside it
+ * but this is enough for gcc 3.4.6 to error out:
+ *     error: storage size of '__mod_dmi_device_table' isn't known
+ */
+#define dmi_device_id dmi_system_id
 #endif
 
 #define DMI_MATCH(a, b)        { a, b }