[pm:bleeding-edge 66/71] drivers/acpi/scan.c:130:53: error: 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: x86_64-randconfig-x014-201811 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 628c073bb72cd67c3fb34bee59683844bcf41752
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/acpi/scan.c: In function 'acpi_scan_is_offline':
>> drivers/acpi/scan.c:130:53: error: passing argument 3 of 'kobject_uevent_env' from incompatible pointer type [-Werror=incompatible-pointer-types]
        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,
        ^~~~~~~~~~~~~~~~~~
   Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
   Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64
   Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
   Cyclomatic Complexity 1 include/linux/list.h:__list_add_valid
   Cyclomatic Complexity 1 include/linux/list.h:__list_del_entry_valid
   Cyclomatic Complexity 2 include/linux/list.h:__list_add
   Cyclomatic Complexity 1 include/linux/list.h:list_add_tail
   Cyclomatic Complexity 1 include/linux/list.h:__list_del
   Cyclomatic Complexity 2 include/linux/list.h:__list_del_entry
   Cyclomatic Complexity 1 include/linux/list.h:list_del
   Cyclomatic Complexity 1 include/linux/list.h:list_empty
   Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
   Cyclomatic Complexity 1 include/linux/string.h:strnlen
   Cyclomatic Complexity 4 include/linux/string.h:strlen
   Cyclomatic Complexity 4 include/linux/string.h:memcpy
   Cyclomatic Complexity 2 include/linux/string.h:strcpy
   Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR
   Cyclomatic Complexity 1 include/linux/workqueue.h:__init_work
   Cyclomatic Complexity 1 include/linux/kobject.h:kobject_name
   Cyclomatic Complexity 28 include/linux/slab.h:kmalloc_index
   Cyclomatic Complexity 1 include/linux/slab.h:kmem_cache_alloc_trace
   Cyclomatic Complexity 1 include/linux/slab.h:kmalloc_order_trace
   Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 5 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
   Cyclomatic Complexity 1 include/linux/pm_wakeup.h:device_set_wakeup_capable
   Cyclomatic Complexity 1 include/linux/pm_wakeup.h:device_set_wakeup_enable
   Cyclomatic Complexity 1 include/linux/pm_wakeup.h:device_init_wakeup
   Cyclomatic Complexity 2 include/linux/device.h:dev_name
   Cyclomatic Complexity 1 include/linux/device.h:dev_set_uevent_suppress
   Cyclomatic Complexity 4 include/linux/device.h:device_supports_offline
   Cyclomatic Complexity 1 include/acpi/acpi_bus.h:acpi_set_device_status
   Cyclomatic Complexity 1 include/acpi/acpi_bus.h:acpi_set_hp_context
   Cyclomatic Complexity 3 include/acpi/acpi_bus.h:acpi_device_enumerated
   Cyclomatic Complexity 1 include/linux/acpi.h:acpi_device_set_enumerated
   Cyclomatic Complexity 1 include/linux/acpi.h:acpi_device_clear_enumerated
   Cyclomatic Complexity 1 include/linux/acpi_iort.h:iort_dma_setup
   Cyclomatic Complexity 1 include/linux/acpi_iort.h:iort_iommu_configure
   Cyclomatic Complexity 1 include/linux/dmi.h:dmi_name_in_vendors
   Cyclomatic Complexity 1 include/linux/dma-mapping.h:arch_setup_dma_ops
   Cyclomatic Complexity 1 include/linux/dma-mapping.h:arch_teardown_dma_ops
   Cyclomatic Complexity 1 drivers/acpi/internal.h:acpi_amba_init
   Cyclomatic Complexity 1 drivers/acpi/internal.h:acpi_watchdog_init
   Cyclomatic Complexity 2 drivers/acpi/scan.c:acpi_check_serial_bus_slave
   Cyclomatic Complexity 4 drivers/acpi/scan.c:acpi_match_madt
   Cyclomatic Complexity 4 drivers/acpi/scan.c:acpi_init_coherency
   Cyclomatic Complexity 6 drivers/acpi/scan.c:acpi_get_device_data
   Cyclomatic Complexity 2 drivers/acpi/scan.c:acpi_scan_drop_device
   Cyclomatic Complexity 5 drivers/acpi/scan.c:acpi_scan_handler_matching
   Cyclomatic Complexity 1 include/acpi/platform/aclinuxex.h:acpi_os_free
   Cyclomatic Complexity 2 drivers/acpi/scan.c:get_acpi_device
   Cyclomatic Complexity 5 drivers/acpi/scan.c:acpi_object_is_system_bus
   Cyclomatic Complexity 5 drivers/acpi/scan.c:acpi_backlight_cap_match
   Cyclomatic Complexity 5 drivers/acpi/scan.c:acpi_bus_get_flags
   Cyclomatic Complexity 1 include/linux/err.h:IS_ERR
   Cyclomatic Complexity 7 drivers/acpi/scan.c:acpi_device_get_busid
   Cyclomatic Complexity 7 drivers/acpi/scan.c:acpi_ibm_smbus_match
   Cyclomatic Complexity 3 drivers/acpi/scan.c:acpi_add_id
   Cyclomatic Complexity 5 drivers/acpi/scan.c:acpi_is_serial_bus_slave
   Cyclomatic Complexity 5 drivers/acpi/scan.c:acpi_scan_match_handler
   Cyclomatic Complexity 8 drivers/acpi/scan.c:acpi_scan_attach_handler
   Cyclomatic Complexity 2 drivers/acpi/scan.c:acpi_default_enumeration
   Cyclomatic Complexity 2 drivers/acpi/scan.c:acpi_generic_device_attach
   Cyclomatic Complexity 5 drivers/acpi/scan.c:acpi_device_should_be_hidden
   Cyclomatic Complexity 8 drivers/acpi/scan.c:acpi_bus_type_and_status
   Cyclomatic Complexity 2 drivers/acpi/scan.c:acpi_get_resource_memory
   Cyclomatic Complexity 10 drivers/acpi/scan.c:acpi_bus_init_power_state
   Cyclomatic Complexity 9 drivers/acpi/scan.c:acpi_bus_get_power_flags
   Cyclomatic Complexity 16 drivers/acpi/scan.c:acpi_bus_extract_wakeup_device_power_package
   Cyclomatic Complexity 4 drivers/acpi/scan.c:acpi_free_power_resources_lists
   Cyclomatic Complexity 4 drivers/acpi/scan.c:acpi_wakeup_gpe_init
   Cyclomatic Complexity 6 drivers/acpi/scan.c:acpi_bus_get_wakeup_device_flags
   Cyclomatic Complexity 9 drivers/acpi/scan.c:acpi_device_dep_initialize
   Cyclomatic Complexity 2 drivers/acpi/scan.c:acpi_get_spcr_uart_addr
   Cyclomatic Complexity 1 include/linux/workqueue.h:queue_work
   Cyclomatic Complexity 1 include/linux/workqueue.h:schedule_work
   Cyclomatic Complexity 1 drivers/acpi/scan.c:acpi_scan_lock_acquire
   Cyclomatic Complexity 1 drivers/acpi/scan.c:acpi_scan_lock_release
   Cyclomatic Complexity 1 drivers/acpi/scan.c:acpi_lock_hp_context
   Cyclomatic Complexity 1 drivers/acpi/scan.c:acpi_unlock_hp_context
   Cyclomatic Complexity 1 drivers/acpi/scan.c:acpi_initialize_hp_context
   Cyclomatic Complexity 2 drivers/acpi/scan.c:acpi_scan_add_handler
   Cyclomatic Complexity 2 drivers/acpi/scan.c:acpi_scan_add_handler_with_hotplug
   Cyclomatic Complexity 7 drivers/acpi/scan.c:acpi_scan_is_offline
   Cyclomatic Complexity 1 drivers/acpi/scan.c:acpi_bus_get_device
   Cyclomatic Complexity 11 drivers/acpi/scan.c:acpi_bus_offline
   Cyclomatic Complexity 6 drivers/acpi/scan.c:acpi_bus_online
   Cyclomatic Complexity 5 drivers/acpi/scan.c:acpi_scan_try_to_offline
   Cyclomatic Complexity 5 drivers/acpi/scan.c:acpi_bus_get_parent
   Cyclomatic Complexity 1 drivers/acpi/scan.c:acpi_bus_get_acpi_device
   Cyclomatic Complexity 1 drivers/acpi/scan.c:acpi_bus_put_acpi_device

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