linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@dilger.ca>
To: tytso@mit.edu
Cc: linux-ext4@vger.kernel.org, Andreas Dilger <adilger@dilger.ca>
Subject: [PATCH] misc: fix minor llvm warnings
Date: Sun, 24 Jan 2021 16:20:06 -0700	[thread overview]
Message-ID: <20210124232006.13832-1-adilger@dilger.ca> (raw)

Fix a couple minor type mismatch warnings.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
---
 debugfs/logdump.c | 2 +-
 lib/ext2fs/link.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debugfs/logdump.c b/debugfs/logdump.c
index a94043f3..354bc969 100644
--- a/debugfs/logdump.c
+++ b/debugfs/logdump.c
@@ -536,7 +536,7 @@ static void dump_fc_block(FILE *out_file, char *buf, int blocksize,
 				(struct ext4_fc_add_range *)ext4_fc_tag_val(tl);
 			ex = (struct ext3_extent *)add_range->fc_ex;
 			fprintf(out_file,
-				"tag %s, inode %d, lblk %lu, pblk %llu, len %lu\n",
+				"tag %s, inode %d, lblk %u, pblk %llu, len %lu\n",
 				tag2str(tl->fc_tag),
 				le32_to_cpu(add_range->fc_ino),
 				le32_to_cpu(ex->ee_block),
diff --git a/lib/ext2fs/link.c b/lib/ext2fs/link.c
index 469eea8c..4160ac65 100644
--- a/lib/ext2fs/link.c
+++ b/lib/ext2fs/link.c
@@ -381,7 +381,7 @@ static errcode_t dx_split_leaf(ext2_filsys fs, ext2_ino_t dir,
 	struct ext2_dir_entry *de;
 	void *buf2;
 	errcode_t retval = 0;
-	int rec_len;
+	unsigned int rec_len;
 	int offset, move_size;
 	int i, count = 0;
 	struct dx_hash_map *map;
-- 
2.25.1


                 reply	other threads:[~2021-01-24 23:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20210124232006.13832-1-adilger@dilger.ca \
    --to=adilger@dilger.ca \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).