Commit 15633005e07883b57c6c7ca539c32148c3a7f588

Authored by Adrian Bunk
Committed by Linus Torvalds
1 parent e7f23ebdef

make ext3_xattr_list() static

Make the needlessly global ext3_xattr_list() static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 2 changed files with 3 additions and 8 deletions Side-by-side Diff

... ... @@ -99,6 +99,8 @@
99 99 struct mb_cache_entry **);
100 100 static void ext3_xattr_rehash(struct ext3_xattr_header *,
101 101 struct ext3_xattr_entry *);
  102 +static int ext3_xattr_list(struct inode *inode, char *buffer,
  103 + size_t buffer_size);
102 104  
103 105 static struct mb_cache *ext3_xattr_cache;
104 106  
... ... @@ -427,7 +429,7 @@
427 429 * Returns a negative error number on failure, or the number of bytes
428 430 * used / required on success.
429 431 */
430   -int
  432 +static int
431 433 ext3_xattr_list(struct inode *inode, char *buffer, size_t buffer_size)
432 434 {
433 435 int i_error, b_error;
... ... @@ -67,7 +67,6 @@
67 67 extern ssize_t ext3_listxattr(struct dentry *, char *, size_t);
68 68  
69 69 extern int ext3_xattr_get(struct inode *, int, const char *, void *, size_t);
70   -extern int ext3_xattr_list(struct inode *, char *, size_t);
71 70 extern int ext3_xattr_set(struct inode *, int, const char *, const void *, size_t, int);
72 71 extern int ext3_xattr_set_handle(handle_t *, struct inode *, int, const char *, const void *, size_t, int);
73 72  
... ... @@ -84,12 +83,6 @@
84 83 static inline int
85 84 ext3_xattr_get(struct inode *inode, int name_index, const char *name,
86 85 void *buffer, size_t size, int flags)
87   -{
88   - return -EOPNOTSUPP;
89   -}
90   -
91   -static inline int
92   -ext3_xattr_list(struct inode *inode, void *buffer, size_t size)
93 86 {
94 87 return -EOPNOTSUPP;
95 88 }