History

fs/namespace.c: make to_mnt_ns() static

Make to_mnt_ns() static to address the following 'sparse' warning: fs/namespace.c:1731:22: warning: symbol 'to_mnt_ns' was not declared. Should it be static?

Eric Biggers committed 6 years ago

Commit 213921f1 parent 7bebd691 file · +1 −1Browse files

Unified · Split

fs/namespace.c+1−1
@@ -1728,7 +1728,7 @@ static bool is_mnt_ns_file(struct dentry *dentry) · 1727 unmodified lines
1728 dentry->d_fsdata == &mntns_operations;1728 dentry->d_fsdata == &mntns_operations;
1729}1729}
1730 1730
1731struct mnt_namespace *to_mnt_ns(struct ns_common *ns)1731static struct mnt_namespace *to_mnt_ns(struct ns_common *ns)
1732{1732{
1733 return container_of(ns, struct mnt_namespace, ns);1733 return container_of(ns, struct mnt_namespace, ns);
1734}1734}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t