public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [broonie-ci:fileECoqy0 5/6] sound/soc/generic/simple-card-utils.c:755:14: error: no member named 'gpio' in 'struct snd_soc_jack_gpio'
@ 2024-03-26  2:33 kernel test robot
  2024-03-26 14:00 ` Andy Shevchenko
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2024-03-26  2:33 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: llvm, oe-kbuild-all, Mark Brown

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git fileECoqy0
head:   3c398a2eb9081a10c34a40701159a34319a35f19
commit: c81737adb6536b26ebf9176179b3551cb33be4c0 [5/6] ASoC: soc-jack: Get rid of legacy GPIO support
config: x86_64-buildonly-randconfig-002-20240325 (https://download.01.org/0day-ci/archive/20240326/202403261005.2Hemu0jm-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240326/202403261005.2Hemu0jm-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/202403261005.2Hemu0jm-lkp@intel.com/

All errors (new ones prefixed by >>):

>> sound/soc/generic/simple-card-utils.c:755:14: error: no member named 'gpio' in 'struct snd_soc_jack_gpio'
     755 |         sjack->gpio.gpio = -ENOENT;
         |         ~~~~~~~~~~~ ^
   1 error generated.


vim +755 sound/soc/generic/simple-card-utils.c

90194281ee8b01 Paul Cercueil     2019-04-26  738  
b5a95c5bf6d695 Kuninori Morimoto 2023-09-11  739  int simple_util_init_jack(struct snd_soc_card *card,
b4b7de99c6da46 Kuninori Morimoto 2023-09-11  740  			  struct simple_util_jack *sjack,
764aafdb985b18 Shengjiu Wang     2020-07-15  741  			  int is_hp, char *prefix,
764aafdb985b18 Shengjiu Wang     2020-07-15  742  			  char *pin)
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  743  {
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  744  	struct device *dev = card->dev;
355beeed9319cf Dmitry Torokhov   2022-09-06  745  	struct gpio_desc *desc;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  746  	char prop[128];
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  747  	char *pin_name;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  748  	char *gpio_name;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  749  	int mask;
355beeed9319cf Dmitry Torokhov   2022-09-06  750  	int error;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  751  
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  752  	if (!prefix)
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  753  		prefix = "";
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  754  
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11 @755  	sjack->gpio.gpio = -ENOENT;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  756  
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  757  	if (is_hp) {
355beeed9319cf Dmitry Torokhov   2022-09-06  758  		snprintf(prop, sizeof(prop), "%shp-det", prefix);
764aafdb985b18 Shengjiu Wang     2020-07-15  759  		pin_name	= pin ? pin : "Headphones";
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  760  		gpio_name	= "Headphone detection";
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  761  		mask		= SND_JACK_HEADPHONE;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  762  	} else {
355beeed9319cf Dmitry Torokhov   2022-09-06  763  		snprintf(prop, sizeof(prop), "%smic-det", prefix);
764aafdb985b18 Shengjiu Wang     2020-07-15  764  		pin_name	= pin ? pin : "Mic Jack";
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  765  		gpio_name	= "Mic detection";
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  766  		mask		= SND_JACK_MICROPHONE;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  767  	}
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  768  
355beeed9319cf Dmitry Torokhov   2022-09-06  769  	desc = gpiod_get_optional(dev, prop, GPIOD_IN);
355beeed9319cf Dmitry Torokhov   2022-09-06  770  	error = PTR_ERR_OR_ZERO(desc);
355beeed9319cf Dmitry Torokhov   2022-09-06  771  	if (error)
355beeed9319cf Dmitry Torokhov   2022-09-06  772  		return error;
355beeed9319cf Dmitry Torokhov   2022-09-06  773  
355beeed9319cf Dmitry Torokhov   2022-09-06  774  	if (desc) {
355beeed9319cf Dmitry Torokhov   2022-09-06  775  		error = gpiod_set_consumer_name(desc, gpio_name);
355beeed9319cf Dmitry Torokhov   2022-09-06  776  		if (error)
355beeed9319cf Dmitry Torokhov   2022-09-06  777  			return error;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  778  
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  779  		sjack->pin.pin		= pin_name;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  780  		sjack->pin.mask		= mask;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  781  
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  782  		sjack->gpio.name	= gpio_name;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  783  		sjack->gpio.report	= mask;
355beeed9319cf Dmitry Torokhov   2022-09-06  784  		sjack->gpio.desc	= desc;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  785  		sjack->gpio.debounce_time = 150;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  786  
19aed2d6cdb72a Akihiko Odaki     2022-04-08  787  		snd_soc_card_jack_new_pins(card, pin_name, mask, &sjack->jack,
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  788  					   &sjack->pin, 1);
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  789  
355beeed9319cf Dmitry Torokhov   2022-09-06  790  		snd_soc_jack_add_gpios(&sjack->jack, 1, &sjack->gpio);
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  791  	}
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  792  
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  793  	return 0;
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  794  }
b5a95c5bf6d695 Kuninori Morimoto 2023-09-11  795  EXPORT_SYMBOL_GPL(simple_util_init_jack);
62c2c9fcac4341 Katsuhiro Suzuki  2018-06-11  796  

:::::: The code at line 755 was first introduced by commit
:::::: 62c2c9fcac4341d306dda4cf400b77e7e124480a ASoC: simple-card-utils: move hp and mic detect gpios from simple-card

:::::: TO: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
:::::: CC: Mark Brown <broonie@kernel.org>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [broonie-ci:fileECoqy0 5/6] sound/soc/generic/simple-card-utils.c:755:14: error: no member named 'gpio' in 'struct snd_soc_jack_gpio'
  2024-03-26  2:33 [broonie-ci:fileECoqy0 5/6] sound/soc/generic/simple-card-utils.c:755:14: error: no member named 'gpio' in 'struct snd_soc_jack_gpio' kernel test robot
@ 2024-03-26 14:00 ` Andy Shevchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2024-03-26 14:00 UTC (permalink / raw)
  To: kernel test robot; +Cc: llvm, oe-kbuild-all, Mark Brown

On Tue, Mar 26, 2024 at 10:33:35AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git fileECoqy0
> head:   3c398a2eb9081a10c34a40701159a34319a35f19
> commit: c81737adb6536b26ebf9176179b3551cb33be4c0 [5/6] ASoC: soc-jack: Get rid of legacy GPIO support
> config: x86_64-buildonly-randconfig-002-20240325 (https://download.01.org/0day-ci/archive/20240326/202403261005.2Hemu0jm-lkp@intel.com/config)
> compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240326/202403261005.2Hemu0jm-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/202403261005.2Hemu0jm-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
> >> sound/soc/generic/simple-card-utils.c:755:14: error: no member named 'gpio' in 'struct snd_soc_jack_gpio'
>      755 |         sjack->gpio.gpio = -ENOENT;
>          |         ~~~~~~~~~~~ ^
>    1 error generated.

Already fixed.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-26 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-26  2:33 [broonie-ci:fileECoqy0 5/6] sound/soc/generic/simple-card-utils.c:755:14: error: no member named 'gpio' in 'struct snd_soc_jack_gpio' kernel test robot
2024-03-26 14:00 ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox