Skip to content

Commit aedb9d9

Browse files
rddunlapkdave
authored andcommitted
btrfs: ref-verify: use 'inline void' keyword ordering
Fix build warnings of function signature when CONFIG_STACKTRACE is not enabled by reordering the 'inline' and 'void' keywords. ../fs/btrfs/ref-verify.c:221:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] static void inline __save_stack_trace(struct ref_action *ra) ../fs/btrfs/ref-verify.c:225:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] static void inline __print_stack_trace(struct btrfs_fs_info *fs_info, Signed-off-by: Randy Dunlap <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 6e37d24 commit aedb9d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/btrfs/ref-verify.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,11 @@ static void __print_stack_trace(struct btrfs_fs_info *fs_info,
218218
stack_trace_print(ra->trace, ra->trace_len, 2);
219219
}
220220
#else
221-
static void inline __save_stack_trace(struct ref_action *ra)
221+
static inline void __save_stack_trace(struct ref_action *ra)
222222
{
223223
}
224224

225-
static void inline __print_stack_trace(struct btrfs_fs_info *fs_info,
225+
static inline void __print_stack_trace(struct btrfs_fs_info *fs_info,
226226
struct ref_action *ra)
227227
{
228228
btrfs_err(fs_info, " ref-verify: no stacktrace support");

0 commit comments

Comments
 (0)