[pm:bleeding-edge 66/71] drivers/acpi/scan.c:130:53: warning: passing argument 3 of 'kobject_uevent_env' from incompatible pointer 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:   a9270e3c4bfe7b1b49da139186430d223f77a6f8
commit: 628c073bb72cd67c3fb34bee59683844bcf41752 [66/71] ACPI / scan: Send the change uevent with offine environmental data
config: i386-randconfig-a0-201811 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 628c073bb72cd67c3fb34bee59683844bcf41752
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/acpi/scan.c: In function 'acpi_scan_is_offline':
>> drivers/acpi/scan.c:130:53: warning: passing argument 3 of 'kobject_uevent_env' from incompatible pointer type
        kobject_uevent_env(&pn->dev->kobj, KOBJ_CHANGE, envp);
                                                        ^
   In file included from include/linux/module.h:17:0,
                    from drivers/acpi/scan.c:5:
   include/linux/kobject.h:219:5: note: expected 'char **' but argument is of type 'const char **'
    int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
        ^

vim +/kobject_uevent_env +130 drivers/acpi/scan.c

   114	
   115	bool acpi_scan_is_offline(struct acpi_device *adev, bool uevent)
   116	{
   117		struct acpi_device_physical_node *pn;
   118		bool offline = true;
   119		static const char *envp[] = { "EVENT=offline", NULL };
   120	
   121		/*
   122		 * acpi_container_offline() calls this for all of the container's
   123		 * children under the container's physical_node_lock lock.
   124		 */
   125		mutex_lock_nested(&adev->physical_node_lock, SINGLE_DEPTH_NESTING);
   126	
   127		list_for_each_entry(pn, &adev->physical_node_list, node)
   128			if (device_supports_offline(pn->dev) && !pn->dev->offline) {
   129				if (uevent)
 > 130					kobject_uevent_env(&pn->dev->kobj, KOBJ_CHANGE, envp);
   131	
   132				offline = false;
   133				break;
   134			}
   135	
   136		mutex_unlock(&adev->physical_node_lock);
   137		return offline;
   138	}
   139	

---
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