From: David Sterba <dsterba@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>
Subject: [PATCH 2/4] btrfs: drop extern from function declarations
Date: Tue, 27 Feb 2018 15:48:54 +0100 [thread overview]
Message-ID: <10d174a9a051e01014c80728f8102bfa0289bd3c.1519742886.git.dsterba@suse.com> (raw)
In-Reply-To: <cover.1519742886.git.dsterba@suse.com>
Extern for functions does not make any difference, there are only a few
so let's remove them before it's too late.
Signed-off-by: David Sterba <dsterba@suse.com>
---
fs/btrfs/extent_io.h | 4 ++--
fs/btrfs/xattr.h | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index a7a850abd600..226c4876ddf8 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -83,8 +83,8 @@ static inline int le_test_bit(int nr, const u8 *addr)
return 1U & (addr[BIT_BYTE(nr)] >> (nr & (BITS_PER_BYTE-1)));
}
-extern void le_bitmap_set(u8 *map, unsigned int start, int len);
-extern void le_bitmap_clear(u8 *map, unsigned int start, int len);
+void le_bitmap_set(u8 *map, unsigned int start, int len);
+void le_bitmap_clear(u8 *map, unsigned int start, int len);
struct extent_state;
struct btrfs_root;
diff --git a/fs/btrfs/xattr.h b/fs/btrfs/xattr.h
index 3c227c549dfc..96e6f3a304d3 100644
--- a/fs/btrfs/xattr.h
+++ b/fs/btrfs/xattr.h
@@ -23,13 +23,13 @@
extern const struct xattr_handler *btrfs_xattr_handlers[];
-extern ssize_t btrfs_getxattr(struct inode *inode, const char *name,
+ssize_t btrfs_getxattr(struct inode *inode, const char *name,
void *buffer, size_t size);
-extern int btrfs_setxattr(struct btrfs_trans_handle *trans,
+int btrfs_setxattr(struct btrfs_trans_handle *trans,
struct inode *inode, const char *name,
const void *value, size_t size, int flags);
-extern int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
+int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
struct inode *inode, struct inode *dir,
const struct qstr *qstr);
--
2.16.2
next prev parent reply other threads:[~2018-02-27 14:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-27 14:48 [PATCH 0/4] Minor xattr handler cleanups David Sterba
2018-02-27 14:48 ` [PATCH 1/4] btrfs: drop underscores from exported xattr functions David Sterba
2018-02-27 14:48 ` David Sterba [this message]
2018-02-27 14:48 ` [PATCH 3/4] btrfs: adjust return type of btrfs_getxattr David Sterba
2018-02-27 14:48 ` [PATCH 4/4] btrfs: move btrfs_listxattr prototype to xattr.h David Sterba
2018-02-27 15:02 ` [PATCH 0/4] Minor xattr handler cleanups Nikolay Borisov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10d174a9a051e01014c80728f8102bfa0289bd3c.1519742886.git.dsterba@suse.com \
--to=dsterba@suse.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).