All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <jakub.kicinski@netronome.com>
To: rostedt@goodmis.org
Cc: mingo@redhat.com, linux-kernel@vger.kernel.org,
	oss-drivers@netronome.com,
	Jakub Kicinski <jakub.kicinski@netronome.com>
Subject: [PATCH 3/3] tracing: make trace_array_create() static
Date: Tue, 27 Aug 2019 22:25:49 -0700	[thread overview]
Message-ID: <20190828052549.2472-4-jakub.kicinski@netronome.com> (raw)
In-Reply-To: <20190828052549.2472-1-jakub.kicinski@netronome.com>

Fix the W=1 missing prototype warning:

kernel/trace/trace.c:8319:21: warning: no previous prototype for ‘trace_array_create’ [-Wmissing-prototypes]

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
---
 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 4cd9855dcd88..c7491d9b0ac7 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -8316,7 +8316,7 @@ static void update_tracer_options(struct trace_array *tr)
 	mutex_unlock(&trace_types_lock);
 }
 
-struct trace_array *trace_array_create(const char *name)
+static struct trace_array *trace_array_create(const char *name)
 {
 	struct trace_array *tr;
 	int ret;
-- 
2.21.0


  parent reply	other threads:[~2019-08-28  5:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-28  5:25 [PATCH 0/3] tracing: fix minor build warnings Jakub Kicinski
2019-08-28  5:25 ` [PATCH 1/3] tracing: correct kdoc formats Jakub Kicinski
2019-08-28  5:25 ` [PATCH 2/3] tracing: remove exported but unused trace_array_destroy() Jakub Kicinski
2019-08-28  5:25 ` Jakub Kicinski [this message]
2019-08-30 22:01 ` [PATCH 0/3] tracing: fix minor build warnings Steven Rostedt
2019-08-30 22:38   ` Jakub Kicinski

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=20190828052549.2472-4-jakub.kicinski@netronome.com \
    --to=jakub.kicinski@netronome.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=oss-drivers@netronome.com \
    --cc=rostedt@goodmis.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 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.