mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sohaib Mohamed <sohaib.amhmd@gmail.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Sohaib Mohamed <sohaib.amhmd@gmail.com>,
	Eric Van Hensbergen <ericvh@gmail.com>,
	Latchesar Ionkov <lucho@ionkov.net>,
	Dominique Martinet <asmadeus@codewreck.org>,
	v9fs-developer@lists.sourceforge.net,
	linux-kernel@vger.kernel.org
Subject: [PATCH] fs: 9p: cache.h: cleanup some format warning
Date: Thu, 30 Sep 2021 23:24:54 +0200	[thread overview]
Message-ID: <20210930212455.30047-1-sohaib.amhmd@gmail.com> (raw)

Warnings found by checkpatch.pl

Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
---
 fs/9p/cache.h | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/fs/9p/cache.h b/fs/9p/cache.h
index 00f107af443e..14fd222352f3 100644
--- a/fs/9p/cache.h
+++ b/fs/9p/cache.h
@@ -34,7 +34,7 @@ extern int __v9fs_readpage_from_fscache(struct inode *inode,
 extern int __v9fs_readpages_from_fscache(struct inode *inode,
 					 struct address_space *mapping,
 					 struct list_head *pages,
-					 unsigned *nr_pages);
+					 unsigned int *nr_pages);
 extern void __v9fs_readpage_to_fscache(struct inode *inode, struct page *page);
 extern void __v9fs_fscache_wait_on_page_write(struct inode *inode,
 					      struct page *page);
@@ -59,7 +59,7 @@ static inline int v9fs_readpage_from_fscache(struct inode *inode,
 static inline int v9fs_readpages_from_fscache(struct inode *inode,
 					      struct address_space *mapping,
 					      struct list_head *pages,
-					      unsigned *nr_pages)
+					      unsigned int *nr_pages)
 {
 	return __v9fs_readpages_from_fscache(inode, mapping, pages,
 					     nr_pages);
@@ -75,6 +75,7 @@ static inline void v9fs_readpage_to_fscache(struct inode *inode,
 static inline void v9fs_uncache_page(struct inode *inode, struct page *page)
 {
 	struct v9fs_inode *v9inode = V9FS_I(inode);
+
 	fscache_uncache_page(v9inode->fscache, page);
 	BUG_ON(PageFsCache(page));
 }
@@ -115,7 +116,7 @@ static inline int v9fs_readpage_from_fscache(struct inode *inode,
 static inline int v9fs_readpages_from_fscache(struct inode *inode,
 					      struct address_space *mapping,
 					      struct list_head *pages,
-					      unsigned *nr_pages)
+					      unsigned int *nr_pages)
 {
 	return -ENOBUFS;
 }
@@ -129,9 +130,7 @@ static inline void v9fs_uncache_page(struct inode *inode, struct page *page)
 
 static inline void v9fs_fscache_wait_on_page_write(struct inode *inode,
 						   struct page *page)
-{
-	return;
-}
+{}
 
 #endif /* CONFIG_9P_FSCACHE */
 #endif /* _9P_CACHE_H */
-- 
2.25.1


             reply	other threads:[~2021-09-30 21:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-30 21:24 Sohaib Mohamed [this message]
2021-09-30 23:00 ` Dominique Martinet

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=20210930212455.30047-1-sohaib.amhmd@gmail.com \
    --to=sohaib.amhmd@gmail.com \
    --cc=asmadeus@codewreck.org \
    --cc=ericvh@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lucho@ionkov.net \
    --cc=v9fs-developer@lists.sourceforge.net \
    /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

all inboxes | Powered by JetHome®