Change (blank)cpu affinity macros to inline functions
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 14 May 2015 20:10:05 +0000 (05:10 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 14 May 2015 20:18:23 +0000 (05:18 +0900)
commit3e55d40fb5a68773b07cebb4a74870338eab81d4
treea5c6681d232b64f3caf2a2ed0b8bf5e1f5268c84
parent081c2dc3d8dd768aa17cea66584af55d744b6662
Change (blank)cpu affinity macros to inline functions

gcc warns -Wunused-value on some environments (e.g. BSD) when
the following cpu affinity macros are used in non conditional code.

Also removed #ifdef FIO_HAVE_CPU_AFFINITY in gettime-thread.c
since this variable needs to be visible when calling the function.

gettime-thread.c: In function 'gtod_thread_main':
os/os.h:82:36: warning: statement with no effect [-Wunused-value]
 #define fio_setaffinity(pid, mask) (0)
                                    ^
gettime-thread.c:48:2: note: in expansion of macro 'fio_setaffinity'
  fio_setaffinity(gettid(), fio_gtod_cpumask);
gettime-thread.c
os/os.h