• Mingming's avatar
    ext4: Compile warning fix when EXT_DEBUG enabled · 84fe3bef
    Mingming authored
    When EXT_DEBUG is enabled I received the following compile warning on
    PPC64:
    
      CC [M]  fs/ext4/inode.o
      CC [M]  fs/ext4/extents.o
    fs/ext4/extents.c: In function ‘ext4_ext_rm_leaf’:
    fs/ext4/extents.c:2097: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 2 has type ‘ext4_lblk_t’
    fs/ext4/extents.c: In function ‘ext4_ext_get_blocks’:
    fs/ext4/extents.c:2789: warning: format ‘%u’ expects type ‘unsigned int’, but argument 4 has type ‘long unsigned int’
    fs/ext4/extents.c:2852: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘ext4_lblk_t’
    fs/ext4/extents.c:2953: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 4 has type ‘unsigned int’
      CC [M]  fs/ext4/migrate.o
    
    The patch fixes compile warning.
    Signed-off-by: default avatarMingming Cao <cmm@us.ibm.com>
    Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
    
    Index: linux-2.6.31-rc4/fs/ext4/extents.c
    ===================================================================
    84fe3bef
extents.c 84.6 KB