[arm:sa1100 32/36] arch/arm/mach-sa1100/h3600.c:105:15: error: variable 'h3600_audio_clk_gpio_table' has initializer but incomplete type

kernel test robot lkp at intel.com
Sun Nov 5 00:59:59 PDT 2023


tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git sa1100
head:   08b1731daff3c03a1845f5edabf356876858ee5a
commit: 0c4935e04aa86d2470e05ff3adf2a4062a2ab7d0 [32/36] clk: add iPAQ audio sysclock driver
config: arm-h3600_defconfig (https://download.01.org/0day-ci/archive/20231105/202311051549.SmyouJ8V-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231105/202311051549.SmyouJ8V-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311051549.SmyouJ8V-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/arm/mach-sa1100/h3600.c:93:15: error: variable 'h3600_sleeve_gpio_table' has initializer but incomplete type
      93 | static struct gpiod_lookup_table h3600_sleeve_gpio_table = {
         |               ^~~~~~~~~~~~~~~~~~
   arch/arm/mach-sa1100/h3600.c:94:10: error: 'struct gpiod_lookup_table' has no member named 'dev_id'
      94 |         .dev_id = "ipaq-h3xxx-sleeve",
         |          ^~~~~~
   arch/arm/mach-sa1100/h3600.c:94:19: warning: excess elements in struct initializer
      94 |         .dev_id = "ipaq-h3xxx-sleeve",
         |                   ^~~~~~~~~~~~~~~~~~~
   arch/arm/mach-sa1100/h3600.c:94:19: note: (near initialization for 'h3600_sleeve_gpio_table')
   arch/arm/mach-sa1100/h3600.c:95:10: error: 'struct gpiod_lookup_table' has no member named 'table'
      95 |         .table = {
         |          ^~~~~
   arch/arm/mach-sa1100/h3600.c:95:18: error: extra brace group at end of initializer
      95 |         .table = {
         |                  ^
   arch/arm/mach-sa1100/h3600.c:95:18: note: (near initialization for 'h3600_sleeve_gpio_table')
   arch/arm/mach-sa1100/h3600.c:96:17: error: implicit declaration of function 'GPIO_LOOKUP'; did you mean 'IOP_LOOKUP'? [-Werror=implicit-function-declaration]
      96 |                 GPIO_LOOKUP("gpio", H3600_GPIO_OPT_DET,
         |                 ^~~~~~~~~~~
         |                 IOP_LOOKUP
   arch/arm/mach-sa1100/h3600.c:97:46: error: 'GPIO_ACTIVE_LOW' undeclared here (not in a function); did you mean 'GPIOF_ACTIVE_LOW'?
      97 |                             "option-detect", GPIO_ACTIVE_LOW),
         |                                              ^~~~~~~~~~~~~~~
         |                                              GPIOF_ACTIVE_LOW
   arch/arm/mach-sa1100/h3600.c:98:61: error: 'GPIO_ACTIVE_HIGH' undeclared here (not in a function); did you mean 'ACPI_ACTIVE_HIGH'?
      98 |                 GPIO_LOOKUP("htc-egpio", 2, "option-reset", GPIO_ACTIVE_HIGH),
         |                                                             ^~~~~~~~~~~~~~~~
         |                                                             ACPI_ACTIVE_HIGH
   arch/arm/mach-sa1100/h3600.c:101:17: error: extra brace group at end of initializer
     101 |                 { },
         |                 ^
   arch/arm/mach-sa1100/h3600.c:101:17: note: (near initialization for 'h3600_sleeve_gpio_table')
   arch/arm/mach-sa1100/h3600.c:95:18: warning: excess elements in struct initializer
      95 |         .table = {
         |                  ^
   arch/arm/mach-sa1100/h3600.c:95:18: note: (near initialization for 'h3600_sleeve_gpio_table')
>> arch/arm/mach-sa1100/h3600.c:105:15: error: variable 'h3600_audio_clk_gpio_table' has initializer but incomplete type
     105 | static struct gpiod_lookup_table h3600_audio_clk_gpio_table = {
         |               ^~~~~~~~~~~~~~~~~~
   arch/arm/mach-sa1100/h3600.c:106:10: error: 'struct gpiod_lookup_table' has no member named 'dev_id'
     106 |         .dev_id = "ipaq-audio-clk",
         |          ^~~~~~
   arch/arm/mach-sa1100/h3600.c:106:19: warning: excess elements in struct initializer
     106 |         .dev_id = "ipaq-audio-clk",
         |                   ^~~~~~~~~~~~~~~~
   arch/arm/mach-sa1100/h3600.c:106:19: note: (near initialization for 'h3600_audio_clk_gpio_table')
   arch/arm/mach-sa1100/h3600.c:107:10: error: 'struct gpiod_lookup_table' has no member named 'table'
     107 |         .table = {
         |          ^~~~~
   arch/arm/mach-sa1100/h3600.c:107:18: error: extra brace group at end of initializer
     107 |         .table = {
         |                  ^
   arch/arm/mach-sa1100/h3600.c:107:18: note: (near initialization for 'h3600_audio_clk_gpio_table')
   arch/arm/mach-sa1100/h3600.c:110:17: error: extra brace group at end of initializer
     110 |                 { },
         |                 ^
   arch/arm/mach-sa1100/h3600.c:110:17: note: (near initialization for 'h3600_audio_clk_gpio_table')
   arch/arm/mach-sa1100/h3600.c:107:18: warning: excess elements in struct initializer
     107 |         .table = {
         |                  ^
   arch/arm/mach-sa1100/h3600.c:107:18: note: (near initialization for 'h3600_audio_clk_gpio_table')
   arch/arm/mach-sa1100/h3600.c: In function 'h3600_mach_init':
   arch/arm/mach-sa1100/h3600.c:121:9: error: implicit declaration of function 'gpiod_add_lookup_table' [-Werror=implicit-function-declaration]
     121 |         gpiod_add_lookup_table(&h3600_sleeve_gpio_table);
         |         ^~~~~~~~~~~~~~~~~~~~~~
   arch/arm/mach-sa1100/h3600.c: At top level:
   arch/arm/mach-sa1100/h3600.c:93:34: error: storage size of 'h3600_sleeve_gpio_table' isn't known
      93 | static struct gpiod_lookup_table h3600_sleeve_gpio_table = {
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~
>> arch/arm/mach-sa1100/h3600.c:105:34: error: storage size of 'h3600_audio_clk_gpio_table' isn't known
     105 | static struct gpiod_lookup_table h3600_audio_clk_gpio_table = {
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/h3600_audio_clk_gpio_table +105 arch/arm/mach-sa1100/h3600.c

   104	
 > 105	static struct gpiod_lookup_table h3600_audio_clk_gpio_table = {
   106		.dev_id = "ipaq-audio-clk",
   107		.table = {
   108			GPIO_LOOKUP("gpio", 12, "clk0", GPIO_ACTIVE_HIGH),
   109			GPIO_LOOKUP("gpio", 13, "clk1", GPIO_ACTIVE_HIGH),
   110			{ },
   111		},
   112	};
   113	

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



More information about the linux-arm-kernel mailing list