* [PATCH] x86, perf_event: Fix build warning
@ 2013-01-25 17:46 Borislav Petkov
2013-01-25 19:57 ` Stephane Eranian
2013-01-26 12:20 ` [tip:perf/x86] perf/x86: Fix type to address " tip-bot for Borislav Petkov
0 siblings, 2 replies; 3+ messages in thread
From: Borislav Petkov @ 2013-01-25 17:46 UTC (permalink / raw)
To: Ingo Molnar; +Cc: LKML, Borislav Petkov, Andi Kleen, Stephane Eranian
From: Borislav Petkov <bp@suse.de>
Fix this one:
arch/x86/kernel/cpu/perf_event.c: In function ‘init_hw_perf_events’:
arch/x86/kernel/cpu/perf_event.c:1508:7: warning: assignment from incompatible
pointer type [enabled by default]
arch/x86/kernel/cpu/perf_event.c:1510:31: warning: assignment from incompatible
pointer type [enabled by default]
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Stephane Eranian <eranian@google.com>
---
arch/x86/kernel/cpu/perf_event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c
index 1e2519d0dc7a..c6ef37af76b0 100644
--- a/arch/x86/kernel/cpu/perf_event.c
+++ b/arch/x86/kernel/cpu/perf_event.c
@@ -1503,7 +1503,7 @@ static int __init init_hw_perf_events(void)
filter_events(x86_pmu_events_group.attrs);
if (x86_pmu.cpu_events) {
- struct attribute *tmp;
+ struct attribute **tmp;
tmp = merge_attr(x86_pmu_events_group.attrs, x86_pmu.cpu_events);
if (!WARN_ON(!tmp))
--
1.8.1.rc3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] x86, perf_event: Fix build warning
2013-01-25 17:46 [PATCH] x86, perf_event: Fix build warning Borislav Petkov
@ 2013-01-25 19:57 ` Stephane Eranian
2013-01-26 12:20 ` [tip:perf/x86] perf/x86: Fix type to address " tip-bot for Borislav Petkov
1 sibling, 0 replies; 3+ messages in thread
From: Stephane Eranian @ 2013-01-25 19:57 UTC (permalink / raw)
To: Borislav Petkov; +Cc: Ingo Molnar, LKML, Borislav Petkov, Andi Kleen
On Fri, Jan 25, 2013 at 6:46 PM, Borislav Petkov <bp@alien8.de> wrote:
> From: Borislav Petkov <bp@suse.de>
>
> Fix this one:
>
> arch/x86/kernel/cpu/perf_event.c: In function ‘init_hw_perf_events’:
> arch/x86/kernel/cpu/perf_event.c:1508:7: warning: assignment from incompatible
> pointer type [enabled by default]
> arch/x86/kernel/cpu/perf_event.c:1510:31: warning: assignment from incompatible
> pointer type [enabled by default]
>
> Signed-off-by: Borislav Petkov <bp@suse.de>
> Cc: Andi Kleen <ak@linux.intel.com>
> Cc: Stephane Eranian <eranian@google.com>
Acked-by: Stephane Eranian <eranian@google.com>
> ---
> arch/x86/kernel/cpu/perf_event.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c
> index 1e2519d0dc7a..c6ef37af76b0 100644
> --- a/arch/x86/kernel/cpu/perf_event.c
> +++ b/arch/x86/kernel/cpu/perf_event.c
> @@ -1503,7 +1503,7 @@ static int __init init_hw_perf_events(void)
> filter_events(x86_pmu_events_group.attrs);
>
> if (x86_pmu.cpu_events) {
> - struct attribute *tmp;
> + struct attribute **tmp;
>
> tmp = merge_attr(x86_pmu_events_group.attrs, x86_pmu.cpu_events);
> if (!WARN_ON(!tmp))
> --
> 1.8.1.rc3
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:perf/x86] perf/x86: Fix type to address build warning
2013-01-25 17:46 [PATCH] x86, perf_event: Fix build warning Borislav Petkov
2013-01-25 19:57 ` Stephane Eranian
@ 2013-01-26 12:20 ` tip-bot for Borislav Petkov
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Borislav Petkov @ 2013-01-26 12:20 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, eranian, hpa, mingo, ak, tglx, bp
Commit-ID: fc7d3e64651e4de80262e48a3fb75128fffb8ef3
Gitweb: http://git.kernel.org/tip/fc7d3e64651e4de80262e48a3fb75128fffb8ef3
Author: Borislav Petkov <bp@suse.de>
AuthorDate: Fri, 25 Jan 2013 18:46:07 +0100
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Fri, 25 Jan 2013 19:32:02 +0100
perf/x86: Fix type to address build warning
Fix this one:
arch/x86/kernel/cpu/perf_event.c: In function ‘init_hw_perf_events’:
arch/x86/kernel/cpu/perf_event.c:1508:7: warning: assignment from incompatible pointer type [enabled by default]
arch/x86/kernel/cpu/perf_event.c:1510:31: warning: assignment from incompatible pointer type [enabled by default]
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1359135967-31401-1-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
arch/x86/kernel/cpu/perf_event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c
index 1e2519d..c6ef37a 100644
--- a/arch/x86/kernel/cpu/perf_event.c
+++ b/arch/x86/kernel/cpu/perf_event.c
@@ -1503,7 +1503,7 @@ static int __init init_hw_perf_events(void)
filter_events(x86_pmu_events_group.attrs);
if (x86_pmu.cpu_events) {
- struct attribute *tmp;
+ struct attribute **tmp;
tmp = merge_attr(x86_pmu_events_group.attrs, x86_pmu.cpu_events);
if (!WARN_ON(!tmp))
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-26 12:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-25 17:46 [PATCH] x86, perf_event: Fix build warning Borislav Petkov
2013-01-25 19:57 ` Stephane Eranian
2013-01-26 12:20 ` [tip:perf/x86] perf/x86: Fix type to address " tip-bot for Borislav Petkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®