* [PATCH] tracing: make function ‘ftrace_exports’ static
@ 2018-05-16 19:30 Mathieu Malaterre
2018-12-20 14:33 ` Steven Rostedt
0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Malaterre @ 2018-05-16 19:30 UTC (permalink / raw)
To: Chunyan Zhang
Cc: Mathieu Malaterre, Steven Rostedt, Ingo Molnar, linux-kernel
In commit 478409dd683d ("tracing: Add hook to function tracing for other
subsystems to use"), a new function ‘ftrace_exports’ was added. Since
this function can be made static, make it so.
Silence the following warning triggered using W=1:
kernel/trace/trace.c:2451:6: warning: no previous prototype for ‘ftrace_exports’ [-Wmissing-prototypes]
Signed-off-by: Mathieu Malaterre <malat@debian.org>
---
kernel/trace/trace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 414d7210b2ec..76b96f453cf7 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2448,7 +2448,7 @@ static inline void ftrace_exports_disable(void)
static_branch_disable(&ftrace_exports_enabled);
}
-void ftrace_exports(struct ring_buffer_event *event)
+static void ftrace_exports(struct ring_buffer_event *event)
{
struct trace_export *export;
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tracing: make function ‘ftrace_exports’ static
2018-05-16 19:30 [PATCH] tracing: make function ‘ftrace_exports’ static Mathieu Malaterre
@ 2018-12-20 14:33 ` Steven Rostedt
0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2018-12-20 14:33 UTC (permalink / raw)
To: Mathieu Malaterre; +Cc: Chunyan Zhang, Ingo Molnar, linux-kernel
Cleaning out my INBOX, I stumbled on this patch that slipped through
the cracks. Applied to my local queue.
Thanks, and sorry for the delay.
-- Steve
On Wed, 16 May 2018 21:30:12 +0200
Mathieu Malaterre <malat@debian.org> wrote:
> In commit 478409dd683d ("tracing: Add hook to function tracing for other
> subsystems to use"), a new function ‘ftrace_exports’ was added. Since
> this function can be made static, make it so.
>
> Silence the following warning triggered using W=1:
>
> kernel/trace/trace.c:2451:6: warning: no previous prototype for ‘ftrace_exports’ [-Wmissing-prototypes]
>
> Signed-off-by: Mathieu Malaterre <malat@debian.org>
> ---
> kernel/trace/trace.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
> index 414d7210b2ec..76b96f453cf7 100644
> --- a/kernel/trace/trace.c
> +++ b/kernel/trace/trace.c
> @@ -2448,7 +2448,7 @@ static inline void ftrace_exports_disable(void)
> static_branch_disable(&ftrace_exports_enabled);
> }
>
> -void ftrace_exports(struct ring_buffer_event *event)
> +static void ftrace_exports(struct ring_buffer_event *event)
> {
> struct trace_export *export;
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-20 14:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-16 19:30 [PATCH] tracing: make function ‘ftrace_exports’ static Mathieu Malaterre
2018-12-20 14:33 ` Steven Rostedt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.