[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210020524.w8B2RiCy-lkp@intel.com>
Date: Sun, 2 Oct 2022 05:11:39 +0800
From: kernel test robot <lkp@...el.com>
To: Jaroslav Kysela <perex@...ex.cz>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Mark Brown <broonie@...nel.org>
Subject: [broonie-ci:fileZnINnP 160/160] sound/soc/soc-core.c:2055:36: error:
'struct snd_soc_card' has no member named 'dmi_longname'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git fileZnINnP
head: 9c0b23ec100bc967500725bd2c6cf13667cb8a71
commit: 9c0b23ec100bc967500725bd2c6cf13667cb8a71 [160/160] ASoC: core: clarify the driver name initialization
config: nios2-allyesconfig
compiler: nios2-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git/commit/?id=9c0b23ec100bc967500725bd2c6cf13667cb8a71
git remote add broonie-ci https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git
git fetch --no-tags broonie-ci fileZnINnP
git checkout 9c0b23ec100bc967500725bd2c6cf13667cb8a71
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=nios2 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
sound/soc/soc-core.c: In function 'snd_soc_bind_card':
>> sound/soc/soc-core.c:2055:36: error: 'struct snd_soc_card' has no member named 'dmi_longname'
2055 | if (card->long_name == card->dmi_longname)
| ^~
vim +2055 sound/soc/soc-core.c
1930
1931 static int snd_soc_bind_card(struct snd_soc_card *card)
1932 {
1933 struct snd_soc_pcm_runtime *rtd;
1934 struct snd_soc_component *component;
1935 struct snd_soc_dai_link *dai_link;
1936 const char *fallback;
1937 int ret, i;
1938
1939 mutex_lock(&client_mutex);
1940 mutex_lock_nested(&card->mutex, SND_SOC_CARD_CLASS_INIT);
1941
1942 snd_soc_dapm_init(&card->dapm, card, NULL);
1943
1944 /* check whether any platform is ignore machine FE and using topology */
1945 soc_check_tplg_fes(card);
1946
1947 /* bind aux_devs too */
1948 ret = soc_bind_aux_dev(card);
1949 if (ret < 0)
1950 goto probe_end;
1951
1952 /* add predefined DAI links to the list */
1953 card->num_rtd = 0;
1954 for_each_card_prelinks(card, i, dai_link) {
1955 ret = snd_soc_add_pcm_runtime(card, dai_link);
1956 if (ret < 0)
1957 goto probe_end;
1958 }
1959
1960 /* card bind complete so register a sound card */
1961 ret = snd_card_new(card->dev, SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1,
1962 card->owner, 0, &card->snd_card);
1963 if (ret < 0) {
1964 dev_err(card->dev,
1965 "ASoC: can't create sound card for card %s: %d\n",
1966 card->name, ret);
1967 goto probe_end;
1968 }
1969
1970 soc_init_card_debugfs(card);
1971
1972 soc_resume_init(card);
1973
1974 ret = snd_soc_dapm_new_controls(&card->dapm, card->dapm_widgets,
1975 card->num_dapm_widgets);
1976 if (ret < 0)
1977 goto probe_end;
1978
1979 ret = snd_soc_dapm_new_controls(&card->dapm, card->of_dapm_widgets,
1980 card->num_of_dapm_widgets);
1981 if (ret < 0)
1982 goto probe_end;
1983
1984 /* initialise the sound card only once */
1985 ret = snd_soc_card_probe(card);
1986 if (ret < 0)
1987 goto probe_end;
1988
1989 /* probe all components used by DAI links on this card */
1990 ret = soc_probe_link_components(card);
1991 if (ret < 0) {
1992 dev_err(card->dev,
1993 "ASoC: failed to instantiate card %d\n", ret);
1994 goto probe_end;
1995 }
1996
1997 /* probe auxiliary components */
1998 ret = soc_probe_aux_devices(card);
1999 if (ret < 0) {
2000 dev_err(card->dev,
2001 "ASoC: failed to probe aux component %d\n", ret);
2002 goto probe_end;
2003 }
2004
2005 /* probe all DAI links on this card */
2006 ret = soc_probe_link_dais(card);
2007 if (ret < 0) {
2008 dev_err(card->dev,
2009 "ASoC: failed to instantiate card %d\n", ret);
2010 goto probe_end;
2011 }
2012
2013 for_each_card_rtds(card, rtd) {
2014 ret = soc_init_pcm_runtime(card, rtd);
2015 if (ret < 0)
2016 goto probe_end;
2017 }
2018
2019 snd_soc_dapm_link_dai_widgets(card);
2020 snd_soc_dapm_connect_dai_link_widgets(card);
2021
2022 ret = snd_soc_add_card_controls(card, card->controls,
2023 card->num_controls);
2024 if (ret < 0)
2025 goto probe_end;
2026
2027 ret = snd_soc_dapm_add_routes(&card->dapm, card->dapm_routes,
2028 card->num_dapm_routes);
2029 if (ret < 0) {
2030 if (card->disable_route_checks) {
2031 dev_info(card->dev,
2032 "%s: disable_route_checks set, ignoring errors on add_routes\n",
2033 __func__);
2034 } else {
2035 dev_err(card->dev,
2036 "%s: snd_soc_dapm_add_routes failed: %d\n",
2037 __func__, ret);
2038 goto probe_end;
2039 }
2040 }
2041
2042 ret = snd_soc_dapm_add_routes(&card->dapm, card->of_dapm_routes,
2043 card->num_of_dapm_routes);
2044 if (ret < 0)
2045 goto probe_end;
2046
2047 /* try to set some sane longname if DMI is available */
2048 snd_soc_set_dmi_name(card, NULL);
2049
2050 soc_setup_card_name(card, card->snd_card->shortname,
2051 card->name, NULL);
2052 fallback = card->name;
2053 soc_setup_card_name(card, card->snd_card->longname,
2054 card->long_name, fallback);
> 2055 if (card->long_name == card->dmi_longname)
2056 fallback = "ASoC-DMI";
2057 soc_setup_card_name(card, card->snd_card->driver,
2058 card->driver_name, fallback);
2059
2060 if (card->components) {
2061 /* the current implementation of snd_component_add() accepts */
2062 /* multiple components in the string separated by space, */
2063 /* but the string collision (identical string) check might */
2064 /* not work correctly */
2065 ret = snd_component_add(card->snd_card, card->components);
2066 if (ret < 0) {
2067 dev_err(card->dev, "ASoC: %s snd_component_add() failed: %d\n",
2068 card->name, ret);
2069 goto probe_end;
2070 }
2071 }
2072
2073 ret = snd_soc_card_late_probe(card);
2074 if (ret < 0)
2075 goto probe_end;
2076
2077 snd_soc_dapm_new_widgets(card);
2078 snd_soc_card_fixup_controls(card);
2079
2080 ret = snd_card_register(card->snd_card);
2081 if (ret < 0) {
2082 dev_err(card->dev, "ASoC: failed to register soundcard %d\n",
2083 ret);
2084 goto probe_end;
2085 }
2086
2087 card->instantiated = 1;
2088 dapm_mark_endpoints_dirty(card);
2089 snd_soc_dapm_sync(&card->dapm);
2090
2091 /* deactivate pins to sleep state */
2092 for_each_card_components(card, component)
2093 if (!snd_soc_component_active(component))
2094 pinctrl_pm_select_sleep_state(component->dev);
2095
2096 probe_end:
2097 if (ret < 0)
2098 soc_cleanup_card_resources(card);
2099
2100 mutex_unlock(&card->mutex);
2101 mutex_unlock(&client_mutex);
2102
2103 return ret;
2104 }
2105
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (274842 bytes)
Powered by blists - more mailing lists