linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Weikang Shi <swkhack@gmail.com>
To: akpm@linux-foundation.org
Cc: alexander.h.duyck@intel.com, mhocko@suse.com, vbabka@suse.cz,
	mgorman@suse.de, l.stach@pengutronix.de, vdavydov.dev@gmail.com,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	my_email@gmail.com, Weikang Shi <swkhack@gmail.com>
Subject: [PATCH] fs: fix local var type
Date: Thu, 23 Aug 2018 01:59:14 -0700	[thread overview]
Message-ID: <1535014754-31918-1-git-send-email-swkhack@gmail.com> (raw)

In the seq_hex_dump function,the remaining variable is int, but it receive a type of size_t argument.
So I change the type of remaining

Signed-off-by: Weikang Shi <swkhack@gmail.com>
---
 fs/seq_file.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/seq_file.c b/fs/seq_file.c
index 1dea7a8..d0e8bec 100644
--- a/fs/seq_file.c
+++ b/fs/seq_file.c
@@ -847,7 +847,8 @@ void seq_hex_dump(struct seq_file *m, const char *prefix_str, int prefix_type,
 		  bool ascii)
 {
 	const u8 *ptr = buf;
-	int i, linelen, remaining = len;
+	int i, linelen;
+	size_t remaining = len;
 	char *buffer;
 	size_t size;
 	int ret;
-- 
2.7.4

             reply	other threads:[~2018-08-23  8:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-23  8:59 Weikang Shi [this message]
2018-08-23 11:13 ` [PATCH] fs: fix local var type Michal Hocko
2018-08-23 11:23   ` David Laight
2018-08-23 11:58 ` kbuild test robot
2018-08-24  5:32 ` kbuild test robot

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=1535014754-31918-1-git-send-email-swkhack@gmail.com \
    --to=swkhack@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=alexander.h.duyck@intel.com \
    --cc=l.stach@pengutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mgorman@suse.de \
    --cc=mhocko@suse.com \
    --cc=my_email@gmail.com \
    --cc=vbabka@suse.cz \
    --cc=vdavydov.dev@gmail.com \
    /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).