* [asahilinux:bits/070-audio 64/100] sound/soc/codecs/tas2764-quirks.h:148:2: warning: unannotated fall-through between switch labels
@ 2023-11-19 13:18 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-19 13:18 UTC (permalink / raw)
To: Martin Povišer; +Cc: llvm, oe-kbuild-all, Hector Martin
tree: https://github.com/AsahiLinux/linux bits/070-audio
head: 1c71b1fa2c491cc29c94d29f1a450dba39f27557
commit: 90882951283f5b2cc53ec3cd08f9ba604c8c3528 [64/100] ASoC: tas2764: Add optional 'Apple quirks'
config: i386-randconfig-011-20231119 (https://download.01.org/0day-ci/archive/20231119/202311192125.8UQ8mV0N-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231119/202311192125.8UQ8mV0N-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/202311192125.8UQ8mV0N-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from sound/soc/codecs/tas2764.c:56:
>> sound/soc/codecs/tas2764-quirks.h:148:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
default:
^
sound/soc/codecs/tas2764-quirks.h:148:2: note: insert '__attribute__((fallthrough));' to silence this warning
default:
^
__attribute__((fallthrough));
sound/soc/codecs/tas2764-quirks.h:148:2: note: insert 'break;' to avoid fall-through
default:
^
break;
1 warning generated.
vim +148 sound/soc/codecs/tas2764-quirks.h
115
116 static int tas2764_do_quirky_pwr_ctrl_change(struct tas2764_priv *tas2764,
117 unsigned int target)
118 {
119 unsigned int curr;
120 int ret;
121
122 curr = snd_soc_component_read_field(tas2764->component,
123 TAS2764_PWR_CTRL,
124 TAS2764_PWR_CTRL_MASK);
125
126 if (target == curr)
127 return 0;
128
129 #define TRANSITION(new, old) ((new) << 8 | (old))
130 switch (TRANSITION(target, curr)) {
131 case TRANSITION(TAS2764_PWR_CTRL_SHUTDOWN, TAS2764_PWR_CTRL_MUTE):
132 case TRANSITION(TAS2764_PWR_CTRL_SHUTDOWN, TAS2764_PWR_CTRL_ACTIVE):
133 ret = regmap_multi_reg_write(tas2764->regmap, tas2764_pre_shutdown_seq,
134 ARRAY_SIZE(tas2764_pre_shutdown_seq));
135 if (ret < 0)
136 break;
137
138 ret = snd_soc_component_update_bits(tas2764->component,
139 TAS2764_PWR_CTRL,
140 TAS2764_PWR_CTRL_MASK,
141 TAS2764_PWR_CTRL_SHUTDOWN);
142 if (ret > 0)
143 break;
144
145 ret = regmap_multi_reg_write(tas2764->regmap, tas2764_post_shutdown_seq,
146 ARRAY_SIZE(tas2764_post_shutdown_seq));
147
> 148 default:
149 ret = snd_soc_component_update_bits(tas2764->component, TAS2764_PWR_CTRL,
150 TAS2764_PWR_CTRL_MASK, target);
151 }
152 #undef TRANSITION
153
154 if (ret < 0)
155 return ret;
156 return 0;
157 }
158
--
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:[~2023-11-19 13:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-19 13:18 [asahilinux:bits/070-audio 64/100] sound/soc/codecs/tas2764-quirks.h:148:2: warning: unannotated fall-through between switch labels kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox