[PATCH] MTD: Fix MEMGETINFO and MEMGETREGIONINFO for devices >= 4GB

Artem Bityutskiy dedekind1 at gmail.com
Sun Oct 11 08:40:42 EDT 2009


On Wed, 2009-10-07 at 10:26 +0200, Felix Radensky wrote:
> Currently MEMGETINFO and MEMGETREGIONINFO report invalid
> information for devices >= 4GB, since relevant fields in
> MTD ABI structures are 32-bit while corresponding fields
> in kernel internal structures are 64-bit. Fix ABI fields
> to be 64-bit as well.
> 
> Signed-off-by: Felix Radensky <felix at embedded-sol.com>
> ---
>  include/mtd/mtd-abi.h |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Nack. As it was discussed several times, you cannot change these data
structure because you will break binary compatibility.

New ioctls is the way out.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list