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
17281728 dentry->d_fsdata == &mntns_operations;
17291729 }
17301730
1731−struct mnt_namespace *to_mnt_ns(struct ns_common *ns)
1731+static struct mnt_namespace *to_mnt_ns(struct ns_common *ns)
17321732 {
17331733 return container_of(ns, struct mnt_namespace, ns);
17341734 }

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