public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [asahilinux:pr/372 1/1] drivers/hid/hid-apple.c:706:37: error: use of undeclared identifier 'apple_fn_keys_mbp13'; did you mean 'apple_fn_keys_spi'?
@ 2025-02-26 14:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-26 14:46 UTC (permalink / raw)
  To: Aditya Garg; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/AsahiLinux/linux pr/372
head:   0ce68966540e787e080a3bafdecd863469693b09
commit: 0ce68966540e787e080a3bafdecd863469693b09 [1/1] HID: apple: remove duplicated table used for 13 inch MacBook Pros with touchbar
config: riscv-randconfig-001-20250226 (https://download.01.org/0day-ci/archive/20250226/202502262216.dbk84JaG-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250226/202502262216.dbk84JaG-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/202502262216.dbk84JaG-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw'
     105 | #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count)
         |                                          ~~~~~~~~~~ ^
   In file included from drivers/hid/hid-apple.c:21:
   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:31:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   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:14:
   In file included from arch/riscv/include/asm/io.h:136:
   include/asm-generic/io.h:820:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     820 |         insl(addr, buffer, count);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl'
     106 | #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count)
         |                                          ~~~~~~~~~~ ^
   In file included from drivers/hid/hid-apple.c:21:
   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:31:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   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:14:
   In file included from arch/riscv/include/asm/io.h:136:
   include/asm-generic/io.h:829:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     829 |         outsb(addr, buffer, count);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb'
     118 | #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count)
         |                                            ~~~~~~~~~~ ^
   In file included from drivers/hid/hid-apple.c:21:
   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:31:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   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:14:
   In file included from arch/riscv/include/asm/io.h:136:
   include/asm-generic/io.h:838:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     838 |         outsw(addr, buffer, count);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw'
     119 | #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count)
         |                                            ~~~~~~~~~~ ^
   In file included from drivers/hid/hid-apple.c:21:
   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:31:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   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:14:
   In file included from arch/riscv/include/asm/io.h:136:
   include/asm-generic/io.h:847:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     847 |         outsl(addr, buffer, count);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl'
     120 | #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count)
         |                                            ~~~~~~~~~~ ^
   In file included from drivers/hid/hid-apple.c:21:
   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:31:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   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:14:
   In file included from arch/riscv/include/asm/io.h:136:
   include/asm-generic/io.h:1175:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
    1175 |         return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
         |                                                   ~~~~~~~~~~ ^
>> drivers/hid/hid-apple.c:706:37: error: use of undeclared identifier 'apple_fn_keys_mbp13'; did you mean 'apple_fn_keys_spi'?
     706 |         apple_setup_key_translation(input, apple_fn_keys_mbp13);
         |                                            ^~~~~~~~~~~~~~~~~~~
         |                                            apple_fn_keys_spi
   drivers/hid/hid-apple.c:279:43: note: 'apple_fn_keys_spi' declared here
     279 | static const struct apple_key_translation apple_fn_keys_spi[] = {
         |                                           ^
   7 warnings and 1 error generated.


vim +706 drivers/hid/hid-apple.c

8c19a51591d06f5 Jiri Slaby    2008-06-18  698  
8c19a51591d06f5 Jiri Slaby    2008-06-18  699  static void apple_setup_input(struct input_dev *input)
8c19a51591d06f5 Jiri Slaby    2008-06-18  700  {
8c19a51591d06f5 Jiri Slaby    2008-06-18  701  	set_bit(KEY_NUMLOCK, input->keybit);
8c19a51591d06f5 Jiri Slaby    2008-06-18  702  
8c19a51591d06f5 Jiri Slaby    2008-06-18  703  	/* Enable all needed keys */
f1d1b3a9b41125d José Expósito 2022-02-08  704  	apple_setup_key_translation(input, apple_fn_keys);
9b8df1c76e1d6ac Janne Grunau  2021-12-19  705  	apple_setup_key_translation(input, apple_fn_keys_spi);
77280a39c0c29ee Janne Grunau  2022-01-05 @706  	apple_setup_key_translation(input, apple_fn_keys_mbp13);
f1d1b3a9b41125d José Expósito 2022-02-08  707  	apple_setup_key_translation(input, powerbook_fn_keys);
f1d1b3a9b41125d José Expósito 2022-02-08  708  	apple_setup_key_translation(input, powerbook_numlock_keys);
f1d1b3a9b41125d José Expósito 2022-02-08  709  	apple_setup_key_translation(input, apple_iso_keyboard);
0fea6fe7d5ef1b5 José Expósito 2022-02-08  710  	apple_setup_key_translation(input, magic_keyboard_alu_fn_keys);
250b369ed2380ba José Expósito 2022-02-08  711  	apple_setup_key_translation(input, magic_keyboard_2015_fn_keys);
f1d1b3a9b41125d José Expósito 2022-02-08  712  	apple_setup_key_translation(input, apple2021_fn_keys);
c5f09b1b45cbb90 Aditya Garg   2022-02-03  713  	apple_setup_key_translation(input, macbookpro_no_esc_fn_keys);
c5f09b1b45cbb90 Aditya Garg   2022-02-03  714  	apple_setup_key_translation(input, macbookpro_dedicated_esc_fn_keys);
8c19a51591d06f5 Jiri Slaby    2008-06-18  715  }
8c19a51591d06f5 Jiri Slaby    2008-06-18  716  

:::::: The code at line 706 was first introduced by commit
:::::: 77280a39c0c29eec0c58e4aa6db7abb459b25228 HID: apple: add Fn key mapping for Macbook Pro with touchbar

:::::: TO: Janne Grunau <j@jannau.net>
:::::: CC: Janne Grunau <j@jannau.net>

-- 
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-02-26 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-26 14:46 [asahilinux:pr/372 1/1] drivers/hid/hid-apple.c:706:37: error: use of undeclared identifier 'apple_fn_keys_mbp13'; did you mean 'apple_fn_keys_spi'? 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