[PATCH] uml: comment about cast build fix
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Wed, 21 Sep 2005 16:40:29 +0000 (18:40 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 21 Sep 2005 23:16:30 +0000 (16:16 -0700)
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>
arch/um/os-Linux/aio.c

index 298d5632128b8119d06f90c1639a559b0168d20e..f6e64026f9952b90d1af98625b152ef394c454e9 100644 (file)
@@ -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);