Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40413dcb authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds
Browse files

Fix longstanding "error: storage size of '__mod_dmi_device_table' isn't known"



gcc 3.4.6 doesn't like MODULE_DEVICE_TABLE(dmi, x) expansion enough to
error out.  Shut it up in a most simple way.

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 490a8d70
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -443,6 +443,13 @@ struct dmi_system_id {
	struct dmi_strmatch matches[4];
	struct dmi_strmatch matches[4];
	void *driver_data;
	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
#endif


#define DMI_MATCH(a, b)	{ a, b }
#define DMI_MATCH(a, b)	{ a, b }