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/src/usb/regtable_usb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hif/src/usb') 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