From 173abd31491c685e6bcad659d05f2d422250c101 Mon Sep 17 00:00:00 2001 From: Yu Wang Date: Fri, 10 Mar 2017 15:19:02 +0800 Subject: qcacmn: add 'const' for 'section' in struct TGT_REG_TABLE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To fix the following compilation error: warning: assignment discards ‘const’ qualifier from pointer target type, at: reg_table->section = ar6320v2_reg_table in ol_fw.c. It's because the register table is a const array, while reg_table->section does not point to a const. So add 'const' for 'section'. Change-Id: Idfef358817241e73d660d2730b74c2ca88e23af1 CRs-Fixed: 2017786 --- hif/inc/regtable_pcie.h | 4 ++-- hif/src/sdio/regtable_sdio.h | 4 ++-- hif/src/usb/regtable_usb.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'hif') diff --git a/hif/inc/regtable_pcie.h b/hif/inc/regtable_pcie.h index 25df023c2033..db4f580fd11e 100644 --- a/hif/inc/regtable_pcie.h +++ b/hif/inc/regtable_pcie.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -732,7 +732,7 @@ typedef struct TGT_REG_SECTION { } tgt_reg_section; typedef struct TGT_REG_TABLE { - tgt_reg_section *section; + const tgt_reg_section *section; uint32_t section_size; } tgt_reg_table; diff --git a/hif/src/sdio/regtable_sdio.h b/hif/src/sdio/regtable_sdio.h index 9006f9df06e5..1f282c7a7fa7 100644 --- a/hif/src/sdio/regtable_sdio.h +++ b/hif/src/sdio/regtable_sdio.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -879,7 +879,7 @@ typedef struct TGT_REG_SECTION { typedef struct TGT_REG_TABLE { - tgt_reg_section *section; + const tgt_reg_section *section; uint32_t section_size; } tgt_reg_table; #endif /* _REGTABLE_SDIO_H_ */ diff --git a/hif/src/usb/regtable_usb.h b/hif/src/usb/regtable_usb.h index 7d489892ea63..d53369880946 100644 --- a/hif/src/usb/regtable_usb.h +++ b/hif/src/usb/regtable_usb.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -1285,7 +1285,7 @@ typedef struct TGT_REG_SECTION { } tgt_reg_section; typedef struct TGT_REG_TABLE { - tgt_reg_section *section; + const tgt_reg_section *section; u_int32_t section_size; } tgt_reg_table; void target_register_tbl_attach(struct hif_softc *scn, -- cgit v1.2.3