Re: [PATCH 20/30] microblaze_mmu_v1: uaccess MMU update

From: Andrew Morton
Date: Wed Apr 29 2009 - 01:55:53 EST


On Mon, 27 Apr 2009 10:32:09 +0200 monstr@xxxxxxxxx wrote:

> +#define __clear_user(addr, n) (memset((void *)(addr), 0, (n)), 0)

__clear_user() already takes a void* argument, so the cast is hopefully
unneeded and undesirable. The same applies to many other
architectures. If someone is passing a non-pointer type to
__clear_user() then that's potentially a bad thing which we want to
know about.

IOW, someone screwed up and everyone copied it :(

--
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/