Skip to content

Commit 57d6a79

Browse files
malaterreIngo Molnar
authored andcommitted
perf/core: Move the inline keyword at the beginning of the function declaration
When building perf with W=1 the following warning triggers: CC kernel/events/ring_buffer.o kernel/events/ring_buffer.c:105:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] static bool __always_inline ^~~~~~ ... Move the inline keyword to the beginning of the function declaration. Signed-off-by: Mathieu Malaterre <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 90718e3 commit 57d6a79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/events/ring_buffer.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static void perf_output_put_handle(struct perf_output_handle *handle)
103103
preempt_enable();
104104
}
105105

106-
static bool __always_inline
106+
static __always_inline bool
107107
ring_buffer_has_space(unsigned long head, unsigned long tail,
108108
unsigned long data_size, unsigned int size,
109109
bool backward)
@@ -114,7 +114,7 @@ ring_buffer_has_space(unsigned long head, unsigned long tail,
114114
return CIRC_SPACE(tail, head, data_size) >= size;
115115
}
116116

117-
static int __always_inline
117+
static __always_inline int
118118
__perf_output_begin(struct perf_output_handle *handle,
119119
struct perf_event *event, unsigned int size,
120120
bool backward)
@@ -414,7 +414,7 @@ void *perf_aux_output_begin(struct perf_output_handle *handle,
414414
}
415415
EXPORT_SYMBOL_GPL(perf_aux_output_begin);
416416

417-
static bool __always_inline rb_need_aux_wakeup(struct ring_buffer *rb)
417+
static __always_inline bool rb_need_aux_wakeup(struct ring_buffer *rb)
418418
{
419419
if (rb->aux_overwrite)
420420
return false;

0 commit comments

Comments
 (0)