Commit e7ee0535 authored by Jean Tourrilhes's avatar Jean Tourrilhes Committed by Linus Torvalds

[IrDA] struct check

		<Suggested by Russell King>
	o [FEATURE] Add struct size check for buggy compilers
parent e8b7f906
......@@ -79,6 +79,13 @@ int irlap_proc_read(char *, char **, off_t, int);
int __init irlap_init(void)
{
/* Check if the compiler did its job properly.
* May happen on some ARM configuration, check with Russell King. */
ASSERT(sizeof(struct xid_frame) == 14, ;);
ASSERT(sizeof(struct test_frame) == 10, ;);
ASSERT(sizeof(struct ua_frame) == 10, ;);
ASSERT(sizeof(struct snrm_frame) == 11, ;);
/* Allocate master array */
irlap = hashbin_new(HB_LOCK);
if (irlap == NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment