public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
From: Pete <greg.petr@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: [PATCH] fs/jfs/super.c: Fix compile warning - 'comparison of
Date: Tue, 03 Nov 2009 05:36:09 +0000	[thread overview]
Message-ID: <1257225849.9793.35.camel@linux-k65f.site> (raw)

Hi,

Found a compile warning on linux-next:

fs/jfs/super.c: In function ‘jfs_fill_super’:
fs/jfs/super.c:527: warning: comparison of distinct pointer types lacks
a cast

and the corresponding fix::

Signed-off-by: Greg Petr <greg.petr@gmail.com>

diff --git a/fs/jfs/super.c b/fs/jfs/super.c
index 2234c73..3d8dbab 100644
--- a/fs/jfs/super.c
+++ b/fs/jfs/super.c
@@ -524,7 +524,8 @@ static int jfs_fill_super(struct super_block *sb,
void *data, int silent)
 	 * Page cache is indexed by long.
 	 * I would use MAX_LFS_FILESIZE, but it's only half as big
 	 */
-	sb->s_maxbytes = min(((u64) PAGE_CACHE_SIZE << 32) - 1,
sb->s_maxbytes);
+	 sb->s_maxbytes = min(((u64) PAGE_CACHE_SIZE << 32) - 1,
+				(u64)sb->s_maxbytes);
 #endif
 	sb->s_time_gran = 1;
 	return 0;

Regards.



                 reply	other threads:[~2009-11-03  5:36 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=1257225849.9793.35.camel@linux-k65f.site \
    --to=greg.petr@gmail.com \
    --cc=kernel-janitors@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox