linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] fuse: Make fuse_args_to_req static
@ 2019-09-23  5:52 YueHaibing
  2019-09-23  9:45 ` Miklos Szeredi
  0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2019-09-23  5:52 UTC (permalink / raw)
  To: miklos, mszeredi; +Cc: linux-fsdevel, linux-kernel, YueHaibing

Fix sparse warning:

fs/fuse/dev.c:468:6: warning: symbol 'fuse_args_to_req' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 fs/fuse/dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index 46d68d4..7844d35 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -465,7 +465,7 @@ static void fuse_force_creds(struct fuse_conn *fc, struct fuse_req *req)
 	req->in.h.pid = pid_nr_ns(task_pid(current), fc->pid_ns);
 }
 
-void fuse_args_to_req(struct fuse_req *req, struct fuse_args *args)
+static void fuse_args_to_req(struct fuse_req *req, struct fuse_args *args)
 {
 	req->in.h.opcode = args->opcode;
 	req->in.h.nodeid = args->nodeid;
-- 
2.7.4



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

* Re: [PATCH -next] fuse: Make fuse_args_to_req static
  2019-09-23  5:52 [PATCH -next] fuse: Make fuse_args_to_req static YueHaibing
@ 2019-09-23  9:45 ` Miklos Szeredi
  0 siblings, 0 replies; 2+ messages in thread
From: Miklos Szeredi @ 2019-09-23  9:45 UTC (permalink / raw)
  To: YueHaibing; +Cc: Miklos Szeredi, linux-fsdevel, linux-kernel

On Mon, Sep 23, 2019 at 7:53 AM YueHaibing <yuehaibing@huawei.com> wrote:
>
> Fix sparse warning:
>
> fs/fuse/dev.c:468:6: warning: symbol 'fuse_args_to_req' was not declared. Should it be static?

Thanks, applied.

Miklos

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

end of thread, other threads:[~2019-09-23  9:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-23  5:52 [PATCH -next] fuse: Make fuse_args_to_req static YueHaibing
2019-09-23  9:45 ` Miklos Szeredi

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