Re: [PATCH] Kill a sparse warning in binfmt_elf.c

From: Arun Sharma
Date: Thu Oct 07 2004 - 14:26:44 EST


On 10/7/2004 11:54 AM, Valdis.Kletnieks@xxxxxx wrote:

And then go find the callers and make sure what they're passing is a
'const char __user *' rather than a 'const void *'....

Many callers in binfmt_elf.c are passing pointers that are kernel addresses. But file_operations->write() is expecting a __user pointer. The intention of the cast is to explicitly say that's an okay thing to do.

-Arun

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/