arm: Fix build following c/s 8e2aa76dc
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 May 2020 21:23:59 +0000 (22:23 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 May 2020 21:27:50 +0000 (22:27 +0100)
The ARM side of the cpu_nr_siblings() was missing a return type.  OSSTest
reports:

  /home/osstest/build.150502.build-arm64-xsm/xen/xen/include/asm/cpufeature.h:67:15:
  error: return type defaults to 'int' [-Werror=implicit-int]
   static inline cpu_nr_siblings(unsigned int)
                 ^~~~~~~~~~~~~~~

My local build test then reported:

  /local/xen.git/xen/include/asm/cpufeature.h: In function ‘cpu_nr_siblings’:
  /local/xen.git/xen/include/asm/cpufeature.h:67:1: error: parameter name omitted
   static inline int cpu_nr_siblings(unsigned int)
    ^

Fix it up to match its x86 counterpart.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/asm-arm/cpufeature.h

index 8fdf9685d7ff2aed4133e7cc7241549eea92eb16..674beb0353a72eee3a8ad6ebccb9ed6f974707ce 100644 (file)
@@ -64,7 +64,7 @@ static inline bool cpus_have_cap(unsigned int num)
     return test_bit(num, cpu_hwcaps);
 }
 
-static inline cpu_nr_siblings(unsigned int)
+static inline int cpu_nr_siblings(unsigned int cpu)
 {
     return 1;
 }