diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-09-24 14:02:48 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-09-24 14:02:48 +0200 |
commit | db25f440f42eca380fcdb339f51cf73633e32485 (patch) | |
tree | d67c8ec502c2ce8b1382538545ee1b8a439dc6e2 /include/linux/kernfs.h | |
parent | 145d92e77e6f34f53773fdb06789816ec2b6c7b3 (diff) | |
parent | 83510441bc08bee201c0ded9d81da6dfd008d69a (diff) |
Merge branch 'for-linus' into for-next
Diffstat (limited to 'include/linux/kernfs.h')
-rw-r--r-- | include/linux/kernfs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h index 123be25ea15a..5d4e9c4b821d 100644 --- a/include/linux/kernfs.h +++ b/include/linux/kernfs.h @@ -266,6 +266,7 @@ static inline bool kernfs_ns_enabled(struct kernfs_node *kn) } int kernfs_name(struct kernfs_node *kn, char *buf, size_t buflen); +size_t kernfs_path_len(struct kernfs_node *kn); char * __must_check kernfs_path(struct kernfs_node *kn, char *buf, size_t buflen); void pr_cont_kernfs_name(struct kernfs_node *kn); @@ -332,6 +333,9 @@ static inline bool kernfs_ns_enabled(struct kernfs_node *kn) static inline int kernfs_name(struct kernfs_node *kn, char *buf, size_t buflen) { return -ENOSYS; } +static inline size_t kernfs_path_len(struct kernfs_node *kn) +{ return 0; } + static inline char * __must_check kernfs_path(struct kernfs_node *kn, char *buf, size_t buflen) { return NULL; } |