Skip to contentSkip to conversation

fs: 9p: cache.h: cleanup some format warning

PATCH In review Sohaib Mohamed 2 participants 2 messages Sep 30, 2021 9P file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: 9p: cache.h: cleanup some format warning

Warnings found by checkpatch.pl

---
 fs/9p/cache.h | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
fs/9p/cache.h +5 -6
index 00f107af443e..14fd222352f3 100644
@@ -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 */
Signature · 1 line
2.25.1
#1 lore raw

Sohaib Mohamed wrote on Thu, Sep 30, 2021 at 11:24:54PM +0200:

Quoted 1 line

Warnings found by checkpatch.pl

All this code is gone in linux-next (fscache work), so skipping this patch.

The other patch is good, I'll take it tonight/this weekend - thanks for the cleanups!

Signature · 1 line
Dominique