event/octeontx: fix build for gcc < 4.6
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Apr 2017 17:05:10 +0000 (18:05 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 6 Apr 2017 18:40:31 +0000 (20:40 +0200)
commit1daa21de5b8452e4f5d23d4e9959fc8849e04f52
tree78874c06309135b1ac6afdb990522a504a0d2c3c
parent0b9ce550c4f60a69da558da6044e1b394256b43c
event/octeontx: fix build for gcc < 4.6

-Ofast option supported from gcc4.6 [1], for older versions using
"-O3 -ffast-math" instead.

[1] build error:
cc1: error: invalid option argument ‘-Ofast’

Also struct initialization build error [2] fixed.

[2] build error:
.../event/octeontx/ssovf_mbox.c: In function ‘mbox_send_request’:
.../event/octeontx/ssovf_mbox.c:95:9: error: unknown field ‘u64’
specified in initializer

Fixes: 32ff26393bb2 ("event/octeontx: add SSO HW device operations")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
drivers/event/octeontx/Makefile
drivers/event/octeontx/ssovf_mbox.c