Skip to contentSkip to conversation

drivers/video/backlight/ktd2801-backlight.c:16:33: sparse: sparse: symbol 'ktd2801_timing' was not declared. Should it be static?

PATCH kernel test robot 1 participant 1 message Feb 9, 2024 Memory management

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   445a555e0623387fa9b94e68e61681717e70200a
commit: 66c76c1cd984c14660453dfa2118014817924375 [3007/5901] backlight: Add Kinetic KTD2801 backlight support
config: arm-randconfig-r111-20240209 (https://download.01.org/0day-ci/archive/20240210/[email protected]/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240210/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)

>> drivers/video/backlight/ktd2801-backlight.c:16:33: sparse: sparse: symbol 'ktd2801_timing' was not declared. Should it be static?

vim +/ktd2801_timing +16 drivers/video/backlight/ktd2801-backlight.c

14
15 /* These values have been extracted from Samsung's driver. */

  > 16	const struct expresswire_timing ktd2801_timing = {
    17		.poweroff_us = 2600,
    18		.detect_delay_us = 150,
    19		.detect_us = 270,
    20		.data_start_us = 5,
    21		.short_bitset_us = 5,
    22		.long_bitset_us = 15,
    23		.end_of_data_low_us = 10,
    24		.end_of_data_high_us = 350
    25	};
    26	
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki