From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 9FBB8B71B0 for ; Wed, 17 Jun 2009 11:39:54 +1000 (EST) Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F1EB1DDD1C for ; Wed, 17 Jun 2009 11:39:53 +1000 (EST) Subject: Warning in block code From: Benjamin Herrenschmidt To: Jens Axboe Content-Type: text/plain; charset="UTF-8" Date: Wed, 17 Jun 2009 11:39:43 +1000 Message-Id: <1245202783.21602.5.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.