[PATCH v1 3/3] soc: mediatek: mtk-cmdq: Move cmdq_instruction init to declaration
kernel test robot
lkp at intel.com
Thu Sep 19 15:43:24 PDT 2024
Hi AngeloGioacchino,
kernel test robot noticed the following build warnings:
[auto build test WARNING on clk/clk-next]
[also build test WARNING on soc/for-next linus/master v6.11 next-20240919]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/AngeloGioacchino-Del-Regno/soc-mediatek-mtk-cmdq-Move-mask-build-and-append-to-function/20240918-180757
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
patch link: https://lore.kernel.org/r/20240918100620.103536-4-angelogioacchino.delregno%40collabora.com
patch subject: [PATCH v1 3/3] soc: mediatek: mtk-cmdq: Move cmdq_instruction init to declaration
config: parisc-randconfig-r123-20240920 (https://download.01.org/0day-ci/archive/20240920/202409200659.IVYRJ33l-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20240920/202409200659.IVYRJ33l-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409200659.IVYRJ33l-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/soc/mediatek/mtk-cmdq-helper.c:240:18: sparse: sparse: Initializer entry defined twice
drivers/soc/mediatek/mtk-cmdq-helper.c:244:18: sparse: also defined here
vim +240 drivers/soc/mediatek/mtk-cmdq-helper.c
234
235 int cmdq_pkt_write_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx,
236 u16 addr_low, u16 src_reg_idx)
237 {
238 struct cmdq_instruction inst = {
239 .op = CMDQ_CODE_WRITE_S,
> 240 .mask = 0,
241 .src_t = CMDQ_REG_TYPE,
242 .sop = high_addr_reg_idx,
243 .offset = addr_low,
244 .src_reg = src_reg_idx
245 };
246 return cmdq_pkt_append_command(pkt, inst);
247 }
248 EXPORT_SYMBOL(cmdq_pkt_write_s);
249
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the linux-arm-kernel
mailing list