lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 03 Jul 2009 09:34:37 +0900
From:	Akira Fujita <a-fujita@...jp.nec.com>
To:	Theodore Tso <tytso@....edu>, linux-ext4@...r.kernel.org
Subject: [PATCH]ext4: Fix compile warnings with MB_DEBUG

When MB_DEBUG is enabled, we get some compile warnings
because ext4_group_t is unsigned int.
This patch fixes them.

  CC      fs/ext4/mballoc.o
fs/ext4/mballoc.c: In function ‘ext4_mb_init_group’:
fs/ext4/mballoc.c:1847: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 2 has type ‘ext4_group_t’
fs/ext4/mballoc.c: In function ‘ext4_mb_show_ac’:
fs/ext4/mballoc.c:4131: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 2 has type ‘ext4_group_t’
fs/ext4/mballoc.c:4138: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 2 has type ‘ext4_group_t’

Signed-off-by Akira Fujita <a-fujita@...jp.nec.com>
---
 mballoc.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff -Nrup -X linux-2.6.31-rc1-a/Documentation/dontdiff linux-2.6.31-rc1-a/fs/ext4/mballoc.c linux-2.6.31-rc1-b/fs/ext4/mballoc.c
--- linux-2.6.31-rc1-a/fs/ext4/mballoc.c        2009-06-25 08:25:37.000000000 +0900
+++ linux-2.6.31-rc1-b/fs/ext4/mballoc.c        2009-07-03 08:51:30.000000000 +0900
@@ -1844,7 +1844,7 @@ static int ext4_mb_init_group(struct sup
        struct inode *inode = sbi->s_buddy_cache;
        struct page *page = NULL, *bitmap_page = NULL;

-       mb_debug("init group %lu\n", group);
+       mb_debug("init group %u\n", group);
        blocks_per_page = PAGE_CACHE_SIZE / sb->s_blocksize;
        this_grp = ext4_get_group_info(sb, group);
        /*
@@ -4127,14 +4127,14 @@ static void ext4_mb_show_ac(struct ext4_
                        ext4_get_group_no_and_offset(sb, pa->pa_pstart,
                                                     NULL, &start);
                        spin_unlock(&pa->pa_lock);
-                       printk(KERN_ERR "PA:%lu:%d:%u \n", i,
+                       printk(KERN_ERR "PA:%u:%d:%u \n", i,
                                                        start, pa->pa_len);
                }
                ext4_unlock_group(sb, i);

                if (grp->bb_free == 0)
                        continue;
-               printk(KERN_ERR "%lu: %d/%d \n",
+               printk(KERN_ERR "%u: %d/%d \n",
                       i, grp->bb_free, grp->bb_fragments);
        }
        printk(KERN_ERR "\n");
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ