[pm:bleeding-edge 133/152] drivers/acpi/pmic/intel_pmic_crc.c:195:4: warning: passing argument 4 of 'intel_pmic_install_opregion_handler' discards 'const' qualifier from pointer target type
From: kbuild test robot <hidden>
Date: 2017-11-09 03:03:27
Also in:
linux-acpi
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge head: ae05952223bd043c0f75cf13f5397e57809edb23 commit: 3b9db22203b8026b0c2e5eb6823e267a2ce71179 [133/152] ACPI / PMIC: make intel_pmic_opregion_data structures const config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout 3b9db22203b8026b0c2e5eb6823e267a2ce71179 # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers/acpi/pmic/intel_pmic_crc.c: In function 'intel_crc_pmic_opregion_probe':
quoted
drivers/acpi/pmic/intel_pmic_crc.c:195:4: warning: passing argument 4 of 'intel_pmic_install_opregion_handler' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
&intel_crc_pmic_opregion_data);
^
In file included from drivers/acpi/pmic/intel_pmic_crc.c:21:0:
drivers/acpi/pmic/intel_pmic.h:23:5: note: expected 'struct intel_pmic_opregion_data *' but argument is of type 'const struct intel_pmic_opregion_data *'
int intel_pmic_install_opregion_handler(struct device *dev, acpi_handle handle, struct regmap *regmap, struct intel_pmic_opregion_data *d);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
drivers/acpi/pmic/intel_pmic_bxtwc.c: In function 'intel_bxtwc_pmic_opregion_probe':quoted
drivers/acpi/pmic/intel_pmic_bxtwc.c:400:4: warning: passing argument 4 of 'intel_pmic_install_opregion_handler' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
&intel_bxtwc_pmic_opregion_data);
^
In file included from drivers/acpi/pmic/intel_pmic_bxtwc.c:21:0:
drivers/acpi/pmic/intel_pmic.h:23:5: note: expected 'struct intel_pmic_opregion_data *' but argument is of type 'const struct intel_pmic_opregion_data *'
int intel_pmic_install_opregion_handler(struct device *dev, acpi_handle handle, struct regmap *regmap, struct intel_pmic_opregion_data *d);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
drivers/acpi/pmic/intel_pmic_chtwc.c: In function 'intel_cht_wc_pmic_opregion_probe':quoted
drivers/acpi/pmic/intel_pmic_chtwc.c:260:4: warning: passing argument 4 of 'intel_pmic_install_opregion_handler' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
&intel_cht_wc_pmic_opregion_data);
^
In file included from drivers/acpi/pmic/intel_pmic_chtwc.c:23:0:
drivers/acpi/pmic/intel_pmic.h:23:5: note: expected 'struct intel_pmic_opregion_data *' but argument is of type 'const struct intel_pmic_opregion_data *'
int intel_pmic_install_opregion_handler(struct device *dev, acpi_handle handle, struct regmap *regmap, struct intel_pmic_opregion_data *d);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +195 drivers/acpi/pmic/intel_pmic_crc.c
b1eea857 Aaron Lu 2014-11-24 189
b1eea857 Aaron Lu 2014-11-24 190 static int intel_crc_pmic_opregion_probe(struct platform_device *pdev)
b1eea857 Aaron Lu 2014-11-24 191 {
b1eea857 Aaron Lu 2014-11-24 192 struct intel_soc_pmic *pmic = dev_get_drvdata(pdev->dev.parent);
b1eea857 Aaron Lu 2014-11-24 193 return intel_pmic_install_opregion_handler(&pdev->dev,
b1eea857 Aaron Lu 2014-11-24 194 ACPI_HANDLE(pdev->dev.parent), pmic->regmap,
b1eea857 Aaron Lu 2014-11-24 @195 &intel_crc_pmic_opregion_data);
b1eea857 Aaron Lu 2014-11-24 196 }
b1eea857 Aaron Lu 2014-11-24 197
:::::: The code at line 195 was first introduced by commit
:::::: b1eea857d8c70dc3789cc2231e3c0a273a67ba06 ACPI / PMIC: support PMIC operation region for CrystalCove
:::::: TO: Aaron Lu [off-list ref]
:::::: CC: Rafael J. Wysocki [off-list ref]
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation Attachments
- .config.gz [application/gzip] 61814 bytes