llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [RFC PATCH 1/1] HID: input: Add support for multiple batteries per device
       [not found] <20251111105634.1684751-2-lzampier@redhat.com>
@ 2025-11-14  7:52 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-14  7:52 UTC (permalink / raw)
  To: Lucas Zampieri; +Cc: llvm, oe-kbuild-all

Hi Lucas,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on hid/for-next]
[also build test ERROR on linus/master v6.18-rc5 next-20251114]
[cannot apply to dtor-input/next dtor-input/for-linus]
[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/Lucas-Zampieri/HID-input-Add-support-for-multiple-batteries-per-device/20251111-191143
base:   https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next
patch link:    https://lore.kernel.org/r/20251111105634.1684751-2-lzampier%40redhat.com
patch subject: [RFC PATCH 1/1] HID: input: Add support for multiple batteries per device
config: riscv-randconfig-002-20251114 (https://download.01.org/0day-ci/archive/20251114/202511141515.7CEez9Uh-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 0bba1e76581bad04e7d7f09f5115ae5e2989e0d9)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251114/202511141515.7CEez9Uh-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/202511141515.7CEez9Uh-lkp@intel.com/

All errors (new ones prefixed by >>):

     109 | #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count)
         |                                          ~~~~~~~~~~ ^
   In file included from drivers/hid/hid-input.c:20:
   In file included from include/linux/hid.h:29:
   In file included from include/linux/hid_bpf.h:6:
   In file included from include/linux/bpf.h:32:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:27:
   In file included from include/linux/kernel_stat.h:8:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:12:
   In file included from arch/riscv/include/asm/io.h:140:
   include/asm-generic/io.h:854:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     854 |         insl(addr, buffer, count);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:110:53: note: expanded from macro 'insl'
     110 | #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count)
         |                                          ~~~~~~~~~~ ^
   In file included from drivers/hid/hid-input.c:20:
   In file included from include/linux/hid.h:29:
   In file included from include/linux/hid_bpf.h:6:
   In file included from include/linux/bpf.h:32:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:27:
   In file included from include/linux/kernel_stat.h:8:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:12:
   In file included from arch/riscv/include/asm/io.h:140:
   include/asm-generic/io.h:863:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     863 |         outsb(addr, buffer, count);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:122:55: note: expanded from macro 'outsb'
     122 | #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count)
         |                                            ~~~~~~~~~~ ^
   In file included from drivers/hid/hid-input.c:20:
   In file included from include/linux/hid.h:29:
   In file included from include/linux/hid_bpf.h:6:
   In file included from include/linux/bpf.h:32:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:27:
   In file included from include/linux/kernel_stat.h:8:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:12:
   In file included from arch/riscv/include/asm/io.h:140:
   include/asm-generic/io.h:872:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     872 |         outsw(addr, buffer, count);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:123:55: note: expanded from macro 'outsw'
     123 | #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count)
         |                                            ~~~~~~~~~~ ^
   In file included from drivers/hid/hid-input.c:20:
   In file included from include/linux/hid.h:29:
   In file included from include/linux/hid_bpf.h:6:
   In file included from include/linux/bpf.h:32:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:27:
   In file included from include/linux/kernel_stat.h:8:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:12:
   In file included from arch/riscv/include/asm/io.h:140:
   include/asm-generic/io.h:881:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     881 |         outsl(addr, buffer, count);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:124:55: note: expanded from macro 'outsl'
     124 | #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count)
         |                                            ~~~~~~~~~~ ^
   In file included from drivers/hid/hid-input.c:20:
   In file included from include/linux/hid.h:29:
   In file included from include/linux/hid_bpf.h:6:
   In file included from include/linux/bpf.h:32:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:27:
   In file included from include/linux/kernel_stat.h:8:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:12:
   In file included from arch/riscv/include/asm/io.h:140:
   include/asm-generic/io.h:1209:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
    1209 |         return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
         |                                                   ~~~~~~~~~~ ^
   In file included from drivers/hid/hid-input.c:2475:
>> drivers/hid/hid-input-test.c:18:50: error: incompatible pointer types passing 'struct hid_device *' to parameter of type 'struct hid_battery *' [-Wincompatible-pointer-types]
      18 |         handled = hidinput_update_battery_charge_status(dev, HID_DG_HEIGHT, 0);
         |                                                         ^~~
   drivers/hid/hid-input.c:672:71: note: passing argument to parameter 'bat' here
     672 | static bool hidinput_update_battery_charge_status(struct hid_battery *bat,
         |                                                                       ^
   In file included from drivers/hid/hid-input.c:2475:
   drivers/hid/hid-input-test.c:22:50: error: incompatible pointer types passing 'struct hid_device *' to parameter of type 'struct hid_battery *' [-Wincompatible-pointer-types]
      22 |         handled = hidinput_update_battery_charge_status(dev, HID_BAT_CHARGING, 0);
         |                                                         ^~~
   drivers/hid/hid-input.c:672:71: note: passing argument to parameter 'bat' here
     672 | static bool hidinput_update_battery_charge_status(struct hid_battery *bat,
         |                                                                       ^
   In file included from drivers/hid/hid-input.c:2475:
   drivers/hid/hid-input-test.c:26:50: error: incompatible pointer types passing 'struct hid_device *' to parameter of type 'struct hid_battery *' [-Wincompatible-pointer-types]
      26 |         handled = hidinput_update_battery_charge_status(dev, HID_BAT_CHARGING, 1);
         |                                                         ^~~
   drivers/hid/hid-input.c:672:71: note: passing argument to parameter 'bat' here
     672 | static bool hidinput_update_battery_charge_status(struct hid_battery *bat,
         |                                                                       ^
   7 warnings and 3 errors generated.


vim +18 drivers/hid/hid-input-test.c

a608dc1c06397dc José Expósito 2022-11-24   9  
a82231b2a8712d0 José Expósito 2025-08-14  10  static void hid_test_input_update_battery_charge_status(struct kunit *test)
a608dc1c06397dc José Expósito 2022-11-24  11  {
a608dc1c06397dc José Expósito 2022-11-24  12  	struct hid_device *dev;
a608dc1c06397dc José Expósito 2022-11-24  13  	bool handled;
a608dc1c06397dc José Expósito 2022-11-24  14  
a608dc1c06397dc José Expósito 2022-11-24  15  	dev = kunit_kzalloc(test, sizeof(*dev), GFP_KERNEL);
a608dc1c06397dc José Expósito 2022-11-24  16  	KUNIT_ASSERT_NOT_ERR_OR_NULL(test, dev);
a608dc1c06397dc José Expósito 2022-11-24  17  
a82231b2a8712d0 José Expósito 2025-08-14 @18  	handled = hidinput_update_battery_charge_status(dev, HID_DG_HEIGHT, 0);
a608dc1c06397dc José Expósito 2022-11-24  19  	KUNIT_EXPECT_FALSE(test, handled);
a608dc1c06397dc José Expósito 2022-11-24  20  	KUNIT_EXPECT_EQ(test, dev->battery_charge_status, POWER_SUPPLY_STATUS_UNKNOWN);
a608dc1c06397dc José Expósito 2022-11-24  21  
a82231b2a8712d0 José Expósito 2025-08-14  22  	handled = hidinput_update_battery_charge_status(dev, HID_BAT_CHARGING, 0);
a608dc1c06397dc José Expósito 2022-11-24  23  	KUNIT_EXPECT_TRUE(test, handled);
a608dc1c06397dc José Expósito 2022-11-24  24  	KUNIT_EXPECT_EQ(test, dev->battery_charge_status, POWER_SUPPLY_STATUS_DISCHARGING);
a608dc1c06397dc José Expósito 2022-11-24  25  
a82231b2a8712d0 José Expósito 2025-08-14  26  	handled = hidinput_update_battery_charge_status(dev, HID_BAT_CHARGING, 1);
a608dc1c06397dc José Expósito 2022-11-24  27  	KUNIT_EXPECT_TRUE(test, handled);
a608dc1c06397dc José Expósito 2022-11-24  28  	KUNIT_EXPECT_EQ(test, dev->battery_charge_status, POWER_SUPPLY_STATUS_CHARGING);
a608dc1c06397dc José Expósito 2022-11-24  29  }
a608dc1c06397dc José Expósito 2022-11-24  30  

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-14  7:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20251111105634.1684751-2-lzampier@redhat.com>
2025-11-14  7:52 ` [RFC PATCH 1/1] HID: input: Add support for multiple batteries per device kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).