* [merged] kbuild-fix-a-compile-warning.patch removed from -mm tree
@ 2009-06-15 19:01 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2009-06-15 19:01 UTC (permalink / raw)
To: amwang, sam, mm-commits
The patch titled
kbuild: fix a compile warning
has been removed from the -mm tree. Its filename was
kbuild-fix-a-compile-warning.patch
This patch was dropped because it was merged into mainline or a subsystem tree
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: kbuild: fix a compile warning
From: Amerigo Wang <amwang@redhat.com>
gcc-4.4.1:
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
(Apparently -fno-strict-aliasing will fix this too)
Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
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@redhat.com are
origin.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-15 19:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-15 19:01 [merged] kbuild-fix-a-compile-warning.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.