Warning in block code

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Jun 17 11:39:43 EST 2009


Hoy !

I see that:

block/blk-settings.c: In function ‘blk_set_default_limits’:
block/blk-settings.c:115: warning: large integer implicitly truncated to unsigned type

Comes from

	lim->bounce_pfn = BLK_BOUNCE_ANY;

With BLK_BOUNCE_ANY being a

include/linux/blkdev.h:#define BLK_BOUNCE_ANY		(-1ULL)

And struct queue_limit.bounce_pfn is:
 
	unsigned long		bounce_pfn;

(The warning is fishy as both quantities are unsigned, but there -is- truncation
happening here).

Cheers,
Ben.




More information about the Linuxppc-dev mailing list