summaryrefslogtreecommitdiffstats
path: root/include/linux/dcookies.h
diff options
context:
space:
mode:
authorAl Viro2016-11-21 01:30:18 +0100
committerAl Viro2016-12-06 01:01:16 +0100
commit71215a75ceddf38ba9d4563481da8dd943de10fc (patch)
tree5ed65751530bbe094ffb9325d1f401506567ce95 /include/linux/dcookies.h
parentaudit_log_{name,link_denied}: constify struct path (diff)
downloadkernel-qcow2-linux-71215a75ceddf38ba9d4563481da8dd943de10fc.tar.gz
kernel-qcow2-linux-71215a75ceddf38ba9d4563481da8dd943de10fc.tar.xz
kernel-qcow2-linux-71215a75ceddf38ba9d4563481da8dd943de10fc.zip
constify get_dcookie() and friends
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/dcookies.h')
-rw-r--r--include/linux/dcookies.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/dcookies.h b/include/linux/dcookies.h
index 5ac3bdd5cee6..699b6c499c4f 100644
--- a/include/linux/dcookies.h
+++ b/include/linux/dcookies.h
@@ -44,7 +44,7 @@ void dcookie_unregister(struct dcookie_user * user);
*
* Returns 0 on success, with *cookie filled in
*/
-int get_dcookie(struct path *path, unsigned long *cookie);
+int get_dcookie(const struct path *path, unsigned long *cookie);
#else
@@ -58,7 +58,7 @@ static inline void dcookie_unregister(struct dcookie_user * user)
return;
}
-static inline int get_dcookie(struct path *path, unsigned long *cookie)
+static inline int get_dcookie(const struct path *path, unsigned long *cookie)
{
return -ENOSYS;
}