mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
[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>
This commit is contained in:
parent
ae756df8dd
commit
a46c904764
1 changed files with 1 additions and 0 deletions
|
@ -144,6 +144,7 @@ static int aio_thread(void *arg)
|
||||||
"errno = %d\n", errno);
|
"errno = %d\n", errno);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
/* This is safe as we've just a pointer here. */
|
||||||
aio = (struct aio_context *) (long) event.data;
|
aio = (struct aio_context *) (long) event.data;
|
||||||
if(update_aio(aio, event.res)){
|
if(update_aio(aio, event.res)){
|
||||||
do_aio(ctx, aio);
|
do_aio(ctx, aio);
|
||||||
|
|
Loading…
Reference in a new issue