All of lore.kernel.org
 help / color / mirror / Atom feed
* [linusw-gpio:b4/descriptors-wireless 2/7] drivers/net/wireless/ath/ath9k/hw.c:2731:2: error: must use 'struct' tag to refer to type 'gpio_desc'
@ 2024-01-30 23:16 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-30 23:16 UTC (permalink / raw)
  To: Linus Walleij; +Cc: llvm, oe-kbuild-all, linux-gpio

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git b4/descriptors-wireless
head:   99b6016595e9254167434ef82f4c2ed88d986452
commit: 0dd7ce9e2be9a81dc04549e8e604931c19547531 [2/7] wifi: ath9k: Obtain system GPIOS from descriptors
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20240131/202401310721.pDBU6qLV-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project fdac7d0b6f74f919d319b31a0680c77f66732586)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240131/202401310721.pDBU6qLV-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/202401310721.pDBU6qLV-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/wireless/ath/ath9k/hw.c:2731:2: error: must use 'struct' tag to refer to type 'gpio_desc'
    2731 |         gpio_desc *gpiod;
         |         ^
         |         struct 
>> drivers/net/wireless/ath/ath9k/hw.c:2734:10: error: no member named 'gpiods' in 'struct ath_hw'
    2734 |         if (ah->gpiods[gpio])
         |             ~~  ^
   drivers/net/wireless/ath/ath9k/hw.c:2748:6: error: no member named 'gpiods' in 'struct ath_hw'
    2748 |         ah->gpiods[gpio] = gpiod;
         |         ~~  ^
   drivers/net/wireless/ath/ath9k/hw.c:2836:17: error: no member named 'gpiods' in 'struct ath_hw'
    2836 |         } else if (ah->gpiods[gpio]) {
         |                    ~~  ^
   drivers/net/wireless/ath/ath9k/hw.c:2837:29: error: no member named 'gpiods' in 'struct ath_hw'
    2837 |                 val = gpiod_get_value(ah->gpiods[gpio]);
         |                                       ~~  ^
   drivers/net/wireless/ath/ath9k/hw.c:2860:17: error: no member named 'gpiods' in 'struct ath_hw'
    2860 |         } else if (ah->gpiods[gpio]) {
         |                    ~~  ^
   drivers/net/wireless/ath/ath9k/hw.c:2861:23: error: no member named 'gpiods' in 'struct ath_hw'
    2861 |                 gpiod_set_value(ah->gpiods[gpio], val);
         |                                 ~~  ^
   7 errors generated.


vim +2731 drivers/net/wireless/ath/ath9k/hw.c

  2724	
  2725	/* BSP should set the corresponding MUX register correctly.
  2726	 */
  2727	static void ath9k_hw_gpio_cfg_soc(struct ath_hw *ah, u32 gpio, bool out,
  2728					  const char *label)
  2729	{
  2730		enum gpiod_flags flags = out ? GPIOD_OUT_LOW : GPIOD_IN;
> 2731		gpio_desc *gpiod;
  2732		int err;
  2733	
> 2734		if (ah->gpiods[gpio])
  2735			return;
  2736	
  2737		/* Obtains a system specific GPIO descriptor from another GPIO controller */
  2738		gpiod = devm_gpiod_get_index(ah->dev, NULL, gpio, flags);
  2739	
  2740		if (IS_ERR(gpiod)) {
  2741			err = PTR_ERR(gpiod);
  2742			ath_err(ath9k_hw_common(ah), "request GPIO%d failed:%d\n",
  2743				gpio, err);
  2744			return;
  2745		}
  2746	
  2747		gpiod_set_consumer_name(gpiod, label);
  2748		ah->gpiods[gpio] = gpiod;
  2749	}
  2750	

-- 
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:[~2024-01-30 23:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-30 23:16 [linusw-gpio:b4/descriptors-wireless 2/7] drivers/net/wireless/ath/ath9k/hw.c:2731:2: error: must use 'struct' tag to refer to type 'gpio_desc' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.