Re: [PATCH] x86: Remove readq()/writeq() on 32-bit

From: Jeff Garzik
Date: Wed May 13 2009 - 20:50:20 EST


H. Peter Anvin wrote:
Jeff Garzik wrote:
Judging from this thread and past, I think people will continue to complain and get confused, even with the above.


Do you really think so? Seems unfortunate, since an API rename would be
way more invasive. This is the entirety of the header patch
(compile-tested using 32-bit allyesconfig).

The header patch does not lessen the confusion, because you cannot look at the code and immediately tell what is going on...

Having a single function's behavior change based on #include selection is /not/ intuitive at all, particularly for driver writers. That is unlike almost every other Linux API, where functions' behavior stays constant across platforms, regardless of magic "under the hood."

That sort of trick is reserved for arch maintainers who know what they are doing :)

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/