build: quiet build warnings for "gcc -Wall"

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
Andreas Dilger 2013-01-22 16:32:29 -07:00 committed by Theodore Ts'o
parent fca8b1b241
commit 1b8c4c1b45
4 changed files with 3 additions and 7 deletions

View File

@ -595,7 +595,7 @@ static int do_one_pass(journal_t *journal,
success = -EIO;
printk(KERN_ERR "JBD: Invalid "
"checksum recovering "
"block %ld in log\n",
"block %lld in log\n",
blocknr);
continue;
}

View File

@ -113,10 +113,8 @@ static errcode_t ext2fs_ext_attr_block_csum(ext2_filsys fs, ext2_ino_t inum,
struct ext2_ext_attr_header *hdr,
__u32 *crc)
{
errcode_t retval;
char *buf = (char *)hdr;
__u32 gen, old_crc = hdr->h_checksum;
struct ext2_inode inode;
__u32 old_crc = hdr->h_checksum;
hdr->h_checksum = 0;
block = ext2fs_cpu_to_le64(block);

View File

@ -95,7 +95,6 @@ static errcode_t create_icache(ext2_filsys fs)
{
int i;
errcode_t retval;
void *p;
if (fs->icache)
return 0;

View File

@ -768,9 +768,8 @@ static void disable_uninit_bg(ext2_filsys fs, __u32 csum_feature_flag)
static int update_feature_set(ext2_filsys fs, char *features)
{
struct ext2_super_block *sb = fs->super;
struct ext2_group_desc *gd;
__u32 old_features[3];
int i, type_err;
int type_err;
unsigned int mask_err;
#define FEATURE_ON(type, mask) (!(old_features[(type)] & (mask)) && \