diff --git a/scst/include/scst.h b/scst/include/scst.h index 54644507e..515814ffd 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -4749,6 +4749,9 @@ int scst_read_file_transactional(const char *name, const char *name1, int scst_write_file_transactional(const char *name, const char *name1, const char *signature, int signature_len, const uint8_t *buf, int size); +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) +void scst_path_put(struct nameidata *nd); +#endif int scst_remove_file(const char *name); #endif /* __SCST_H */ diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 5da420247..6cf607427 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -9771,6 +9771,7 @@ void scst_path_put(struct nameidata *nd) path_put(&nd->path); #endif } +EXPORT_SYMBOL(scst_path_put); #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29) diff --git a/scst/src/scst_priv.h b/scst/src/scst_priv.h index 9f5a3c6ed..7df673ee8 100644 --- a/scst/src/scst_priv.h +++ b/scst/src/scst_priv.h @@ -772,10 +772,6 @@ void scst_vfs_unlink_and_put(struct nameidata *nd); void scst_vfs_unlink_and_put(struct path *path); #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) -void scst_path_put(struct nameidata *nd); -#endif - #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29) int scst_vfs_fsync(struct file *file, loff_t loff, loff_t len); #endif