All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel/events: Add a missing prototype for arch_perf_update_userpage()
@ 2020-01-09 13:13 Benjamin Thiel
  2020-01-20 15:31 ` Peter Zijlstra
  2020-01-29 11:32 ` [tip: perf/urgent] " tip-bot2 for Benjamin Thiel
  0 siblings, 2 replies; 3+ messages in thread
From: Benjamin Thiel @ 2020-01-09 13:13 UTC (permalink / raw)
  To: X86 ML; +Cc: LKML, Benjamin Thiel

... in order to fix a -Wmissing-prototype warning.

No functional changes.

Signed-off-by: Benjamin Thiel <b.thiel@posteo.de>
---
 include/linux/perf_event.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 6d4c22aee384..de3874271814 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -1544,4 +1544,7 @@ int perf_event_exit_cpu(unsigned int cpu);
 #define perf_event_exit_cpu	NULL
 #endif
 
+void __weak arch_perf_update_userpage(
+	struct perf_event *event, struct perf_event_mmap_page *userpg, u64 now);
+
 #endif /* _LINUX_PERF_EVENT_H */
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] kernel/events: Add a missing prototype for arch_perf_update_userpage()
  2020-01-09 13:13 [PATCH] kernel/events: Add a missing prototype for arch_perf_update_userpage() Benjamin Thiel
@ 2020-01-20 15:31 ` Peter Zijlstra
  2020-01-29 11:32 ` [tip: perf/urgent] " tip-bot2 for Benjamin Thiel
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Zijlstra @ 2020-01-20 15:31 UTC (permalink / raw)
  To: Benjamin Thiel; +Cc: X86 ML, LKML

On Thu, Jan 09, 2020 at 02:13:51PM +0100, Benjamin Thiel wrote:
> ... in order to fix a -Wmissing-prototype warning.
> 
> No functional changes.
> 
> Signed-off-by: Benjamin Thiel <b.thiel@posteo.de>
> ---
>  include/linux/perf_event.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
> index 6d4c22aee384..de3874271814 100644
> --- a/include/linux/perf_event.h
> +++ b/include/linux/perf_event.h
> @@ -1544,4 +1544,7 @@ int perf_event_exit_cpu(unsigned int cpu);
>  #define perf_event_exit_cpu	NULL
>  #endif
>  
> +void __weak arch_perf_update_userpage(
> +	struct perf_event *event, struct perf_event_mmap_page *userpg, u64 now);
> +

Indeed so, I've slightly changed to:

+extern void __weak arch_perf_update_userpage(struct perf_event *event,
+                                            struct perf_event_mmap_page *userpg,
+                                            u64 now);

Thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip: perf/urgent] kernel/events: Add a missing prototype for arch_perf_update_userpage()
  2020-01-09 13:13 [PATCH] kernel/events: Add a missing prototype for arch_perf_update_userpage() Benjamin Thiel
  2020-01-20 15:31 ` Peter Zijlstra
@ 2020-01-29 11:32 ` tip-bot2 for Benjamin Thiel
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Benjamin Thiel @ 2020-01-29 11:32 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Benjamin Thiel, Peter Zijlstra (Intel), Ingo Molnar, x86, LKML

The following commit has been merged into the perf/urgent branch of tip:

Commit-ID:     f1ec3a517b4352e78dbef6b1e591f43202ecb3fe
Gitweb:        https://git.kernel.org/tip/f1ec3a517b4352e78dbef6b1e591f43202ecb3fe
Author:        Benjamin Thiel <b.thiel@posteo.de>
AuthorDate:    Thu, 09 Jan 2020 14:13:51 +01:00
Committer:     Ingo Molnar <mingo@kernel.org>
CommitterDate: Tue, 28 Jan 2020 21:26:44 +01:00

kernel/events: Add a missing prototype for arch_perf_update_userpage()

... in order to fix a -Wmissing-prototype warning.

No functional changes.

Signed-off-by: Benjamin Thiel <b.thiel@posteo.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/20200109131351.9468-1-b.thiel@posteo.de
---
 include/linux/perf_event.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 6d4c22a..52928e0 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -1544,4 +1544,8 @@ int perf_event_exit_cpu(unsigned int cpu);
 #define perf_event_exit_cpu	NULL
 #endif
 
+extern void __weak arch_perf_update_userpage(struct perf_event *event,
+					     struct perf_event_mmap_page *userpg,
+					     u64 now);
+
 #endif /* _LINUX_PERF_EVENT_H */

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-29 11:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-09 13:13 [PATCH] kernel/events: Add a missing prototype for arch_perf_update_userpage() Benjamin Thiel
2020-01-20 15:31 ` Peter Zijlstra
2020-01-29 11:32 ` [tip: perf/urgent] " tip-bot2 for Benjamin Thiel

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.