From: Martin Brandenburg <mar...@omnibond.com> Signed-off-by: Martin Brandenburg <mar...@omnibond.com> --- fs/orangefs/file.c | 6 ++---- fs/orangefs/orangefs-kernel.h | 5 ----- 2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index 3e5d467e24e6..afb94ed7cef3 100644 --- a/fs/orangefs/file.c +++ b/fs/orangefs/file.c @@ -351,10 +351,8 @@ static ssize_t do_readv_writev(enum ORANGEFS_io_type type, struct file *file, * Read data from a specified offset in a file (referenced by inode). * Data may be placed either in a user or kernel buffer. */ -ssize_t orangefs_inode_read(struct inode *inode, - struct iov_iter *iter, - loff_t *offset, - loff_t readahead_size) +static ssize_t orangefs_inode_read(struct inode *inode, + struct iov_iter *iter, loff_t *offset, loff_t readahead_size) { struct orangefs_inode_s *orangefs_inode = ORANGEFS_I(inode); size_t count = iov_iter_count(iter); diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h index 97adf7d100b5..ba62de332e04 100644 --- a/fs/orangefs/orangefs-kernel.h +++ b/fs/orangefs/orangefs-kernel.h @@ -433,11 +433,6 @@ ssize_t orangefs_listxattr(struct dentry *dentry, char *buffer, size_t size); struct inode *orangefs_iget(struct super_block *sb, struct orangefs_object_kref *ref); -ssize_t orangefs_inode_read(struct inode *inode, - struct iov_iter *iter, - loff_t *offset, - loff_t readahead_size); - /* * defined in devorangefs-req.c */ -- 2.15.1