Re: [PATCH v3 1/3] gpio: gpio-regmap: add flags to control some behaviour
From: Marcos Del Sol Vives <hidden>
Date: 2025-08-22 11:11:25
Also in:
linux-pci, lkml, llvm, oe-kbuild-all
El 22/08/2025 a las 5:27, kernel test robot escribió:
Hi Marcos, kernel test robot noticed the following build errors: [auto build test ERROR on brgl/gpio/for-next] [also build test ERROR on lee-mfd/for-mfd-next lee-mfd/for-mfd-fixes pci/next pci/for-linus linus/master v6.17-rc2 next-20250821] [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/Marcos-Del-Sol-Vives/gpio-gpio-regmap-add-flags-to-control-some-behaviour/20250821-182416 base: https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next patch link: https://lore.kernel.org/r/20250821101902.626329-2-marcos%40orca.pet patch subject: [PATCH v3 1/3] gpio: gpio-regmap: add flags to control some behaviour config: x86_64-buildonly-randconfig-001-20250822 (https://download.01.org/0day-ci/archive/20250822/202508221142.ETxcEpjA-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250822/202508221142.ETxcEpjA-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 [off-list ref] | Closes: https://lore.kernel.org/oe-kbuild-all/202508221142.ETxcEpjA-lkp@intel.com/ (local) All errors (new ones prefixed by >>): In file included from drivers/gpio/gpio-fxl6408.c:11:quoted
quoted
include/linux/gpio/regmap.h:26:31: error: call to undeclared function 'BIT'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]26 | GPIO_REGMAP_DIR_BEFORE_SET = BIT(0), | ^quoted
quoted
include/linux/gpio/regmap.h:26:31: error: expression is not an integer constant expression26 | GPIO_REGMAP_DIR_BEFORE_SET = BIT(0), | ^~~~~~ In file included from drivers/gpio/gpio-fxl6408.c:12: In file included from include/linux/i2c.h:13: In file included from include/linux/acpi.h:14: In file included from include/linux/device.h:32: In file included from include/linux/device/driver.h:21: In file included from include/linux/module.h:20: In file included from include/linux/elf.h:6: In file included from arch/x86/include/asm/elf.h:10: In file included from arch/x86/include/asm/ia32.h:7: In file included from include/linux/compat.h:17: In file included from include/linux/fs.h:34: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
This is correct, thanks. I added a missing "#include <linux/bits.h>" to fix it. Will be in a v4 of the patch set.