@@ -799,7 +799,7 @@ static ssize_t pvfs2_file_write_iter(struct kiocb *iocb, struct iov_iter *iter)
799799/*
800800 * Perform a miscellaneous operation on a file.
801801 */
802- long pvfs2_ioctl (struct file * file , unsigned int cmd , unsigned long arg )
802+ static long pvfs2_ioctl (struct file * file , unsigned int cmd , unsigned long arg )
803803{
804804 int ret = - ENOTTY ;
805805 __u64 val = 0 ;
@@ -885,7 +885,7 @@ static int pvfs2_file_mmap(struct file *file, struct vm_area_struct *vma)
885885 *
886886 * \note Not called when each file is closed.
887887 */
888- int pvfs2_file_release (struct inode * inode , struct file * file )
888+ static int pvfs2_file_release (struct inode * inode , struct file * file )
889889{
890890 gossip_debug (GOSSIP_FILE_DEBUG ,
891891 "pvfs2_file_release: called on %s\n" ,
@@ -909,7 +909,10 @@ int pvfs2_file_release(struct inode *inode, struct file *file)
909909/*
910910 * Push all data for a specific file onto permanent storage.
911911 */
912- int pvfs2_fsync (struct file * file , loff_t start , loff_t end , int datasync )
912+ static int pvfs2_fsync (struct file * file ,
913+ loff_t start ,
914+ loff_t end ,
915+ int datasync )
913916{
914917 int ret = - EINVAL ;
915918 struct pvfs2_inode_s * pvfs2_inode =
@@ -947,7 +950,7 @@ int pvfs2_fsync(struct file *file, loff_t start, loff_t end, int datasync)
947950 * Future upgrade could support SEEK_DATA and SEEK_HOLE but would
948951 * require much changes to the FS
949952 */
950- loff_t pvfs2_file_llseek (struct file * file , loff_t offset , int origin )
953+ static loff_t pvfs2_file_llseek (struct file * file , loff_t offset , int origin )
951954{
952955 int ret = - EINVAL ;
953956 struct inode * inode = file -> f_path .dentry -> d_inode ;
@@ -989,7 +992,7 @@ loff_t pvfs2_file_llseek(struct file *file, loff_t offset, int origin)
989992 * Support local locks (locks that only this kernel knows about)
990993 * if Orangefs was mounted -o local_lock.
991994 */
992- int pvfs2_lock (struct file * filp , int cmd , struct file_lock * fl )
995+ static int pvfs2_lock (struct file * filp , int cmd , struct file_lock * fl )
993996{
994997 int rc = - ENOLCK ;
995998
0 commit comments