summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/cpu.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-03-20 08:11:14 -0700
committerFlorin Coras <florin.coras@gmail.com>2019-03-20 16:12:02 +0000
commit5fc939eea932efbdc7952537857bfc7fff02a950 (patch)
tree1e2e997f6da758e362a2932624a9218736ff0b50 /src/vppinfra/cpu.h
parente5c57d763b664ed7f9a0d8cd37a2c6f1111b07b9 (diff)
cpu: fix rtype for fn selected by CLIB_MARCH_FN
Change-Id: I79f65d7bd19af035442dca48b7be6c94de20c167 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vppinfra/cpu.h')
-rw-r--r--src/vppinfra/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/cpu.h b/src/vppinfra/cpu.h
index d523e88da89..ac9ae2bc7bd 100644
--- a/src/vppinfra/cpu.h
+++ b/src/vppinfra/cpu.h
@@ -370,7 +370,7 @@ CLIB_MARCH_SFX(fn ## _march_constructor) (void) \
#else
#define CLIB_MARCH_FN(fn, rtype, _args...) \
static rtype CLIB_CPU_OPTIMIZED CLIB_MARCH_SFX (fn ## _ma)(_args); \
- extern int (*fn ## _selected) (_args); \
+ extern rtype (*fn ## _selected) (_args); \
extern int fn ## _selected_priority; \
CLIB_MARCH_FN_CONSTRUCTOR (fn) \
static rtype CLIB_CPU_OPTIMIZED CLIB_MARCH_SFX (fn ## _ma)(_args)