Re: [PATCH 2.4] the perils of kunmap_atomic

From: Jeff Garzik
Date: Wed Oct 27 2004 - 23:23:27 EST


Nigel Cunningham wrote:
DEBUG_HIGHMEM under 2.4). It would be good if any patch produced a
warning if you call kunmap_atomic with the wrong kind of parameter.


Well, the compiler has a rather difficult time with that, since any kernel address is going to be void*, which C will nicely cast struct page* into.

Jeff


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