From 9ee828de1625e3f9c61c86daa71fc1f8d024ae9c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 28 Apr 2014 09:29:25 +0000 Subject: [PATCH] scst: Export scst_path_put() This patch makes the code that was added via r5479 build against kernel version 2.6.38 and before. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5485 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 3 +++ scst/src/scst_lib.c | 1 + scst/src/scst_priv.h | 4 ---- 3 files changed, 4 insertions(+), 4 deletions(-) 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