[PATCH] [MTD] include/linux/mtd/blktrans.h: fix wrong #blocks value reported by /proc/partitions

Artem Bityutskiy dedekind1 at gmail.com
Mon Jul 26 00:45:34 EDT 2010


On Mon, 2010-07-26 at 07:40 +0300, Artem Bityutskiy wrote:
> On Thu, 2010-07-22 at 17:34 +0800, Dong, Chuanxiao wrote:
> > Hi
> > I found /proc/partitions file will report a wrong block numbers when I use a 8G
> > NAND which has a larger than 4G partition. So here is a patch to fix this problem.
> > Details are in below comments.
> > Please review it.
> > Thanks all.
> 
> Pushed to l2-mtd-2.6.git / master, thanks.

Umm, no, kicked out. It introduces warnings:

drivers/mtd/inftlcore.c: In function ‘inftl_add_mtd’:
drivers/mtd/inftlcore.c:112: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 2 has type ‘uint64_t’
  CC [M]  drivers/mtd/nftlcore.o
  CC [M]  drivers/mtd/nftlmount.o
drivers/mtd/nftlcore.c: In function ‘nftl_add_mtd’:
drivers/mtd/nftlcore.c:101: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 2 has type ‘uint64_t’

Please, use 'unsigned long long' and %llx modifiers in the prints.

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





More information about the linux-mtd mailing list