linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs: fix local var type
@ 2018-08-23  8:59 Weikang Shi
  2018-08-23 11:13 ` Michal Hocko
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Weikang Shi @ 2018-08-23  8:59 UTC (permalink / raw)
  To: akpm
  Cc: alexander.h.duyck, mhocko, vbabka, mgorman, l.stach, vdavydov.dev,
	linux-mm, linux-kernel, my_email, Weikang Shi

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-24  5:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-23  8:59 [PATCH] fs: fix local var type Weikang Shi
2018-08-23 11:13 ` 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

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).