CC: [email protected] CC: [email protected] CC: [email protected] TO: Mario Limonciello <[email protected]> CC: Hans de Goede <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 923dcc5eb0c111eccd51cc7ce1658537e3c38b25 commit: f1e1ea516721d1ea0b21327ff9e6cb2c2bb86e28 platform/x86: Move all dell drivers to their own subdirectory date: 10 months ago :::::: branch date: 15 hours ago :::::: commit date: 10 months ago config: i386-randconfig-c001-20211016 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project a49f5386ce6b091da66ea7c3a1d9a588d53becf7) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f1e1ea516721d1ea0b21327ff9e6cb2c2bb86e28 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout f1e1ea516721d1ea0b21327ff9e6cb2c2bb86e28 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386 clang-analyzer If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> clang-analyzer warnings: (new ones prefixed by >>) do { \ ^ kernel/events/core.c:10042:2: note: Loop condition is true. Entering loop body list_for_each_entry(filter, &ifh->list, entry) { ^ include/linux/list.h:628:2: note: expanded from macro 'list_for_each_entry' for (pos = list_first_entry(head, typeof(*pos), member); \ ^ kernel/events/core.c:10043:7: note: Assuming field 'dentry' is non-null if (filter->path.dentry) { ^~~~~~~~~~~~~~~~~~~ kernel/events/core.c:10043:3: note: Taking true branch if (filter->path.dentry) { ^ kernel/events/core.c:10051:35: note: Passing null pointer value via 2nd parameter 'mm' perf_addr_filter_apply(filter, mm, &event->addr_filter_ranges[count]); ^~ kernel/events/core.c:10051:4: note: Calling 'perf_addr_filter_apply' perf_addr_filter_apply(filter, mm, &event->addr_filter_ranges[count]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/events/core.c:10004:13: note: Dereference of null pointer for (vma = mm->mmap; vma; vma = vma->vm_next) { ^~~~~~~~ kernel/events/core.c:11792:2: warning: Value stored to 'err' is never read [clang-analyzer-deadcode.DeadStores] err = 0; ^ ~ kernel/events/core.c:11792:2: note: Value stored to 'err' is never read err = 0; ^ ~ Suppressed 5 warnings (3 in non-user code, 2 with check filters). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. drivers/iio/light/tsl2772.c:896:40: warning: The result of the left shift is undefined because the left operand is negative [clang-analyzer-core.UndefinedBinaryOperatorResult] chip->settings.prox_thres_high = (max << 1) - mean; ^ drivers/iio/light/tsl2772.c:1057:6: note: Assuming the condition is false if (kstrtobool(buf, &value) || !value) ^~~~~~~~~~~~~~~~~~~~~~~ drivers/iio/light/tsl2772.c:1057:6: note: Left side of '||' is false drivers/iio/light/tsl2772.c:1057:33: note: Assuming 'value' is true if (kstrtobool(buf, &value) || !value) ^~~~~~ drivers/iio/light/tsl2772.c:1057:2: note: Taking false branch if (kstrtobool(buf, &value) || !value) ^ drivers/iio/light/tsl2772.c:1060:8: note: Calling 'tsl2772_prox_cal' ret = tsl2772_prox_cal(indio_dev); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/iio/light/tsl2772.c:875:6: note: Assuming field 'prox_max_samples_cal' is >= 1 if (chip->settings.prox_max_samples_cal < 1 || ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/iio/light/tsl2772.c:875:6: note: Left side of '||' is false drivers/iio/light/tsl2772.c:876:6: note: Assuming field 'prox_max_samples_cal' is <= MAX_SAMPLES_CAL chip->settings.prox_max_samples_cal > MAX_SAMPLES_CAL) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/iio/light/tsl2772.c:875:2: note: Taking false branch if (chip->settings.prox_max_samples_cal < 1 || ^ drivers/iio/light/tsl2772.c:879:14: note: 'i' is < field 'prox_max_samples_cal' for (i = 0; i < chip->settings.prox_max_samples_cal; i++) { ^ drivers/iio/light/tsl2772.c:879:2: note: Loop condition is true. Entering loop body for (i = 0; i < chip->settings.prox_max_samples_cal; i++) { ^ drivers/iio/light/tsl2772.c:882:7: note: 'ret' is >= 0 if (ret < 0) ^~~ drivers/iio/light/tsl2772.c:882:3: note: Taking false branch if (ret < 0) ^ drivers/iio/light/tsl2772.c:879:14: note: Assuming 'i' is >= field 'prox_max_samples_cal' for (i = 0; i < chip->settings.prox_max_samples_cal; i++) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/iio/light/tsl2772.c:879:2: note: Loop condition is false. Execution continues on line 888 for (i = 0; i < chip->settings.prox_max_samples_cal; i++) { ^ drivers/iio/light/tsl2772.c:889:2: note: The value -2147483648 is assigned to 'max' max = INT_MIN; ^~~~~~~~~~~~~ drivers/iio/light/tsl2772.c:890:14: note: Assuming 'i' is >= field 'prox_max_samples_cal' for (i = 0; i < chip->settings.prox_max_samples_cal; i++) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/iio/light/tsl2772.c:890:2: note: Loop condition is false. Execution continues on line 894 for (i = 0; i < chip->settings.prox_max_samples_cal; i++) { ^ drivers/iio/light/tsl2772.c:896:40: note: The result of the left shift is undefined because the left operand is negative chip->settings.prox_thres_high = (max << 1) - mean; ~~~ ^ Suppressed 4 warnings (3 in non-user code, 1 with check filters). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 4 warnings generated. fs/f2fs/super.c:937:4: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(ext[ext_cnt], name); ^~~~~~ fs/f2fs/super.c:937:4: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 strcpy(ext[ext_cnt], name); ^~~~~~ Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 6 warnings generated. >> drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c:158:3: warning: >> Call to function 'strcat' is insecure as it does not provide bounding of the >> memory buffer. Replace unbounded copy functions with analogous functions >> that support length arguments such as 'strlcat'. CWE-119 >> [clang-analyzer-security.insecureAPI.strcpy] strcat(wmi_priv.enumeration_data[instance_id].dell_value_modifier, ^~~~~~ drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c:158:3: note: Call to function 'strcat' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcat'. CWE-119 strcat(wmi_priv.enumeration_data[instance_id].dell_value_modifier, ^~~~~~ drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c:160:3: warning: Call to function 'strcat' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcat'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcat(wmi_priv.enumeration_data[instance_id].dell_value_modifier, ";"); ^~~~~~ drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c:160:3: note: Call to function 'strcat' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcat'. CWE-119 strcat(wmi_priv.enumeration_data[instance_id].dell_value_modifier, ";"); ^~~~~~ drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c:166:3: warning: Call to function 'strcat' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcat'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcat(wmi_priv.enumeration_data[instance_id].possible_values, ^~~~~~ drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c:166:3: note: Call to function 'strcat' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcat'. CWE-119 strcat(wmi_priv.enumeration_data[instance_id].possible_values, ^~~~~~ drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c:168:3: warning: Call to function 'strcat' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcat'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcat(wmi_priv.enumeration_data[instance_id].possible_values, ";"); ^~~~~~ drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c:168:3: note: Call to function 'strcat' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcat'. CWE-119 strcat(wmi_priv.enumeration_data[instance_id].possible_values, ";"); ^~~~~~ Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. drivers/iio/dac/ad5770r.c:133:8: warning: Excessive padding in 'struct ad5770r_state' (86 padding bytes, where 22 is optimal). Optimal fields order: transf_buf, internal_ref, external_res, spi, regmap, vref_reg, gpio_reset, vref, ch_pwr_down, output_mode, consider reordering the fields or adding explicit padding members [clang-analyzer-optin.performance.Padding] struct ad5770r_state { ~~~~~~~^~~~~~~~~~~~~~~ drivers/iio/dac/ad5770r.c:133:8: note: Excessive padding in 'struct ad5770r_state' (86 padding bytes, where 22 is optimal). Optimal fields order: transf_buf, internal_ref, external_res, spi, regmap, vref_reg, gpio_reset, vref, ch_pwr_down, output_mode, consider reordering the fields or adding explicit padding members struct ad5770r_state { ~~~~~~~^~~~~~~~~~~~~~~ drivers/iio/dac/ad5770r.c:544:2: warning: Undefined or garbage value returned to caller [clang-analyzer-core.uninitialized.UndefReturn] return ret; ^ drivers/iio/dac/ad5770r.c:609:6: note: Assuming 'indio_dev' is non-null if (!indio_dev) ^~~~~~~~~~ drivers/iio/dac/ad5770r.c:609:2: note: Taking false branch if (!indio_dev) ^ drivers/iio/dac/ad5770r.c:618:2: note: Taking false branch if (IS_ERR(regmap)) { ^ drivers/iio/dac/ad5770r.c:626:2: note: Taking false branch if (!IS_ERR(st->vref_reg)) { ^ drivers/iio/dac/ad5770r.c:646:7: note: Assuming the condition is true if (PTR_ERR(st->vref_reg) == -ENODEV) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/iio/dac/ad5770r.c:646:3: note: Taking true branch if (PTR_ERR(st->vref_reg) == -ENODEV) { ^ drivers/iio/dac/ad5770r.c:660:8: note: Calling 'ad5770r_init' ret = ad5770r_init(st); ^~~~~~~~~~~~~~~~ drivers/iio/dac/ad5770r.c:553:2: note: Taking false branch if (IS_ERR(st->gpio_reset)) ^ drivers/iio/dac/ad5770r.c:558:6: note: 'ret' is 0 if (ret) ^~~ drivers/iio/dac/ad5770r.c:558:2: note: Taking false branch if (ret) ^ drivers/iio/dac/ad5770r.c:562:8: note: Calling 'ad5770r_channel_config' ret = ad5770r_channel_config(st); ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/iio/dac/ad5770r.c:516:6: note: 'ret' declared without an initial value int ret, tmp[2], min, max; ^~~ drivers/iio/dac/ad5770r.c:521:6: note: Assuming 'num' is equal to AD5770R_MAX_CHANNELS if (num != AD5770R_MAX_CHANNELS) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/iio/dac/ad5770r.c:521:2: note: Taking false branch if (num != AD5770R_MAX_CHANNELS) ^ drivers/iio/dac/ad5770r.c:524:2: note: Loop condition is false. Execution continues on line 544 device_for_each_child_node(&st->spi->dev, child) { ^ include/linux/property.h:111:2: note: expanded from macro 'device_for_each_child_node' for (child = device_get_next_child_node(dev, NULL); child; \ -- 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. drivers/iio/potentiometer/max5481.c:44:8: warning: Excessive padding in 'struct max5481_data' (117 padding bytes, where 53 is optimal). Optimal fields order: msg, spi, cfg, consider reordering the fields or adding explicit padding members [clang-analyzer-optin.performance.Padding] struct max5481_data { ~~~~~~~^~~~~~~~~~~~~~ drivers/iio/potentiometer/max5481.c:44:8: note: Excessive padding in 'struct max5481_data' (117 padding bytes, where 53 is optimal). Optimal fields order: msg, spi, cfg, consider reordering the fields or adding explicit padding members struct max5481_data { ~~~~~~~^~~~~~~~~~~~~~ Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. drivers/iio/potentiometer/mcp41010.c:58:8: warning: Excessive padding in 'struct mcp41010_data' (86 padding bytes, where 22 is optimal). Optimal fields order: buf, spi, cfg, value, lock, consider reordering the fields or adding explicit padding members [clang-analyzer-optin.performance.Padding] struct mcp41010_data { ~~~~~~~^~~~~~~~~~~~~~~ drivers/iio/potentiometer/mcp41010.c:58:8: note: Excessive padding in 'struct mcp41010_data' (86 padding bytes, where 22 is optimal). Optimal fields order: buf, spi, cfg, value, lock, consider reordering the fields or adding explicit padding members struct mcp41010_data { ~~~~~~~^~~~~~~~~~~~~~~ Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. >> drivers/platform/x86/dell/dell-laptop.c:1596:4: warning: Value stored to >> 'unit' is never read [clang-analyzer-deadcode.DeadStores] unit = KBD_TIMEOUT_SECONDS; ^ ~~~~~~~~~~~~~~~~~~~ drivers/platform/x86/dell/dell-laptop.c:1596:4: note: Value stored to 'unit' is never read unit = KBD_TIMEOUT_SECONDS; ^ ~~~~~~~~~~~~~~~~~~~ Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. drivers/iio/frequency/adf4371.c:157:8: warning: Excessive padding in 'struct adf4371_state' (110 padding bytes, where 46 is optimal). Optimal fields order: buf, spi, regmap, clkin, chip_info, clkin_freq, fpfd, integer, fract1, fract2, mod2, rf_div_sel, ref_div_factor, lock, consider reordering the fields or adding explicit padding members [clang-analyzer-optin.performance.Padding] struct adf4371_state { ~~~~~~~^~~~~~~~~~~~~~~ drivers/iio/frequency/adf4371.c:157:8: note: Excessive padding in 'struct adf4371_state' (110 padding bytes, where 46 is optimal). Optimal fields order: buf, spi, regmap, clkin, chip_info, clkin_freq, fpfd, integer, fract1, fract2, mod2, rf_div_sel, ref_div_factor, lock, consider reordering the fields or adding explicit padding members struct adf4371_state { ~~~~~~~^~~~~~~~~~~~~~~ Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. drivers/leds/uleds.c:150:4: warning: Value stored to 'retval' is never read [clang-analyzer-deadcode.DeadStores] retval = copy_to_user(buffer, &udev->brightness, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/leds/uleds.c:150:4: note: Value stored to 'retval' is never read retval = copy_to_user(buffer, &udev->brightness, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 3 warnings generated. Suppressed 3 warnings (3 in non-user code). vim +158 drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 129 e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 130 /** e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 131 * populate_enum_data() - Populate all properties of an instance under enumeration attribute e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 132 * @enumeration_obj: ACPI object with enumeration data e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 133 * @instance_id: The instance to enumerate e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 134 * @attr_name_kobj: The parent kernel object e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 135 */ e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 136 int populate_enum_data(union acpi_object *enumeration_obj, int instance_id, e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 137 struct kobject *attr_name_kobj) e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 138 { e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 139 int i, next_obj, value_modifier_count, possible_values_count; e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 140 e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 141 wmi_priv.enumeration_data[instance_id].attr_name_kobj = attr_name_kobj; e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 142 strlcpy_attr(wmi_priv.enumeration_data[instance_id].attribute_name, e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 143 enumeration_obj[ATTR_NAME].string.pointer); e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 144 strlcpy_attr(wmi_priv.enumeration_data[instance_id].display_name_language_code, e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 145 enumeration_obj[DISPL_NAME_LANG_CODE].string.pointer); e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 146 strlcpy_attr(wmi_priv.enumeration_data[instance_id].display_name, e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 147 enumeration_obj[DISPLAY_NAME].string.pointer); e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 148 strlcpy_attr(wmi_priv.enumeration_data[instance_id].default_value, e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 149 enumeration_obj[DEFAULT_VAL].string.pointer); e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 150 strlcpy_attr(wmi_priv.enumeration_data[instance_id].dell_modifier, e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 151 enumeration_obj[MODIFIER].string.pointer); e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 152 e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 153 next_obj = MODIFIER + 1; e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 154 e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 155 value_modifier_count = (uintptr_t)enumeration_obj[next_obj].string.pointer; e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 156 e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 157 for (i = 0; i < value_modifier_count; i++) { e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 @158 strcat(wmi_priv.enumeration_data[instance_id].dell_value_modifier, e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 159 enumeration_obj[++next_obj].string.pointer); e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 160 strcat(wmi_priv.enumeration_data[instance_id].dell_value_modifier, ";"); e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 161 } e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 162 e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 163 possible_values_count = (uintptr_t) enumeration_obj[++next_obj].string.pointer; e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 164 e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 165 for (i = 0; i < possible_values_count; i++) { e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 166 strcat(wmi_priv.enumeration_data[instance_id].possible_values, e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 167 enumeration_obj[++next_obj].string.pointer); e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 168 strcat(wmi_priv.enumeration_data[instance_id].possible_values, ";"); e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 169 } e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 170 e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 171 return sysfs_create_group(attr_name_kobj, &enumeration_attr_group); e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 172 } e8a60aa7404bfe drivers/platform/x86/dell-wmi-sysman/enum-attributes.c Divya Bharathi 2020-10-27 173 :::::: The code at line 158 was first introduced by commit :::::: e8a60aa7404bfef37705da5607c97737073ac38d platform/x86: Introduce support for Systems Management Driver over WMI for Dell Systems :::::: TO: Divya Bharathi <[email protected]> :::::: CC: Hans de Goede <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
