add chaos_calmer branch
[15.05/openwrt.git] / package / devel / oprofile / patches / 110-fix_compile_error.patch
1 --- a/libop/op_cpu_type.c
2 +++ b/libop/op_cpu_type.c
3 @@ -250,6 +250,7 @@ static void release_at_hw_platform(void)
4         }
5  }
6  
7 +#ifdef PPC64
8  static op_cpu _try_ppc64_arch_generic_cpu(void)
9  {
10         const char * platform, * base_platform;
11 @@ -312,6 +313,7 @@ static op_cpu _get_ppc64_cpu_type(void)
12         cpu_type = op_get_cpu_number(cpu_type_str);
13         return cpu_type;
14  }
15 +#endif
16  
17  static op_cpu _get_arm_cpu_type(void)
18  {
19 @@ -592,9 +594,11 @@ static op_cpu __get_cpu_type_alt_method(
20             fnmatch("i?86", uname_info.machine, 0) == 0) {
21                 return _get_x86_64_cpu_type();
22         }
23 +#ifdef PPC64
24         if (strncmp(uname_info.machine, "ppc64", 5) == 0) {
25                 return _get_ppc64_cpu_type();
26         }
27 +#endif
28         if (strncmp(uname_info.machine, "arm", 3) == 0) {
29                 return _get_arm_cpu_type();
30         }