Commit 21fa5d31 authored by Kai Germaschewski's avatar Kai Germaschewski

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.
parent 997b557c
......@@ -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",
......
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