All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frederik Deweerdt <deweerdt@free.fr>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org
Subject: [-mm patch] fix getblk_slow "integer constant is too large" warning
Date: Tue, 6 Nov 2007 14:17:22 +0100	[thread overview]
Message-ID: <20071106131722.GE21227@slug> (raw)
In-Reply-To: <200711061033.lA6AXrhT018804@imap1.linux-foundation.org>

On Tue, Nov 06, 2007 at 02:33:53AM -0800, akpm@linux-foundation.org wrote:
> The mm snapshot broken-out-2007-11-06-02-32.tar.gz has been uploaded to
> 
>    ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/mm/broken-out-2007-11-06-02-32.tar.gz
> 
> It contains the following patches against 2.6.24-rc1:
> 
[...]
> getblk-handle-2tb-devices.patch
[...]
0xffffffff00000000 is unsigned long long on 32 bits
fs/buffer.c: In function '__getblk_slow':
fs/buffer.c:1126: warning: integer constant is too large for 'unsigned long' type

Regards,
Frederik

Signed-off-by: Frederik Deweerdt <frederik.deweerdt@gmail.com>


diff --git a/fs/buffer.c b/fs/buffer.c
index ca713df..795fe86 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -1123,7 +1123,7 @@ __getblk_slow(struct block_device *bdev, sector_t block, int size)
 
 #if (BITS_PER_LONG == 32) && defined(CONFIG_LBD)
 	if ((block >> (PAGE_CACHE_SHIFT - bdev->bd_inode->i_blkbits)) &
-			0xffffffff00000000UL) {
+			0xffffffff00000000ULL) {
 		/*
 		 * We'll fail because the block is outside the range
 		 * which a 32-bit pagecache index can address

  parent reply	other threads:[~2007-11-06 13:18 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-06 10:33 mm snapshot broken-out-2007-11-06-02-32.tar.gz uploaded akpm
2007-11-06 12:57 ` mm snapshot broken-out-2007-11-06-02-32.tar.gz uploaded - build fails on powerpc Kamalesh Babulal
2007-11-06 15:56   ` Badari Pulavarty
2007-11-06 13:17 ` Frederik Deweerdt [this message]
2007-11-06 13:51 ` mm snapshot broken-out-2007-11-06-02-32.tar.gz uploaded Gabriel C
2007-11-06 15:10 ` mm snapshot broken-out-2007-11-06-02-32.tar.gz uploaded - S390x build fails Kamalesh Babulal
2007-11-06 15:29   ` Cornelia Huck
2007-11-06 16:42     ` Cornelia Huck
2007-11-06 19:58       ` Kamalesh Babulal
2007-11-06 19:58         ` Kamalesh Babulal
2007-11-06 21:10   ` Andrew Morton
2007-11-06 21:13     ` Greg KH
2007-11-06 22:33       ` Andrew Morton
2007-11-06 21:39         ` Greg KH
2007-11-06 15:34 ` mm snapshot broken-out-2007-11-06-02-32.tar.gz uploaded - build failure - rpadlpar_sysfs Kamalesh Babulal
2007-11-06 18:19   ` Badari Pulavarty
2007-11-06 19:46     ` Kamalesh Babulal
2007-11-06 21:05     ` Greg KH
2007-11-06 19:31   ` Greg KH
2007-11-06 19:39   ` Greg KH
2007-11-06 16:51 ` [BUG] mm snapshot broken-out-2007-11-06-02-32.tar.gz - soft lockup Kamalesh Babulal
2007-11-06 17:16   ` Balbir Singh
2007-11-06 17:27 ` [BUG] mm snapshot broken-out-2007-11-06-02-32 - kernel oops Kamalesh Babulal
2007-11-06 18:17 ` mm snapshot broken-out-2007-11-06-02-32 - powerpc link failure Kamalesh Babulal
2007-11-06 19:00   ` Badari Pulavarty
2007-11-06 18:36 ` mm snapshot broken-out-2007-11-06-02-32.tar.gz uploaded Badari Pulavarty
2007-11-06 19:46   ` Greg KH
2007-11-06 19:32 ` Badari Pulavarty
2007-11-06 21:17   ` Greg KH
2007-11-06 20:14 ` Gabriel C
2007-11-06 21:40   ` Andrew Morton
2007-11-06 21:07     ` Greg KH
2007-11-06 22:15       ` Andrew Morton
2007-11-06 21:33         ` Greg KH
2007-11-06 22:41           ` Andrew Morton
2007-11-06 21:51             ` Greg KH
2007-11-12 20:17       ` Serge E. Hallyn
2007-11-16 20:57         ` Greg KH
2007-11-06 21:40 ` mm snapshot broken-out-2007-11-06-02-32 - ACPI functions broken Kamalesh Babulal
2007-11-07 12:29   ` Jean Delvare
2007-11-07 17:13     ` Kamalesh Babulal
2007-11-07 18:37 ` mm snapshot broken-out-2007-11-06-02-32 build failure init/do_mount Kamalesh Babulal
2007-11-07 20:39   ` Greg KH
2007-11-07 19:52 ` mm snapshot broken-out-2007-11-06-02-32 powerpc - axon_msi build faliure Kamalesh Babulal
2007-11-07 20:28   ` Benjamin Herrenschmidt
2007-11-07 20:35     ` Kamalesh Babulal
2007-11-07 19:56 ` mm snapshot broken-out-2007-11-06-02-32 build failure !CONFIG_PCI Kamalesh Babulal
2007-11-07 21:15   ` [PATCH] chipsfb: uses/depends on PCI Randy Dunlap
2007-11-07 20:42 ` mm snapshot broken-out-2007-11-06-02-32 make header check fails Kamalesh Babulal
2007-11-07 21:55   ` Andrew Morton
2007-11-07 20:57 ` mm snapshot broken-out-2007-11-06-02-32 build failure - !CONFIG_PPC_ISERIES Kamalesh Babulal
2007-11-07 20:57   ` Kamalesh Babulal
2007-11-08  2:27   ` Tony Breeds
2007-11-08  2:27     ` Tony Breeds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071106131722.GE21227@slug \
    --to=deweerdt@free.fr \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.