public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Valdis Klētnieks" <valdis.kletnieks@vt.edu>
To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] kernel/events/core.c - make perf_swevent_init_cpu static
Date: Tue, 12 Mar 2019 04:06:37 -0400	[thread overview]
Message-ID: <28974.1552377997@turing-police> (raw)

'make W=1' causes a gcc complaint:

  CC      kernel/events/core.o
kernel/events/core.c:11877:6: warning: no previous prototype for 'perf_swevent_init_cpu' [-Wmissing-prototypes]
11877 | void perf_swevent_init_cpu(unsigned int cpu)
      |      ^~~~~~~~~~~~~~~~~~~~~

It's not referenced anyplace else, make it static.

(Other unrelated warnings elided for clarity)

Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>

---
diff --git a/kernel/events/core.c b/kernel/events/core.c
index f7086c388781..77eaa65363d1 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -11874,7 +11874,7 @@ static void __init perf_event_init_all_cpus(void)
 	}
 }
 
-void perf_swevent_init_cpu(unsigned int cpu)
+static void perf_swevent_init_cpu(unsigned int cpu)
 {
 	struct swevent_htable *swhash = &per_cpu(swevent_htable, cpu);
 



             reply	other threads:[~2019-03-12  8:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-12  8:06 Valdis Klētnieks [this message]
2019-04-03  8:42 ` [tip:perf/core] perf/core: Make perf_swevent_init_cpu() static tip-bot for Valdis Kletnieks

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=28974.1552377997@turing-police \
    --to=valdis.kletnieks@vt.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.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