The patch titled kbuild: fix a compile warning has been added to the -mm tree. Its filename is kbuild-fix-a-compile-warning.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: kbuild: fix a compile warning From: Amerigo Wang <amwang@xxxxxxxxxx> HOSTCC scripts/basic/fixdep scripts/basic/fixdep.c: In function 'traps': scripts/basic/fixdep.c:377: warning: dereferencing type-punned pointer will break strict-aliasing rules scripts/basic/fixdep.c:379: warning: dereferencing type-punned pointer will break strict-aliasing rules Signed-off-by: WANG Cong <amwang@xxxxxxxxxx> Cc: Sam Ravnborg <sam@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/basic/fixdep.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -puN scripts/basic/fixdep.c~kbuild-fix-a-compile-warning scripts/basic/fixdep.c --- a/scripts/basic/fixdep.c~kbuild-fix-a-compile-warning +++ a/scripts/basic/fixdep.c @@ -373,10 +373,11 @@ void print_deps(void) void traps(void) { static char test[] __attribute__((aligned(sizeof(int)))) = "CONF"; + int *p = (int *)test; - if (*(int *)test != INT_CONF) { + if (*p != INT_CONF) { fprintf(stderr, "fixdep: sizeof(int) != 4 or wrong endianess? %#x\n", - *(int *)test); + *p); exit(2); } } _ Patches currently in -mm which might be from amwang@xxxxxxxxxx are kbuild-fix-a-compile-warning.patch uml-fix-a-section-warning.patch uml-bad-macro-expansion-parameter-is-member.patch proc-merge-arrayc-into-basec.patch proc-merge-arrayc-into-basec-checkpatch-fixes.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html