I've found an issue handling typedefs and alignment. In the appended code sparse things 'ptr' has to be aligned so the size of 'bar' is 1024. I haven't looked at how to fix this at all, I thought I would ask the experts for hints first. regards, dan carpenter #include <stdio.h> typedef struct aligned_struct { int a; } __attribute__ ((aligned(1024))) ali_t; struct foo { int b; ali_t *ptr; }; int mainx(void) { struct foo bar; printf("%d\n", sizeof(bar)); return 0; } -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html