[pm:bleeding-edge 133/152] drivers/acpi/pmic/intel_pmic_xpower.c:266:6: warning: passing argument 4 of 'intel_pmic_install_opregion_handler' discards 'const' qualifier from pointer target type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 3b9db22203b8026b0c2e5eb6823e267a2ce71179
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

All warnings (new ones prefixed by >>):

   drivers/acpi/pmic/intel_pmic_xpower.c: In function 'intel_xpower_pmic_opregion_probe':
>> drivers/acpi/pmic/intel_pmic_xpower.c:266:6: warning: passing argument 4 of 'intel_pmic_install_opregion_handler' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
         &intel_xpower_pmic_opregion_data);
         ^
   In file included from drivers/acpi/pmic/intel_pmic_xpower.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);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +266 drivers/acpi/pmic/intel_pmic_xpower.c

d8139f631 Aaron Lu 2014-11-24  250  
d8139f631 Aaron Lu 2014-11-24  251  static int intel_xpower_pmic_opregion_probe(struct platform_device *pdev)
d8139f631 Aaron Lu 2014-11-24  252  {
491cb357d Aaron Lu 2014-11-24  253  	struct device *parent = pdev->dev.parent;
491cb357d Aaron Lu 2014-11-24  254  	struct axp20x_dev *axp20x = dev_get_drvdata(parent);
491cb357d Aaron Lu 2014-11-24  255  	acpi_status status;
491cb357d Aaron Lu 2014-11-24  256  	int result;
491cb357d Aaron Lu 2014-11-24  257  
491cb357d Aaron Lu 2014-11-24  258  	status = acpi_install_address_space_handler(ACPI_HANDLE(parent),
491cb357d Aaron Lu 2014-11-24  259  			ACPI_ADR_SPACE_GPIO, intel_xpower_pmic_gpio_handler,
491cb357d Aaron Lu 2014-11-24  260  			NULL, NULL);
491cb357d Aaron Lu 2014-11-24  261  	if (ACPI_FAILURE(status))
491cb357d Aaron Lu 2014-11-24  262  		return -ENODEV;
491cb357d Aaron Lu 2014-11-24  263  
491cb357d Aaron Lu 2014-11-24  264  	result = intel_pmic_install_opregion_handler(&pdev->dev,
491cb357d Aaron Lu 2014-11-24  265  					ACPI_HANDLE(parent), axp20x->regmap,
d8139f631 Aaron Lu 2014-11-24 @266  					&intel_xpower_pmic_opregion_data);
491cb357d Aaron Lu 2014-11-24  267  	if (result)
491cb357d Aaron Lu 2014-11-24  268  		acpi_remove_address_space_handler(ACPI_HANDLE(parent),
491cb357d Aaron Lu 2014-11-24  269  						  ACPI_ADR_SPACE_GPIO,
491cb357d Aaron Lu 2014-11-24  270  						  intel_xpower_pmic_gpio_handler);
491cb357d Aaron Lu 2014-11-24  271  
491cb357d Aaron Lu 2014-11-24  272  	return result;
d8139f631 Aaron Lu 2014-11-24  273  }
d8139f631 Aaron Lu 2014-11-24  274  

:::::: The code at line 266 was first introduced by commit
:::::: d8139f6311129b4fdc370cbfc03424afea83693b ACPI / PMIC: support PMIC operation region for XPower AXP288

:::::: TO: Aaron Lu <aaron.lu@xxxxxxxxx>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux