From 7afca7ce242d3d1dc4cf01c92f8bcac23241f29e Mon Sep 17 00:00:00 2001 From: Ad!thya R Date: Sun, 11 Mar 2018 23:28:40 +0530 Subject: [PATCH] prima: Fix build on GCC 7.x --- .../staging/prima/CORE/VOSS/src/wlan_nv_template_builtin.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/prima/CORE/VOSS/src/wlan_nv_template_builtin.c b/drivers/staging/prima/CORE/VOSS/src/wlan_nv_template_builtin.c index 14c6eadf524..e26b697f793 100644 --- a/drivers/staging/prima/CORE/VOSS/src/wlan_nv_template_builtin.c +++ b/drivers/staging/prima/CORE/VOSS/src/wlan_nv_template_builtin.c @@ -587,9 +587,8 @@ _NV_TEMPLATE_TABLE NvTablesBuiltIn[/*TABLES_MAX*/][TABLE_ENTRIES_MAX] = { ((char *)&(nvDefaults.tables.hwCalValues.calData.psSlpTimeOvrHdxLNA5G) - (char *)&nvDefaults.tables.hwCalValues.calData),"psSlpTimeOvrHdxLNA5G"}, {"ed",_ID_U8,SINGULAR,0,0,0, - (((char *)&(nvDefaults.tables.hwCalValues.calData.psSlpTimeOvrHdxLNA5G) + - sizeof(uint16)) - (char *)&nvDefaults.tables.hwCalValues.calData), - "nv_TxBBFSel9MHz"}, + ((char *)&(nvDefaults.tables.hwCalValues.calData.psSlpTimeOvrHdxLNA5G) - + (char *)&nvDefaults.tables.hwCalValues.calData),"nv_TxBBFSel9MHz"}, {"ee",_ID_U8,SINGULAR,0,0,0, ((char *)&(nvDefaults.tables.hwCalValues.calData.hwParam2) - (char *)&nvDefaults.tables.hwCalValues.calData),"hwParam2"},