[linux-next:master 1595/10906] drivers/platform/chrome/cros_kbd_led_backlight.c:183:42: warning: unused variable 'keyboard_led_drvdata_ec_pwm'

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

 



Hi Tzung-Bi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6014cfa5bf32cf8c5c58b3cfd5ee0e1542c8a825
commit: 40f58143745eaabc68ef44b068642ca3b38d23a6 [1595/10906] platform/chrome: cros_kbd_led_backlight: support EC PWM backend
config: s390-randconfig-r023-20220717 (https://download.01.org/0day-ci/archive/20220717/202207170538.MR39dw8m-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 07022e6cf9b5b3baa642be53d0b3c3f1c403dbfd)
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
        # install s390 cross compiling tool for clang build
        # apt-get install binutils-s390x-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=40f58143745eaabc68ef44b068642ca3b38d23a6
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 40f58143745eaabc68ef44b068642ca3b38d23a6
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash drivers/iio/light/ drivers/platform/chrome/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/platform/chrome/cros_kbd_led_backlight.c:183:42: warning: unused variable 'keyboard_led_drvdata_ec_pwm' [-Wunused-const-variable]
   static const struct keyboard_led_drvdata keyboard_led_drvdata_ec_pwm = {
                                            ^
   1 warning generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for DRM_DP_AUX_BUS
   Depends on HAS_IOMEM && DRM && OF
   Selected by
   - DRM_MSM && HAS_IOMEM && DRM && (ARCH_QCOM || SOC_IMX5 || COMPILE_TEST && COMMON_CLK && IOMMU_SUPPORT && (QCOM_OCMEM || QCOM_OCMEM && (QCOM_LLCC || QCOM_LLCC && (QCOM_COMMAND_DB || QCOM_COMMAND_DB


vim +/keyboard_led_drvdata_ec_pwm +183 drivers/platform/chrome/cros_kbd_led_backlight.c

   182	
 > 183	static const struct keyboard_led_drvdata keyboard_led_drvdata_ec_pwm = {
   184		.init = keyboard_led_init_ec_pwm,
   185		.brightness_set_blocking = keyboard_led_set_brightness_ec_pwm,
   186		.brightness_get = keyboard_led_get_brightness_ec_pwm,
   187		.max_brightness = KEYBOARD_BACKLIGHT_MAX,
   188	};
   189	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux