* Re: [PATCH v5 4/5] Input: cs40l50 - Add support for the CS40L50 haptic driver
[not found] <20240104223643.876292-5-jogletre@opensource.cirrus.com>
@ 2024-01-06 10:02 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-06 10:02 UTC (permalink / raw)
To: James Ogletree
Cc: llvm, oe-kbuild-all, James Ogletree, Fred Treven, Ben Bright,
Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Simon Trimmer, Charles Keepax, Richard Fitzgerald, Lee Jones,
Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
James Schulman, David Rhodes, Alexandre Belloni, Peng Fan,
Jeff LaBundy, Sebastian Reichel, Jacky Bai, Weidong Wang,
Arnd Bergmann, Herve Codina, Shuming Fan, Shenghao Ding, Ryan Lee,
Linus Walleij, open list:CIRRUS LOGIC HAPTIC DRIVERS
Hi James,
kernel test robot noticed the following build errors:
[auto build test ERROR on lee-mfd/for-mfd-next]
[also build test ERROR on dtor-input/next dtor-input/for-linus broonie-sound/for-next linus/master lee-mfd/for-mfd-fixes v6.7-rc8 next-20240105]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/James-Ogletree/firmware-cs_dsp-Add-write-sequencer-interface/20240105-064201
base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
patch link: https://lore.kernel.org/r/20240104223643.876292-5-jogletre%40opensource.cirrus.com
patch subject: [PATCH v5 4/5] Input: cs40l50 - Add support for the CS40L50 haptic driver
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240106/202401061706.DudVTUYk-lkp@intel.com/config)
compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240106/202401061706.DudVTUYk-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401061706.DudVTUYk-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/input/misc/cs40l50-vibra.c:130:14: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
130 | gpio_num = FIELD_GET(CS40L50_GPIO_NUM_MASK, button);
| ^
1 error generated.
vim +/FIELD_GET +130 drivers/input/misc/cs40l50-vibra.c
123
124 static int vibra_effect_mapping_set(struct vibra_info *info, u16 button,
125 struct vibra_effect *effect)
126 {
127 u32 gpio_num, gpio_edge;
128
129 if (button) {
> 130 gpio_num = FIELD_GET(CS40L50_GPIO_NUM_MASK, button);
131 gpio_edge = FIELD_GET(CS40L50_GPIO_EDGE_MASK, button);
132 effect->gpio_mapping = info->dsp.gpio_base_reg +
133 (gpio_num * 8) - gpio_edge;
134
135 return regmap_write(info->regmap, effect->gpio_mapping, button);
136 }
137
138 effect->gpio_mapping = CS40L50_GPIO_MAPPING_INVALID;
139
140 return 0;
141 }
142
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread