devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Nas Chung <nas.chung@chipsnmedia.com>,
	mchehab@kernel.org, hverkuil@xs4all.nl, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org,
	s.hauer@pengutronix.de
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-media@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-imx@nxp.com,
	linux-arm-kernel@lists.infradead.org,
	jackson.lee@chipsnmedia.com, lafley.kim@chipsnmedia.com,
	marek.vasut@mailbox.org, Nas Chung <nas.chung@chipsnmedia.com>,
	Ming Qian <ming.qian@oss.nxp.com>
Subject: Re: [PATCH v4 8/9] media: chips-media: wave6: Add Wave6 control driver
Date: Thu, 23 Oct 2025 07:01:10 +0800	[thread overview]
Message-ID: <202510230606.Ycv5XHv1-lkp@intel.com> (raw)
In-Reply-To: <20251022074710.575-9-nas.chung@chipsnmedia.com>

Hi Nas,

kernel test robot noticed the following build errors:

[auto build test ERROR on shawnguo/for-next]
[also build test ERROR on linuxtv-media-pending/master robh/for-next linus/master v6.18-rc2 next-20251022]
[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/Nas-Chung/media-v4l2-common-Add-YUV24-format-info/20251022-155246
base:   https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next
patch link:    https://lore.kernel.org/r/20251022074710.575-9-nas.chung%40chipsnmedia.com
patch subject: [PATCH v4 8/9] media: chips-media: wave6: Add Wave6 control driver
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20251023/202510230606.Ycv5XHv1-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251023/202510230606.Ycv5XHv1-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/202510230606.Ycv5XHv1-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/media/platform/chips-media/wave6/wave6-vpu.c:131:6: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     131 |                           REMAP_CTRL_INDEX(i) |
         |                           ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:83:32: note: expanded from macro 'REMAP_CTRL_INDEX'
      83 | #define         REMAP_CTRL_INDEX(x)                     FIELD_PREP(GENMASK(15, 12), (x))
         |                                                         ^
   1 error generated.
--
>> drivers/media/platform/chips-media/wave6/wave6-vpu-core.c:135:3: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     135 |                 FW_VERSION_MAJOR(core->attr.fw_version),
         |                 ^
   drivers/media/platform/chips-media/wave6/wave6-vpu-core.c:143:4: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     143 |                         FW_VERSION_MAJOR(core->res->compatible_fw_version),
         |                         ^
   2 errors generated.
--
>> drivers/media/platform/chips-media/wave6/wave6-vpu-dbg.c:34:4: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      34 |                         FW_VERSION_MAJOR(inst->dev->attr.fw_version),
         |                         ^
   drivers/media/platform/chips-media/wave6/wave6-vpuapi.h:125:29: note: expanded from macro 'FW_VERSION_MAJOR'
     125 | #define FW_VERSION_MAJOR(x)     FIELD_GET(FW_VERSION_MAJOR_MASK, (x))
         |                                 ^
   1 error generated.
--
>> drivers/media/platform/chips-media/wave6/wave6-hw.c:237:13: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     237 |                 reg_val = INSTANCE_INFO_CODEC_STD(std);
         |                           ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:99:38: note: expanded from macro 'INSTANCE_INFO_CODEC_STD'
      99 | #define         INSTANCE_INFO_CODEC_STD(x)              FIELD_PREP(GENMASK(31, 16), (x))
         |                                                         ^
>> drivers/media/platform/chips-media/wave6/wave6-hw.c:308:28: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     308 |         attr->support_decoders |= STD_DEF1_HEVC_DEC(std_def1) << W_HEVC_DEC;
         |                                   ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:125:33: note: expanded from macro 'STD_DEF1_HEVC_DEC'
     125 | #define         STD_DEF1_HEVC_DEC(x)                    FIELD_GET(GENMASK(2, 2), (x))
         |                                                         ^
   drivers/media/platform/chips-media/wave6/wave6-hw.c:362:12: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     362 |         reg_val = CREATE_INST_CORE_INFO_CQ_DEPTH(COMMAND_QUEUE_DEPTH) |
         |                   ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:145:44: note: expanded from macro 'CREATE_INST_CORE_INFO_CQ_DEPTH'
     145 | #define         CREATE_INST_CORE_INFO_CQ_DEPTH(x)       FIELD_PREP(GENMASK(10, 8), (x))
         |                                                         ^
   drivers/media/platform/chips-media/wave6/wave6-hw.c:405:12: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     405 |         reg_val = DEC_PIC_BS_OPTION_STREAM_END(p_dec_info->stream_end) |
         |                   ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:259:43: note: expanded from macro 'DEC_PIC_BS_OPTION_STREAM_END'
     259 | #define         DEC_PIC_BS_OPTION_STREAM_END(x)         FIELD_PREP(GENMASK(1, 1), (x))
         |                                                         ^
   drivers/media/platform/chips-media/wave6/wave6-hw.c:438:20: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     438 |         info->pic_width = DEC_PIC_SIZE_WIDTH(reg_val);
         |                           ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:299:34: note: expanded from macro 'DEC_PIC_SIZE_WIDTH'
     299 | #define         DEC_PIC_SIZE_WIDTH(x)                   FIELD_GET(GENMASK(31, 16), (x))
         |                                                         ^
   drivers/media/platform/chips-media/wave6/wave6-hw.c:561:12: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     561 |         reg_val = SET_FB_PIC_SIZE_WIDTH(p_dec_info->seq_info.pic_width) |
         |                   ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:167:36: note: expanded from macro 'SET_FB_PIC_SIZE_WIDTH'
     167 | #define         SET_FB_PIC_SIZE_WIDTH(x)                FIELD_PREP(GENMASK(31, 16), (x))
         |                                                         ^
   drivers/media/platform/chips-media/wave6/wave6-hw.c:650:12: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     650 |         reg_val = SET_DISP_SCL_PIC_SIZE_WIDTH(inst->scaler_info.width) |
         |                   ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:250:42: note: expanded from macro 'SET_DISP_SCL_PIC_SIZE_WIDTH'
     250 | #define         SET_DISP_SCL_PIC_SIZE_WIDTH(x)          FIELD_PREP(GENMASK(31, 16), (x))
         |                                                         ^
   drivers/media/platform/chips-media/wave6/wave6-hw.c:732:12: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     732 |         reg_val = DEC_PIC_BS_OPTION_STREAM_END(p_dec_info->stream_end) |
         |                   ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:259:43: note: expanded from macro 'DEC_PIC_BS_OPTION_STREAM_END'
     259 | #define         DEC_PIC_BS_OPTION_STREAM_END(x)         FIELD_PREP(GENMASK(1, 1), (x))
         |                                                         ^
   drivers/media/platform/chips-media/wave6/wave6-hw.c:789:21: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     789 |         result->ctu_size = DEC_PIC_TYPE_CTU_SIZE(reg_val);
         |                            ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:310:43: note: expanded from macro 'DEC_PIC_TYPE_CTU_SIZE'
     310 | #define         DEC_PIC_TYPE_CTU_SIZE(x)                (16 << FIELD_GET(GENMASK(11, 10), (x)))
         |                                                                ^
   drivers/media/platform/chips-media/wave6/wave6-hw.c:1074:12: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1074 |         reg_val = CREATE_INST_CORE_INFO_CQ_DEPTH(COMMAND_QUEUE_DEPTH) |
         |                   ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:145:44: note: expanded from macro 'CREATE_INST_CORE_INFO_CQ_DEPTH'
     145 | #define         CREATE_INST_CORE_INFO_CQ_DEPTH(x)       FIELD_PREP(GENMASK(10, 8), (x))
         |                                                         ^
   drivers/media/platform/chips-media/wave6/wave6-hw.c:1217:18: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1217 |         reg->src_size = SET_PARAM_SRC_SIZE_HEIGHT(p_enc_info->height) |
         |                         ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:359:40: note: expanded from macro 'SET_PARAM_SRC_SIZE_HEIGHT'
     359 | #define         SET_PARAM_SRC_SIZE_HEIGHT(x)            FIELD_PREP(GENMASK(31, 16), (x))
         |                                                         ^
   drivers/media/platform/chips-media/wave6/wave6-hw.c:1304:13: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1304 |         reg->sps = SET_PARAM_SPS_DEFAULT_SCALING_LIST(p_param->en_scaling_list) |
         |                    ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:363:48: note: expanded from macro 'SET_PARAM_SPS_DEFAULT_SCALING_LIST'
     363 | #define         SET_PARAM_SPS_DEFAULT_SCALING_LIST(x)   FIELD_PREP(GENMASK(31, 31), (x))
         |                                                         ^
   drivers/media/platform/chips-media/wave6/wave6-hw.c:1346:13: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1346 |         reg->sps = SET_PARAM_SPS_DEFAULT_SCALING_LIST(p_param->en_scaling_list) |
         |                    ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:363:48: note: expanded from macro 'SET_PARAM_SPS_DEFAULT_SCALING_LIST'
     363 | #define         SET_PARAM_SPS_DEFAULT_SCALING_LIST(x)   FIELD_PREP(GENMASK(31, 31), (x))
         |                                                         ^
   drivers/media/platform/chips-media/wave6/wave6-hw.c:1594:18: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1594 |         reg->pic_info = SET_FB_PIC_INFO_STRIDE(p_enc_info->stride);
         |                         ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:165:37: note: expanded from macro 'SET_FB_PIC_INFO_STRIDE'
     165 | #define         SET_FB_PIC_INFO_STRIDE(x)               FIELD_PREP(GENMASK(15, 0), (x))
         |                                                         ^
   drivers/media/platform/chips-media/wave6/wave6-hw.c:1953:17: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1953 |         reg->src_fmt = ENC_PIC_SRC_FMT_C_FMT_IDC(c_fmt_idc) |
         |                        ^
   drivers/media/platform/chips-media/wave6/wave6-regdefine.h:542:40: note: expanded from macro 'ENC_PIC_SRC_FMT_C_FMT_IDC'
     542 | #define         ENC_PIC_SRC_FMT_C_FMT_IDC(x)            FIELD_PREP(GENMASK(30, 28), (x))
         |                                                         ^
   15 errors generated.


vim +/FIELD_PREP +131 drivers/media/platform/chips-media/wave6/wave6-vpu.c

   123	
   124	static void wave6_vpu_remap_code_buf(struct wave6_vpu_device *vpu)
   125	{
   126		dma_addr_t code_base = vpu->code_buf.dma_addr;
   127		u32 i, reg_val;
   128	
   129		for (i = 0; i < wave6_vpu_get_code_buf_size(vpu) / W6_MAX_REMAP_PAGE_SIZE; i++) {
   130			reg_val = REMAP_CTRL_ON |
 > 131				  REMAP_CTRL_INDEX(i) |
   132				  REMAP_CTRL_PAGE_SIZE_ON |
   133				  REMAP_CTRL_PAGE_SIZE(W6_MAX_REMAP_PAGE_SIZE);
   134			wave6_vdi_writel(vpu->reg_base, W6_VPU_REMAP_CTRL_GB, reg_val);
   135			wave6_vdi_writel(vpu->reg_base, W6_VPU_REMAP_VADDR_GB,
   136					 i * W6_MAX_REMAP_PAGE_SIZE);
   137			wave6_vdi_writel(vpu->reg_base, W6_VPU_REMAP_PADDR_GB,
   138					 code_base + i * W6_MAX_REMAP_PAGE_SIZE);
   139		}
   140	}
   141	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2025-10-22 23:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-22  7:47 [PATCH v4 0/9] Add support for Wave6 video codec driver Nas Chung
2025-10-22  7:47 ` [PATCH v4 1/9] media: v4l2-common: Add YUV24 format info Nas Chung
2025-10-22  7:47 ` [PATCH v4 2/9] dt-bindings: media: nxp: Add Wave6 video codec device Nas Chung
2025-10-22  8:31   ` Krzysztof Kozlowski
2025-10-23  5:13     ` Nas Chung
2025-11-03  5:41       ` Nas Chung
2025-10-22  7:47 ` [PATCH v4 3/9] media: chips-media: wave6: Add Wave6 VPU interface Nas Chung
2025-12-10 19:53   ` Nicolas Dufresne
2025-10-22  7:47 ` [PATCH v4 4/9] media: chips-media: wave6: Add v4l2 m2m driver support Nas Chung
2025-10-22  7:47 ` [PATCH v4 5/9] media: chips-media: wave6: Add Wave6 core driver Nas Chung
2025-10-22  7:47 ` [PATCH v4 6/9] media: chips-media: wave6: Improve debugging capabilities Nas Chung
2025-10-22  7:47 ` [PATCH v4 7/9] media: chips-media: wave6: Add Wave6 thermal cooling device Nas Chung
2025-10-22  7:47 ` [PATCH v4 8/9] media: chips-media: wave6: Add Wave6 control driver Nas Chung
2025-10-22 23:01   ` kernel test robot [this message]
2025-10-23  0:03   ` kernel test robot
2025-10-22  7:47 ` [PATCH v4 9/9] arm64: dts: freescale: imx95: Add video codec node Nas Chung

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=202510230606.Ycv5XHv1-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hverkuil@xs4all.nl \
    --cc=jackson.lee@chipsnmedia.com \
    --cc=krzk+dt@kernel.org \
    --cc=lafley.kim@chipsnmedia.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=marek.vasut@mailbox.org \
    --cc=mchehab@kernel.org \
    --cc=ming.qian@oss.nxp.com \
    --cc=nas.chung@chipsnmedia.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.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;
as well as URLs for NNTP newsgroup(s).