Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1468637 > unrolled thread

[PATCH -next] f2fs: fix non static symbol warning

Started byWei Yongjun <weiyj.lk@gmail.com>
First post2016-08-23 17:30 +0200
Last post2016-08-25 16:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH -next] f2fs: fix non static symbol warning Wei Yongjun <weiyj.lk@gmail.com> - 2016-08-23 17:30 +0200
    Re: [f2fs-dev] [PATCH -next] f2fs: fix non static symbol warning Chao Yu <chao@kernel.org> - 2016-08-25 16:30 +0200

#1468637 — [PATCH -next] f2fs: fix non static symbol warning

FromWei Yongjun <weiyj.lk@gmail.com>
Date2016-08-23 17:30 +0200
Subject[PATCH -next] f2fs: fix non static symbol warning
Message-ID<s9lOi-5N9-19@gated-at.bofh.it>
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;

[toc] | [next] | [standalone]


#1470181 — Re: [f2fs-dev] [PATCH -next] f2fs: fix non static symbol warning

FromChao Yu <chao@kernel.org>
Date2016-08-25 16:30 +0200
SubjectRe: [f2fs-dev] [PATCH -next] f2fs: fix non static symbol warning
Message-ID<sa3Po-25H-11@gated-at.bofh.it>
In reply to#1468637
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>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web