diff options
author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | 2005-09-21 18:40:29 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-21 16:16:30 -0700 |
commit | a46c9047642d70f5619e4a14129d74dd1f6ea74f (patch) | |
tree | 1d0850d57ad6c3d109c700c071e7cd468306a1e8 /arch/um | |
parent | ae756df8ddd00a30bb3bdf6774b514c096dda4a4 (diff) | |
download | kernel_samsung_espresso10-a46c9047642d70f5619e4a14129d74dd1f6ea74f.zip kernel_samsung_espresso10-a46c9047642d70f5619e4a14129d74dd1f6ea74f.tar.gz kernel_samsung_espresso10-a46c9047642d70f5619e4a14129d74dd1f6ea74f.tar.bz2 |
[PATCH] uml: comment about cast build fix
Explain why the casting we do to silence this warning is indeed safe.
It is because the field we're casting from, though being 64-bit wide, was filled
with a pointer in first place by ourselves.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/os-Linux/aio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/os-Linux/aio.c b/arch/um/os-Linux/aio.c index 298d563..f6e6402 100644 --- a/arch/um/os-Linux/aio.c +++ b/arch/um/os-Linux/aio.c @@ -144,6 +144,7 @@ static int aio_thread(void *arg) "errno = %d\n", errno); } else { + /* This is safe as we've just a pointer here. */ aio = (struct aio_context *) (long) event.data; if(update_aio(aio, event.res)){ do_aio(ctx, aio); |