lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <28974.1552377997@turing-police>
Date:   Tue, 12 Mar 2019 04:06:37 -0400
From:   "Valdis Klētnieks" <valdis.kletnieks@...edu>
To:     Peter Zijlstra <peterz@...radead.org>,
        Ingo Molnar <mingo@...hat.com>
cc:     linux-kernel@...r.kernel.org
Subject: [PATCH] kernel/events/core.c - make perf_swevent_init_cpu static

'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@...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);
 


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ