linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [asahilinux:bits/090-spi-hid 12/12] drivers/hid/spi-hid/spi-hid-apple-of.c:114:25: error: 'spi_hid_apple_of_match' undeclared here (not in a function); did you mean 'spihid_apple_of_match'?
@ 2022-01-18 16:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-18 16:59 UTC (permalink / raw)
  To: Janne Grunau; +Cc: kbuild-all, linux-kernel, Hector Martin

tree:   https://github.com/AsahiLinux/linux bits/090-spi-hid
head:   25070af6e6d0c750f307b019df19cc93a54b664c
commit: 25070af6e6d0c750f307b019df19cc93a54b664c [12/12] WIP: HID: transport: spi: add Apple SPI transport
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20220119/202201190058.vURTyce7-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/AsahiLinux/linux/commit/25070af6e6d0c750f307b019df19cc93a54b664c
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux bits/090-spi-hid
        git checkout 25070af6e6d0c750f307b019df19cc93a54b664c
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/hid/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/hid/spi-hid/spi-hid-apple-of.c:24:5: warning: no previous prototype for 'spihid_apple_of_power_on' [-Wmissing-prototypes]
      24 | int spihid_apple_of_power_on(struct spihid_apple_ops *ops)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/hid/spi-hid/spi-hid-apple-of.c:40:5: warning: no previous prototype for 'spihid_apple_of_power_off' [-Wmissing-prototypes]
      40 | int spihid_apple_of_power_off(struct spihid_apple_ops *ops)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/hid/spi-hid/spi-hid-apple-of.c:50:5: warning: no previous prototype for 'spihid_apple_of_enable_irq' [-Wmissing-prototypes]
      50 | int spihid_apple_of_enable_irq(struct spihid_apple_ops *ops)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/hid/spi-hid/spi-hid-apple-of.c:59:5: warning: no previous prototype for 'spihid_apple_of_disable_irq' [-Wmissing-prototypes]
      59 | int spihid_apple_of_disable_irq(struct spihid_apple_ops *ops)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/device/driver.h:21,
                    from include/linux/device.h:32,
                    from include/linux/spi/spi.h:10,
                    from drivers/hid/spi-hid/spi-hid-apple.h:7,
                    from drivers/hid/spi-hid/spi-hid-apple-of.c:14:
>> drivers/hid/spi-hid/spi-hid-apple-of.c:114:25: error: 'spi_hid_apple_of_match' undeclared here (not in a function); did you mean 'spihid_apple_of_match'?
     114 | MODULE_DEVICE_TABLE(of, spi_hid_apple_of_match);
         |                         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/module.h:244:15: note: in definition of macro 'MODULE_DEVICE_TABLE'
     244 | extern typeof(name) __mod_##type##__##name##_device_table  \
         |               ^~~~
>> include/linux/module.h:244:21: error: '__mod_of__spi_hid_apple_of_match_device_table' aliased to undefined symbol 'spi_hid_apple_of_match'
     244 | extern typeof(name) __mod_##type##__##name##_device_table  \
         |                     ^~~~~~
   drivers/hid/spi-hid/spi-hid-apple-of.c:114:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
     114 | MODULE_DEVICE_TABLE(of, spi_hid_apple_of_match);
         | ^~~~~~~~~~~~~~~~~~~


vim +114 drivers/hid/spi-hid/spi-hid-apple-of.c

   109	
   110	static const struct of_device_id spihid_apple_of_match[] = {
   111		{ .compatible = "apple,spi-hid-transport" },
   112		{},
   113	};
 > 114	MODULE_DEVICE_TABLE(of, spi_hid_apple_of_match);
   115	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

only message in thread, other threads:[~2022-01-18 17:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-18 16:59 [asahilinux:bits/090-spi-hid 12/12] drivers/hid/spi-hid/spi-hid-apple-of.c:114:25: error: 'spi_hid_apple_of_match' undeclared here (not in a function); did you mean 'spihid_apple_of_match'? 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).