Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680926 - gentoo-sources-4.19.29: arch/x86/events/core.c:1973:20: error: passing argument 1 of ‘intel_cpuc_finish’ from incompatible pointer type
Summary: gentoo-sources-4.19.29: arch/x86/events/core.c:1973:20: error: passing argume...
Status: RESOLVED DUPLICATE of bug 680916
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-19 12:16 UTC by Samuel Bernardo
Modified: 2019-03-19 12:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bernardo 2019-03-19 12:16:22 UTC
With AMD Ryzen processor it doesn't compiles with the error:
In file included from arch/x86/events/core.c:44:                                                                                                                                                                                                                               
arch/x86/events/perf_event.h:1033:45: warning: ‘struct cpu_hw_event’ declared inside parameter list will not be visible outside of this definition or declaration                                                                                                              
 static inline int intel_cpuc_prepare(struct cpu_hw_event *cpuc, int cpu)                                                                                                                                                                                                      
                                             ^~~~~~~~~~~~                                                                                                                                                                                                                      
arch/x86/events/perf_event.h:1038:45: warning: ‘struct cpu_hw_event’ declared inside parameter list will not be visible outside of this definition or declaration                                                                                                              
 static inline void intel_cpuc_finish(struct cpu_hw_event *cpuc)                                                                                                                                                                                                               
                                             ^~~~~~~~~~~~                                                                                                                                                                                                                      
  CC      lib/errseq.o                                                                                                                                                                                                                                                         
arch/x86/events/core.c: In function ‘free_fake_cpuc’:                                                                                                                                                                                                                          
arch/x86/events/core.c:1973:20: error: passing argument 1 of ‘intel_cpuc_finish’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  intel_cpuc_finish(cpuc);                
                    ^~~~                 
In file included from arch/x86/events/core.c:44:
arch/x86/events/perf_event.h:1038:59: note: expected ‘struct cpu_hw_event *’ but argument is of type ‘struct cpu_hw_events *’
 static inline void intel_cpuc_finish(struct cpu_hw_event *cpuc)
                                      ~~~~~~~~~~~~~~~~~~~~~^~~~
arch/x86/events/core.c: In function ‘allocate_fake_cpuc’:
arch/x86/events/core.c:1987:25: error: passing argument 1 of ‘intel_cpuc_prepare’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  if (intel_cpuc_prepare(cpuc, cpu))   
                         ^~~~    
In file included from arch/x86/events/core.c:44:
arch/x86/events/perf_event.h:1033:59: note: expected ‘struct cpu_hw_event *’ but argument is of type ‘struct cpu_hw_events *’
 static inline int intel_cpuc_prepare(struct cpu_hw_event *cpuc, int cpu)

I found this bug report in kernel linux bugzilla and it seems to be related:
https://bugzilla.kernel.org/show_bug.cgi?id=202917

I already compile without any problem this kernel version in Intel Broadwell-u processor.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-19 12:33:42 UTC

*** This bug has been marked as a duplicate of bug 680916 ***