* sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i' set but not used
@ 2022-08-02 1:14 kernel test robot
0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2022-08-02 1:14 UTC (permalink / raw)
To: Brent Lu
Cc: llvm, kbuild-all, linux-kernel, Mark Brown, Bard Liao,
Pierre-Louis Bossart
Hi Brent,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9de1f9c8ca5100a02a2e271bdbde36202e251b4b
commit: 2fe14ff61bd6d4fabe313435dd378b5a38eb6102 ASoC: Intel: sof_ssp_amp: rename driver and support cs35l41 amplifier
date: 5 months ago
config: x86_64-randconfig-r006-20220801 (https://download.01.org/0day-ci/archive/20220802/202208020937.s1Een9WX-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 52cd00cabf479aa7eb6dbb063b7ba41ea57bce9e)
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/torvalds/linux.git/commit/?id=2fe14ff61bd6d4fabe313435dd378b5a38eb6102
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 2fe14ff61bd6d4fabe313435dd378b5a38eb6102
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash sound/soc/intel/boards/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i' set but not used [-Wunused-but-set-variable]
int i = 0;
^
1 warning generated.
vim +/i +97 sound/soc/intel/boards/sof_ssp_amp.c
89
90 static int sof_card_late_probe(struct snd_soc_card *card)
91 {
92 struct sof_card_private *ctx = snd_soc_card_get_drvdata(card);
93 struct snd_soc_component *component = NULL;
94 char jack_name[NAME_SIZE];
95 struct sof_hdmi_pcm *pcm;
96 int err;
> 97 int i = 0;
98
99 if (!(sof_ssp_amp_quirk & SOF_HDMI_PLAYBACK_PRESENT))
100 return 0;
101
102 /* HDMI is not supported by SOF on Baytrail/CherryTrail */
103 if (!ctx->idisp_codec)
104 return 0;
105
106 if (list_empty(&ctx->hdmi_pcm_list))
107 return -EINVAL;
108
109 if (ctx->common_hdmi_codec_drv) {
110 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm,
111 head);
112 component = pcm->codec_dai->component;
113 return hda_dsp_hdmi_build_controls(card, component);
114 }
115
116 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) {
117 component = pcm->codec_dai->component;
118 snprintf(jack_name, sizeof(jack_name),
119 "HDMI/DP, pcm=%d Jack", pcm->device);
120 err = snd_soc_card_jack_new(card, jack_name,
121 SND_JACK_AVOUT, &pcm->sof_hdmi,
122 NULL, 0);
123
124 if (err)
125 return err;
126
127 err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device,
128 &pcm->sof_hdmi);
129 if (err < 0)
130 return err;
131
132 i++;
133 }
134
135 return hdac_hdmi_jack_port_init(component, &card->dapm);
136 }
137
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 5+ messages in thread
* sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i' set but not used
@ 2022-09-16 10:44 kernel test robot
0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2022-09-16 10:44 UTC (permalink / raw)
To: Brent Lu
Cc: llvm, kbuild-all, linux-kernel, Mark Brown, Bard Liao,
Pierre-Louis Bossart
Hi Brent,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3245cb65fd91cd514801bf91f5a3066d562f0ac4
commit: 2fe14ff61bd6d4fabe313435dd378b5a38eb6102 ASoC: Intel: sof_ssp_amp: rename driver and support cs35l41 amplifier
date: 7 months ago
config: arm64-randconfig-r023-20220916 (https://download.01.org/0day-ci/archive/20220916/202209161811.hAq3MGyI-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2fe14ff61bd6d4fabe313435dd378b5a38eb6102
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 2fe14ff61bd6d4fabe313435dd378b5a38eb6102
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash sound/soc/intel/boards/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i' set but not used [-Wunused-but-set-variable]
int i = 0;
^
1 warning generated.
vim +/i +97 sound/soc/intel/boards/sof_ssp_amp.c
89
90 static int sof_card_late_probe(struct snd_soc_card *card)
91 {
92 struct sof_card_private *ctx = snd_soc_card_get_drvdata(card);
93 struct snd_soc_component *component = NULL;
94 char jack_name[NAME_SIZE];
95 struct sof_hdmi_pcm *pcm;
96 int err;
> 97 int i = 0;
98
99 if (!(sof_ssp_amp_quirk & SOF_HDMI_PLAYBACK_PRESENT))
100 return 0;
101
102 /* HDMI is not supported by SOF on Baytrail/CherryTrail */
103 if (!ctx->idisp_codec)
104 return 0;
105
106 if (list_empty(&ctx->hdmi_pcm_list))
107 return -EINVAL;
108
109 if (ctx->common_hdmi_codec_drv) {
110 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm,
111 head);
112 component = pcm->codec_dai->component;
113 return hda_dsp_hdmi_build_controls(card, component);
114 }
115
116 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) {
117 component = pcm->codec_dai->component;
118 snprintf(jack_name, sizeof(jack_name),
119 "HDMI/DP, pcm=%d Jack", pcm->device);
120 err = snd_soc_card_jack_new(card, jack_name,
121 SND_JACK_AVOUT, &pcm->sof_hdmi,
122 NULL, 0);
123
124 if (err)
125 return err;
126
127 err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device,
128 &pcm->sof_hdmi);
129 if (err < 0)
130 return err;
131
132 i++;
133 }
134
135 return hdac_hdmi_jack_port_init(component, &card->dapm);
136 }
137
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i' set but not used
2022-07-18 0:53 kernel test robot
@ 2022-07-18 14:10 ` Pierre-Louis Bossart
0 siblings, 0 replies; 5+ messages in thread
From: Pierre-Louis Bossart @ 2022-07-18 14:10 UTC (permalink / raw)
To: kernel test robot, Brent Lu
Cc: llvm, kbuild-all, linux-kernel, Mark Brown, Bard Liao
On 7/17/22 19:53, kernel test robot wrote:
> Hi Brent,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: ff6992735ade75aae3e35d16b17da1008d753d28
> commit: 2fe14ff61bd6d4fabe313435dd378b5a38eb6102 ASoC: Intel: sof_ssp_amp: rename driver and support cs35l41 amplifier
> date: 5 months ago
> config: i386-randconfig-a006-20220718 (https://download.01.org/0day-ci/archive/20220718/202207180841.Bkm8xoh8-lkp@intel.com/config)
> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 45067f8fbf61284839c739807c2da2e2505661eb)
> 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/torvalds/linux.git/commit/?id=2fe14ff61bd6d4fabe313435dd378b5a38eb6102
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 2fe14ff61bd6d4fabe313435dd378b5a38eb6102
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash sound/soc/intel/boards/
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
>>> sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i' set but not used [-Wunused-but-set-variable]
> int i = 0;
> ^
> 1 warning generated.
Already fixed by aa4c06e02b41 ("ASoC: Intel: sof_ssp_amp: remove
'set-but-not-used' warning
")
>
>
> vim +/i +97 sound/soc/intel/boards/sof_ssp_amp.c
>
> 89
> 90 static int sof_card_late_probe(struct snd_soc_card *card)
> 91 {
> 92 struct sof_card_private *ctx = snd_soc_card_get_drvdata(card);
> 93 struct snd_soc_component *component = NULL;
> 94 char jack_name[NAME_SIZE];
> 95 struct sof_hdmi_pcm *pcm;
> 96 int err;
> > 97 int i = 0;
> 98
> 99 if (!(sof_ssp_amp_quirk & SOF_HDMI_PLAYBACK_PRESENT))
> 100 return 0;
> 101
> 102 /* HDMI is not supported by SOF on Baytrail/CherryTrail */
> 103 if (!ctx->idisp_codec)
> 104 return 0;
> 105
> 106 if (list_empty(&ctx->hdmi_pcm_list))
> 107 return -EINVAL;
> 108
> 109 if (ctx->common_hdmi_codec_drv) {
> 110 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm,
> 111 head);
> 112 component = pcm->codec_dai->component;
> 113 return hda_dsp_hdmi_build_controls(card, component);
> 114 }
> 115
> 116 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) {
> 117 component = pcm->codec_dai->component;
> 118 snprintf(jack_name, sizeof(jack_name),
> 119 "HDMI/DP, pcm=%d Jack", pcm->device);
> 120 err = snd_soc_card_jack_new(card, jack_name,
> 121 SND_JACK_AVOUT, &pcm->sof_hdmi,
> 122 NULL, 0);
> 123
> 124 if (err)
> 125 return err;
> 126
> 127 err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device,
> 128 &pcm->sof_hdmi);
> 129 if (err < 0)
> 130 return err;
> 131
> 132 i++;
> 133 }
> 134
> 135 return hdac_hdmi_jack_port_init(component, &card->dapm);
> 136 }
> 137
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i' set but not used
@ 2022-07-18 0:53 kernel test robot
2022-07-18 14:10 ` Pierre-Louis Bossart
0 siblings, 1 reply; 5+ messages in thread
From: kernel test robot @ 2022-07-18 0:53 UTC (permalink / raw)
To: Brent Lu
Cc: llvm, kbuild-all, linux-kernel, Mark Brown, Bard Liao,
Pierre-Louis Bossart
Hi Brent,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ff6992735ade75aae3e35d16b17da1008d753d28
commit: 2fe14ff61bd6d4fabe313435dd378b5a38eb6102 ASoC: Intel: sof_ssp_amp: rename driver and support cs35l41 amplifier
date: 5 months ago
config: i386-randconfig-a006-20220718 (https://download.01.org/0day-ci/archive/20220718/202207180841.Bkm8xoh8-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 45067f8fbf61284839c739807c2da2e2505661eb)
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/torvalds/linux.git/commit/?id=2fe14ff61bd6d4fabe313435dd378b5a38eb6102
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 2fe14ff61bd6d4fabe313435dd378b5a38eb6102
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash sound/soc/intel/boards/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i' set but not used [-Wunused-but-set-variable]
int i = 0;
^
1 warning generated.
vim +/i +97 sound/soc/intel/boards/sof_ssp_amp.c
89
90 static int sof_card_late_probe(struct snd_soc_card *card)
91 {
92 struct sof_card_private *ctx = snd_soc_card_get_drvdata(card);
93 struct snd_soc_component *component = NULL;
94 char jack_name[NAME_SIZE];
95 struct sof_hdmi_pcm *pcm;
96 int err;
> 97 int i = 0;
98
99 if (!(sof_ssp_amp_quirk & SOF_HDMI_PLAYBACK_PRESENT))
100 return 0;
101
102 /* HDMI is not supported by SOF on Baytrail/CherryTrail */
103 if (!ctx->idisp_codec)
104 return 0;
105
106 if (list_empty(&ctx->hdmi_pcm_list))
107 return -EINVAL;
108
109 if (ctx->common_hdmi_codec_drv) {
110 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm,
111 head);
112 component = pcm->codec_dai->component;
113 return hda_dsp_hdmi_build_controls(card, component);
114 }
115
116 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) {
117 component = pcm->codec_dai->component;
118 snprintf(jack_name, sizeof(jack_name),
119 "HDMI/DP, pcm=%d Jack", pcm->device);
120 err = snd_soc_card_jack_new(card, jack_name,
121 SND_JACK_AVOUT, &pcm->sof_hdmi,
122 NULL, 0);
123
124 if (err)
125 return err;
126
127 err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device,
128 &pcm->sof_hdmi);
129 if (err < 0)
130 return err;
131
132 i++;
133 }
134
135 return hdac_hdmi_jack_port_init(component, &card->dapm);
136 }
137
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 5+ messages in thread
* sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i' set but not used
@ 2022-04-10 18:58 kernel test robot
0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2022-04-10 18:58 UTC (permalink / raw)
To: Brent Lu
Cc: llvm, kbuild-all, linux-kernel, Mark Brown, Bard Liao,
Pierre-Louis Bossart
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4ea3c6425269d33da53c79d539ce9554117cf4d4
commit: 2fe14ff61bd6d4fabe313435dd378b5a38eb6102 ASoC: Intel: sof_ssp_amp: rename driver and support cs35l41 amplifier
date: 6 weeks ago
config: x86_64-randconfig-a002-20220411 (https://download.01.org/0day-ci/archive/20220411/202204110240.lp5uPnQY-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 256c6b0ba14e8a7ab6373b61b7193ea8c0a3651c)
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/torvalds/linux.git/commit/?id=2fe14ff61bd6d4fabe313435dd378b5a38eb6102
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 2fe14ff61bd6d4fabe313435dd378b5a38eb6102
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash sound/soc/intel/boards/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i' set but not used [-Wunused-but-set-variable]
int i = 0;
^
1 warning generated.
vim +/i +97 sound/soc/intel/boards/sof_ssp_amp.c
89
90 static int sof_card_late_probe(struct snd_soc_card *card)
91 {
92 struct sof_card_private *ctx = snd_soc_card_get_drvdata(card);
93 struct snd_soc_component *component = NULL;
94 char jack_name[NAME_SIZE];
95 struct sof_hdmi_pcm *pcm;
96 int err;
> 97 int i = 0;
98
99 if (!(sof_ssp_amp_quirk & SOF_HDMI_PLAYBACK_PRESENT))
100 return 0;
101
102 /* HDMI is not supported by SOF on Baytrail/CherryTrail */
103 if (!ctx->idisp_codec)
104 return 0;
105
106 if (list_empty(&ctx->hdmi_pcm_list))
107 return -EINVAL;
108
109 if (ctx->common_hdmi_codec_drv) {
110 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm,
111 head);
112 component = pcm->codec_dai->component;
113 return hda_dsp_hdmi_build_controls(card, component);
114 }
115
116 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) {
117 component = pcm->codec_dai->component;
118 snprintf(jack_name, sizeof(jack_name),
119 "HDMI/DP, pcm=%d Jack", pcm->device);
120 err = snd_soc_card_jack_new(card, jack_name,
121 SND_JACK_AVOUT, &pcm->sof_hdmi,
122 NULL, 0);
123
124 if (err)
125 return err;
126
127 err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device,
128 &pcm->sof_hdmi);
129 if (err < 0)
130 return err;
131
132 i++;
133 }
134
135 return hdac_hdmi_jack_port_init(component, &card->dapm);
136 }
137
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-09-16 10:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-02 1:14 sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i' set but not used kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2022-09-16 10:44 kernel test robot
2022-07-18 0:53 kernel test robot
2022-07-18 14:10 ` Pierre-Louis Bossart
2022-04-10 18:58 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.