From: Jens Axboe Date: Fri, 28 Feb 2014 00:24:15 +0000 (-0800) Subject: windows: fix fio_cpu_count() definition X-Git-Tag: fio-2.1.6~8 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=a1fc70fbb0497a4e0dc061bd8fc35c8d4d29d2dd windows: fix fio_cpu_count() definition Don't take a 'cpu' argument, that's a leftover when this was (temporarily) fio_cpu_isset(). Signed-off-by: Jens Axboe --- diff --git a/os/os-windows.h b/os/os-windows.h index d465818c..243edc67 100644 --- a/os/os-windows.h +++ b/os/os-windows.h @@ -215,7 +215,7 @@ static inline void fio_cpu_set(os_cpu_mask_t *mask, int cpu) *mask |= 1 << cpu; } -static inline int fio_cpu_count(os_cpu_mask_t *mask, int cpu) +static inline int fio_cpu_count(os_cpu_mask_t *mask) { return hweight64(*mask); }