Re: [PATCH 2/2] backlight: Add Kinetic KTD2801 driver

From: kernel test robot
Date: Wed Oct 18 2023 - 21:14:46 EST


Hi Duje,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa]

url: https://github.com/intel-lab-lkp/linux/commits/Duje-Mihanovi/dt-bindings-backlight-add-Kinetic-KTD2801-binding/20231006-025106
base: 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa
patch link: https://lore.kernel.org/r/20231005-ktd2801-v1-2-43cd85b0629a%40skole.hr
patch subject: [PATCH 2/2] backlight: Add Kinetic KTD2801 driver
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20231019/202310190928.NGF81Cxq-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231019/202310190928.NGF81Cxq-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310190928.NGF81Cxq-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/video/backlight/ktd2801-backlight.c:15:9: warning: 'DS' macro redefined [-Wmacro-redefined]
#define DS 5
^
arch/x86/include/uapi/asm/ptrace-abi.h:14:9: note: previous definition is here
#define DS 7
^
1 warning generated.


vim +/DS +15 drivers/video/backlight/ktd2801-backlight.c

8
9 #define EW_DELAY 150
10 #define EW_DET 270
11 #define LOW_BIT_HIGH 5
12 #define LOW_BIT_LOW (4 * HIGH_BIT_LOW)
13 #define HIGH_BIT_LOW 5
14 #define HIGH_BIT_HIGH (4 * HIGH_BIT_LOW)
> 15 #define DS 5
16 #define EOD_L 10
17 #define EOD_H 350
18 #define PWR_DOWN_DELAY 2600
19

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki