* [jsarha:set_multi_pipeline_state_debug 1/1] sound/soc/sof/ipc4-pcm.c:66:10: warning: use of unary operator that may be intended as compound assignment (+=)
@ 2025-03-19 21:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-19 21:05 UTC (permalink / raw)
To: Jyri Sarha; +Cc: oe-kbuild-all
tree: https://github.com/jsarha/linux set_multi_pipeline_state_debug
head: 70b57c25bce492b37b15b2c8242f3af34b9fda2c
commit: 70b57c25bce492b37b15b2c8242f3af34b9fda2c [1/1] ASoC: SOF: ipc4-pcm: Pipe instances to dev_dbg in multi_pipeline_state()
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20250320/202503200412.DFJ8fDi2-lkp@intel.com/config)
compiler: clang version 20.1.0 (https://github.com/llvm/llvm-project 24a30daaa559829ad079f2ff7f73eb4e18095f88)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250320/202503200412.DFJ8fDi2-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/202503200412.DFJ8fDi2-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> sound/soc/sof/ipc4-pcm.c:66:10: warning: use of unary operator that may be intended as compound assignment (+=)
66 | offset =+ snprintf(buf + offset, size - offset, " %d",
| ^~
1 warning generated.
vim +66 sound/soc/sof/ipc4-pcm.c
58
59 static
60 char *sof_ipc4_set_multi_pipeline_state_debug(struct snd_sof_dev *sdev, char *buf, size_t size,
61 struct ipc4_pipeline_set_state_data *trigger_list)
62 {
63 int i, offset = 0;
64
65 for (i = 0; i < trigger_list->count; i++) {
> 66 offset =+ snprintf(buf + offset, size - offset, " %d",
67 trigger_list->pipeline_instance_ids[i]);
68
69 if (offset >= size - 1) {
70 buf[size - 1] = '\0';
71 break;
72 }
73 }
74 return buf;
75 }
76
--
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:[~2025-03-19 21:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19 21:05 [jsarha:set_multi_pipeline_state_debug 1/1] sound/soc/sof/ipc4-pcm.c:66:10: warning: use of unary operator that may be intended as compound assignment (+=) 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.