]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/dcookies.h
constify get_dcookie() and friends
[karo-tx-linux.git] / include / linux / dcookies.h
index 5ac3bdd5cee677ab7ff752c8ea87a959b35e134a..699b6c499c4f5a3c600380b8aa8971ab3bba61b4 100644 (file)
@@ -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;
 }