From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Mark Brown <broonie@kernel.org>,
"Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Subject: sound/soc/uniphier/aio-compress.c:304:34: sparse: sparse: cast to restricted __be16
Date: Tue, 13 Jan 2026 16:32:35 +0800 [thread overview]
Message-ID: <202601131601.7Dbl2dpZ-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b71e635feefc852405b14620a7fc58c4c80c0f73
commit: ac131c4148bcfa682104628d2174e8e38e03fd25 ASoC: uniphier: Standardize ASoC menu
date: 7 months ago
config: nios2-randconfig-r134-20260113 (https://download.01.org/0day-ci/archive/20260113/202601131601.7Dbl2dpZ-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 9.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260113/202601131601.7Dbl2dpZ-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/202601131601.7Dbl2dpZ-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> sound/soc/uniphier/aio-compress.c:304:34: sparse: sparse: cast to restricted __be16
>> sound/soc/uniphier/aio-compress.c:304:34: sparse: sparse: cast to restricted __be16
>> sound/soc/uniphier/aio-compress.c:304:34: sparse: sparse: cast to restricted __be16
>> sound/soc/uniphier/aio-compress.c:304:34: sparse: sparse: cast to restricted __be16
sound/soc/uniphier/aio-compress.c: note: in included file (through include/uapi/linux/swab.h, include/linux/swab.h, include/uapi/linux/byteorder/little_endian.h, ...):
arch/nios2/include/uapi/asm/swab.h:25:24: sparse: sparse: too many arguments for function __builtin_custom_ini
vim +304 sound/soc/uniphier/aio-compress.c
e98131222ff931a Katsuhiro Suzuki 2018-01-19 280
e98131222ff931a Katsuhiro Suzuki 2018-01-19 281 static int aio_compr_send_to_hw(struct uniphier_aio_sub *sub,
e98131222ff931a Katsuhiro Suzuki 2018-01-19 282 char __user *buf, size_t dstsize)
e98131222ff931a Katsuhiro Suzuki 2018-01-19 283 {
e98131222ff931a Katsuhiro Suzuki 2018-01-19 284 u32 __user *srcbuf = (u32 __user *)buf;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 285 u32 *dstbuf = (u32 *)(sub->compr_area + sub->wr_offs);
e98131222ff931a Katsuhiro Suzuki 2018-01-19 286 int src = 0, dst = 0, ret;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 287 u32 frm, frm_a, frm_b;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 288
e98131222ff931a Katsuhiro Suzuki 2018-01-19 289 while (dstsize > 0) {
e98131222ff931a Katsuhiro Suzuki 2018-01-19 290 ret = get_user(frm, srcbuf + src);
e98131222ff931a Katsuhiro Suzuki 2018-01-19 291 if (ret)
e98131222ff931a Katsuhiro Suzuki 2018-01-19 292 return ret;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 293 src++;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 294
e98131222ff931a Katsuhiro Suzuki 2018-01-19 295 frm_a = frm & 0xffff;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 296 frm_b = (frm >> 16) & 0xffff;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 297
e98131222ff931a Katsuhiro Suzuki 2018-01-19 298 if (frm == IEC61937_HEADER_SIGN) {
e98131222ff931a Katsuhiro Suzuki 2018-01-19 299 frm_a |= 0x01000000;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 300
e98131222ff931a Katsuhiro Suzuki 2018-01-19 301 /* Next data is Pc and Pd */
e98131222ff931a Katsuhiro Suzuki 2018-01-19 302 sub->iec_header = true;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 303 } else {
e98131222ff931a Katsuhiro Suzuki 2018-01-19 @304 u16 pc = be16_to_cpu((__be16)frm_a);
e98131222ff931a Katsuhiro Suzuki 2018-01-19 305
e98131222ff931a Katsuhiro Suzuki 2018-01-19 306 if (sub->iec_header && sub->iec_pc != pc) {
e98131222ff931a Katsuhiro Suzuki 2018-01-19 307 /* Force overwrite IEC frame type */
e98131222ff931a Katsuhiro Suzuki 2018-01-19 308 sub->iec_pc = pc;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 309 ret = aio_oport_set_stream_type(sub, pc);
e98131222ff931a Katsuhiro Suzuki 2018-01-19 310 if (ret)
e98131222ff931a Katsuhiro Suzuki 2018-01-19 311 return ret;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 312 }
e98131222ff931a Katsuhiro Suzuki 2018-01-19 313 sub->iec_header = false;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 314 }
e98131222ff931a Katsuhiro Suzuki 2018-01-19 315 dstbuf[dst++] = frm_a;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 316 dstbuf[dst++] = frm_b;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 317
e98131222ff931a Katsuhiro Suzuki 2018-01-19 318 dstsize -= sizeof(u32) * 2;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 319 }
e98131222ff931a Katsuhiro Suzuki 2018-01-19 320
e98131222ff931a Katsuhiro Suzuki 2018-01-19 321 return 0;
e98131222ff931a Katsuhiro Suzuki 2018-01-19 322 }
e98131222ff931a Katsuhiro Suzuki 2018-01-19 323
:::::: The code at line 304 was first introduced by commit
:::::: e98131222ff931a670739cede00d1fb9d6f83763 ASoC: uniphier: add support for UniPhier AIO compress audio
:::::: 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
next reply other threads:[~2026-01-13 8:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-13 8:32 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-06-14 19:49 sound/soc/uniphier/aio-compress.c:304:34: sparse: sparse: cast to restricted __be16 kernel test robot
2026-02-16 3:03 kernel test robot
2025-12-12 0:02 kernel test robot
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=202601131601.7Dbl2dpZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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 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.