diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-06-10 09:52:33 -0500 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-06-10 09:52:33 -0500 |
| commit | 21fa5d311c17c9fcfafa635ef5e75ee4e538c19e (patch) | |
| tree | 39ee1eebd01ee0ca518ed83d08541eec8e4a7fe3 | |
| parent | 997b557cc9cfcb03b63bfea6c775731136aa337b (diff) | |
kbuild: Fix unaligned access in sanity check
fixdep does a sanity check to make sure that it got endianness
and sizeof(int) right. As opposed to the main loops, this sanity
check forgot to ensure proper alignment.
| -rw-r--r-- | scripts/fixdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/fixdep.c b/scripts/fixdep.c index 340b64036111..b5d7bee8efc7 100644 --- a/scripts/fixdep.c +++ b/scripts/fixdep.c @@ -348,7 +348,7 @@ void print_deps(void) void traps(void) { - char *test = "CONF"; + static char test[] __attribute__((aligned(sizeof(int)))) = "CONF"; if (*(int *)test != INT_CONF) { fprintf(stderr, "fixdep: sizeof(int) != 4 or wrong endianess? %#x\n", |
