linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] f2fs: fix non static symbol warning
@ 2016-08-23 15:23 Wei Yongjun
  2016-08-25 14:11 ` [f2fs-dev] " Chao Yu
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2016-08-23 15:23 UTC (permalink / raw)
  To: Jaegeuk Kim, Changman Lee, Chao Yu
  Cc: Wei Yongjun, linux-f2fs-devel, linux-kernel

From: Wei Yongjun <weiyongjun1@huawei.com>

Fixes the following sparse warning:

fs/f2fs/data.c:969:12: warning:
 symbol 'f2fs_grab_bio' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 fs/f2fs/data.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index ccb401e..64d1833 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -966,8 +966,8 @@ out:
 	return ret;
 }
 
-struct bio *f2fs_grab_bio(struct inode *inode, block_t blkaddr,
-							unsigned nr_pages)
+static struct bio *f2fs_grab_bio(struct inode *inode, block_t blkaddr,
+				 unsigned nr_pages)
 {
 	struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
 	struct fscrypt_ctx *ctx = NULL;

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

* Re: [f2fs-dev] [PATCH -next] f2fs: fix non static symbol warning
  2016-08-23 15:23 [PATCH -next] f2fs: fix non static symbol warning Wei Yongjun
@ 2016-08-25 14:11 ` Chao Yu
  0 siblings, 0 replies; 2+ messages in thread
From: Chao Yu @ 2016-08-25 14:11 UTC (permalink / raw)
  To: Wei Yongjun, Jaegeuk Kim, Changman Lee, Chao Yu
  Cc: Wei Yongjun, linux-kernel, linux-f2fs-devel

On 2016/8/23 23:23, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
> 
> Fixes the following sparse warning:
> 
> fs/f2fs/data.c:969:12: warning:
>  symbol 'f2fs_grab_bio' was not declared. Should it be static?
> 
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>

Acked-by: Chao Yu <yuchao0@huawei.com>

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

end of thread, other threads:[~2016-08-25 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-23 15:23 [PATCH -next] f2fs: fix non static symbol warning Wei Yongjun
2016-08-25 14:11 ` [f2fs-dev] " Chao Yu

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