]> www.infradead.org Git - users/sagi/libnvme.git/commit
util: Define inline function as static inline
authorDaniel Wagner <dwagner@suse.de>
Wed, 22 Dec 2021 07:34:03 +0000 (08:34 +0100)
committerDaniel Wagner <dwagner@suse.de>
Thu, 23 Dec 2021 09:54:35 +0000 (10:54 +0100)
commit3d04b2c45c09a9206f0c2749102d97fc2d42204f
treebe8bdd945fe587189c8a1f619419c5d782f76f42
parent1a49e08beb1115146ade5482cb3ec61c99bf02bf
util: Define inline function as static inline

The gcc in Centos 6.10 complains with

  src/nvme/util.h:120: multiple definition of `nvme_feature_decode_arbitration'

'inline' alone does not guarantee that the function gets inlined. The
compiler is still free to decide, thus in this case it doesn't inline
and that's why we having multiple implementation with the same
name (in different compile units). 'static inline' forces the inline
which was the indent of this code.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
src/nvme/util.h