lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210930212455.30047-1-sohaib.amhmd@gmail.com>
Date:   Thu, 30 Sep 2021 23:24:54 +0200
From:   Sohaib Mohamed <sohaib.amhmd@...il.com>
To:     unlisted-recipients:; (no To-header on input)
Cc:     Sohaib Mohamed <sohaib.amhmd@...il.com>,
        Eric Van Hensbergen <ericvh@...il.com>,
        Latchesar Ionkov <lucho@...kov.net>,
        Dominique Martinet <asmadeus@...ewreck.org>,
        v9fs-developer@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Subject: [PATCH] fs: 9p: cache.h: cleanup some format warning

Warnings found by checkpatch.pl

Signed-off-by: Sohaib Mohamed <sohaib.amhmd@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ