Skip to content

Commit

Permalink
net: Mark function as static in 9p/client.c
Browse files Browse the repository at this point in the history
Mark function as static in net/9p/client.c because it is not used
outside this file.

This eliminates the following warning in net/9p/client.c:
net/9p/client.c:207:18: warning: no previous prototype for ‘p9_fcall_alloc’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
Signed-off-by: Eric Van Hensbergen <[email protected]>
  • Loading branch information
rashika authored and ericvh committed Mar 25, 2014
1 parent 2b6e72e commit 05a782d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/9p/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static int parse_opts(char *opts, struct p9_client *clnt)
return ret;
}

struct p9_fcall *p9_fcall_alloc(int alloc_msize)
static struct p9_fcall *p9_fcall_alloc(int alloc_msize)
{
struct p9_fcall *fc;
fc = kmalloc(sizeof(struct p9_fcall) + alloc_msize, GFP_NOFS);
Expand Down

0 comments on commit 05a782d

Please sign in to comment.