Re: [PATCH v1 2/2] regulator: pf0900: Add PMIC PF0900 support

From: kernel test robot
Date: Wed Jun 18 2025 - 00:22:07 EST


Hi Joy,

kernel test robot noticed the following build warnings:

[auto build test WARNING on broonie-regulator/for-next]
[also build test WARNING on linus/master v6.16-rc2 next-20250617]
[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/Joy-Zou/dt-bindings-regulator-add-PF0900-regulator-yaml/20250617-182500
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
patch link: https://lore.kernel.org/r/20250617102025.3455544-3-joy.zou%40nxp.com
patch subject: [PATCH v1 2/2] regulator: pf0900: Add PMIC PF0900 support
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20250618/202506181134.0Hkvy7CK-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250618/202506181134.0Hkvy7CK-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/202506181134.0Hkvy7CK-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from drivers/regulator/pf0900-regulator.c:20:
>> include/linux/regulator/pf0900.h:235:9: warning: 'IRQ_MODE' redefined
235 | #define IRQ_MODE 0x04
| ^~~~~~~~
In file included from arch/arm/include/asm/ptrace.h:10,
from arch/arm/include/asm/irqflags.h:7,
from include/linux/irqflags.h:18,
from arch/arm/include/asm/bitops.h:28,
from include/linux/bitops.h:67,
from include/linux/thread_info.h:27,
from include/asm-generic/preempt.h:5,
from ./arch/arm/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:79,
from include/linux/spinlock.h:56,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/slab.h:16,
from include/linux/resource_ext.h:11,
from include/linux/acpi.h:13,
from include/linux/i2c.h:13,
from drivers/regulator/pf0900-regulator.c:10:
arch/arm/include/uapi/asm/ptrace.h:60:9: note: this is the location of the previous definition
60 | #define IRQ_MODE 0x00000012
| ^~~~~~~~


vim +/IRQ_MODE +235 include/linux/regulator/pf0900.h

227
228
229 /* PF0900_REG_STSTEM_INT bits */
230 #define IRQ_EWARN 0x80
231 #define IRQ_GPIO 0x40
232 #define IRQ_OV 0x20
233 #define IRQ_UV 0x10
234 #define IRQ_ILIM 0x08
> 235 #define IRQ_MODE 0x04
236 #define IRQ_STATUS2 0x02
237 #define IRQ_STATUS1 0x01
238

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