From: kernel test robot <lkp@intel.com>
To: "Martin Povišer" <povik+lin@cutebit.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Hector Martin <marcan@marcan.st>
Subject: [asahilinux:bits/070-audio 64/100] sound/soc/codecs/tas2764-quirks.h:148:2: warning: unannotated fall-through between switch labels
Date: Sun, 19 Nov 2023 21:18:39 +0800 [thread overview]
Message-ID: <202311192125.8UQ8mV0N-lkp@intel.com> (raw)
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
reply other threads:[~2023-11-19 13:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202311192125.8UQ8mV0N-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=marcan@marcan.st \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=povik+lin@cutebit.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox