From: kernel test robot <lkp@intel.com>
To: bingbu.cao@intel.com, linux-media@vger.kernel.org,
sakari.ailus@linux.intel.com, laurent.pinchart@ideasonboard.com,
andriy.shevchenko@linux.intel.com, hdegoede@redhat.com
Cc: oe-kbuild-all@lists.linux.dev, ilpo.jarvinen@linux.intel.com,
claus.stovgaard@gmail.com, tomi.valkeinen@ideasonboard.com,
tfiga@chromium.org, senozhatsky@chromium.org,
andreaskleist@gmail.com, bingbu.cao@intel.com,
bingbu.cao@linux.intel.com, tian.shu.qiu@intel.com,
hongju.wang@intel.com
Subject: Re: [PATCH v3 16/17] media: ipu6/isys: support line-based metadata capture support
Date: Fri, 12 Jan 2024 05:20:34 +0800 [thread overview]
Message-ID: <202401120528.5MY4pum6-lkp@intel.com> (raw)
In-Reply-To: <20240111065531.2418836-17-bingbu.cao@intel.com>
Hi,
kernel test robot noticed the following build errors:
[auto build test ERROR on media-tree/master]
[also build test ERROR on linuxtv-media-stage/master linus/master v6.7 next-20240111]
[cannot apply to sailus-media-tree/streams]
[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/bingbu-cao-intel-com/media-intel-ipu6-add-IPU-auxiliary-devices/20240111-155551
base: git://linuxtv.org/media_tree.git master
patch link: https://lore.kernel.org/r/20240111065531.2418836-17-bingbu.cao%40intel.com
patch subject: [PATCH v3 16/17] media: ipu6/isys: support line-based metadata capture support
config: x86_64-buildonly-randconfig-004-20240111 (https://download.01.org/0day-ci/archive/20240112/202401120528.5MY4pum6-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240112/202401120528.5MY4pum6-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/202401120528.5MY4pum6-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c: In function 'ipu6_isys_mbus_code_to_bpp':
>> drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c:23:14: error: 'MEDIA_BUS_FMT_META_24' undeclared (first use in this function); did you mean 'MEDIA_BUS_FMT_VUY8_1X24'?
23 | case MEDIA_BUS_FMT_META_24:
| ^~~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_VUY8_1X24
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c:23:14: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c:28:14: error: 'MEDIA_BUS_FMT_META_16' undeclared (first use in this function); did you mean 'MEDIA_BUS_FMT_Y16_1X16'?
28 | case MEDIA_BUS_FMT_META_16:
| ^~~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_Y16_1X16
>> drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c:34:14: error: 'MEDIA_BUS_FMT_META_12' undeclared (first use in this function); did you mean 'MEDIA_BUS_FMT_UV8_1X8'?
34 | case MEDIA_BUS_FMT_META_12:
| ^~~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_UV8_1X8
>> drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c:40:14: error: 'MEDIA_BUS_FMT_META_10' undeclared (first use in this function); did you mean 'MEDIA_BUS_FMT_Y10_1X10'?
40 | case MEDIA_BUS_FMT_META_10:
| ^~~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_Y10_1X10
>> drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c:46:14: error: 'MEDIA_BUS_FMT_META_8' undeclared (first use in this function); did you mean 'MEDIA_BUS_FMT_Y8_1X8'?
46 | case MEDIA_BUS_FMT_META_8:
| ^~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_Y8_1X8
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c: In function 'ipu6_isys_subdev_set_fmt':
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c:159:15: error: implicit declaration of function 'v4l2_subdev_state_get_stream_format'; did you mean 'v4l2_subdev_state_get_format'? [-Werror=implicit-function-declaration]
159 | fmt = v4l2_subdev_state_get_stream_format(state, format->pad,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| v4l2_subdev_state_get_format
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c:159:13: warning: assignment to 'struct v4l2_mbus_framefmt *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
159 | fmt = v4l2_subdev_state_get_stream_format(state, format->pad,
| ^
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c:185:16: error: implicit declaration of function 'v4l2_subdev_state_get_stream_crop'; did you mean 'v4l2_subdev_state_get_crop'? [-Werror=implicit-function-declaration]
185 | crop = v4l2_subdev_state_get_stream_crop(state, other_pad,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| v4l2_subdev_state_get_crop
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c:185:14: warning: assignment to 'struct v4l2_rect *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
185 | crop = v4l2_subdev_state_get_stream_crop(state, other_pad,
| ^
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c: In function 'ipu6_isys_get_stream_pad_fmt':
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c:244:13: warning: assignment to 'struct v4l2_mbus_framefmt *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
244 | fmt = v4l2_subdev_state_get_stream_format(state, pad, stream);
| ^
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c: In function 'ipu6_isys_get_stream_pad_crop':
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c:262:14: warning: assignment to 'struct v4l2_rect *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
262 | rect = v4l2_subdev_state_get_stream_crop(state, pad, stream);
| ^
cc1: some warnings being treated as errors
--
>> drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:45:9: error: 'MEDIA_BUS_FMT_META_8' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_Y8_1X8'?
45 | MEDIA_BUS_FMT_META_8,
| ^~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_Y8_1X8
>> drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:46:9: error: 'MEDIA_BUS_FMT_META_10' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_Y10_1X10'?
46 | MEDIA_BUS_FMT_META_10,
| ^~~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_Y10_1X10
>> drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:47:9: error: 'MEDIA_BUS_FMT_META_12' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_UV8_1X8'?
47 | MEDIA_BUS_FMT_META_12,
| ^~~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_UV8_1X8
>> drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:48:9: error: 'MEDIA_BUS_FMT_META_16' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_Y16_1X16'?
48 | MEDIA_BUS_FMT_META_16,
| ^~~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_Y16_1X16
>> drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:49:9: error: 'MEDIA_BUS_FMT_META_24' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_VUY8_1X24'?
49 | MEDIA_BUS_FMT_META_24,
| ^~~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_VUY8_1X24
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c: In function 'ipu6_isys_csi2_set_sel':
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:406:20: error: implicit declaration of function 'v4l2_subdev_state_get_stream_format'; did you mean 'v4l2_subdev_state_get_format'? [-Werror=implicit-function-declaration]
406 | src_ffmt = v4l2_subdev_state_get_stream_format(state, sel->pad,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| v4l2_subdev_state_get_format
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:406:18: warning: assignment to 'struct v4l2_mbus_framefmt *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
406 | src_ffmt = v4l2_subdev_state_get_stream_format(state, sel->pad,
| ^
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:411:16: error: implicit declaration of function 'v4l2_subdev_state_get_stream_crop'; did you mean 'v4l2_subdev_state_get_crop'? [-Werror=implicit-function-declaration]
411 | crop = v4l2_subdev_state_get_stream_crop(state, sel->pad, sel->stream);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| v4l2_subdev_state_get_crop
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:411:14: warning: assignment to 'struct v4l2_rect *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
411 | crop = v4l2_subdev_state_get_stream_crop(state, sel->pad, sel->stream);
| ^
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c: In function 'ipu6_isys_csi2_get_sel':
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:456:14: warning: assignment to 'struct v4l2_rect *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
456 | crop = v4l2_subdev_state_get_stream_crop(state, sel->pad, sel->stream);
| ^
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c: At top level:
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:483:10: error: 'const struct v4l2_subdev_pad_ops' has no member named 'init_cfg'
483 | .init_cfg = ipu6_isys_subdev_init_cfg,
| ^~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:483:21: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
483 | .init_cfg = ipu6_isys_subdev_init_cfg,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:483:21: note: (near initialization for 'csi2_sd_pad_ops')
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:483:21: error: invalid initializer
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c:483:21: note: (near initialization for 'csi2_sd_pad_ops.<anonymous>')
cc1: some warnings being treated as errors
--
>> drivers/media/pci/intel/ipu6/ipu6-isys-video.c:88:10: error: 'V4L2_META_FMT_GENERIC_8' undeclared here (not in a function); did you mean 'V4L2_META_FMT_VIVID'?
88 | {V4L2_META_FMT_GENERIC_8, 8, 8, MEDIA_BUS_FMT_META_8, 0},
| ^~~~~~~~~~~~~~~~~~~~~~~
| V4L2_META_FMT_VIVID
>> drivers/media/pci/intel/ipu6/ipu6-isys-video.c:88:41: error: 'MEDIA_BUS_FMT_META_8' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_Y8_1X8'?
88 | {V4L2_META_FMT_GENERIC_8, 8, 8, MEDIA_BUS_FMT_META_8, 0},
| ^~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_Y8_1X8
>> drivers/media/pci/intel/ipu6/ipu6-isys-video.c:89:10: error: 'V4L2_META_FMT_GENERIC_CSI2_10' undeclared here (not in a function)
89 | {V4L2_META_FMT_GENERIC_CSI2_10, 10, 10, MEDIA_BUS_FMT_META_10, 0},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/pci/intel/ipu6/ipu6-isys-video.c:89:49: error: 'MEDIA_BUS_FMT_META_10' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_Y10_1X10'?
89 | {V4L2_META_FMT_GENERIC_CSI2_10, 10, 10, MEDIA_BUS_FMT_META_10, 0},
| ^~~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_Y10_1X10
>> drivers/media/pci/intel/ipu6/ipu6-isys-video.c:90:10: error: 'V4L2_META_FMT_GENERIC_CSI2_12' undeclared here (not in a function)
90 | {V4L2_META_FMT_GENERIC_CSI2_12, 12, 12, MEDIA_BUS_FMT_META_12, 0},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/pci/intel/ipu6/ipu6-isys-video.c:90:49: error: 'MEDIA_BUS_FMT_META_12' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_UV8_1X8'?
90 | {V4L2_META_FMT_GENERIC_CSI2_12, 12, 12, MEDIA_BUS_FMT_META_12, 0},
| ^~~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_UV8_1X8
>> drivers/media/pci/intel/ipu6/ipu6-isys-video.c:91:10: error: 'V4L2_META_FMT_GENERIC_CSI2_16' undeclared here (not in a function)
91 | {V4L2_META_FMT_GENERIC_CSI2_16, 16, 16, MEDIA_BUS_FMT_META_16, 0},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/pci/intel/ipu6/ipu6-isys-video.c:91:49: error: 'MEDIA_BUS_FMT_META_16' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_Y16_1X16'?
91 | {V4L2_META_FMT_GENERIC_CSI2_16, 16, 16, MEDIA_BUS_FMT_META_16, 0},
| ^~~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_Y16_1X16
>> drivers/media/pci/intel/ipu6/ipu6-isys-video.c:92:10: error: 'V4L2_META_FMT_GENERIC_CSI2_24' undeclared here (not in a function)
92 | {V4L2_META_FMT_GENERIC_CSI2_24, 24, 24, MEDIA_BUS_FMT_META_24, 0},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/pci/intel/ipu6/ipu6-isys-video.c:92:49: error: 'MEDIA_BUS_FMT_META_24' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_VUY8_1X24'?
92 | {V4L2_META_FMT_GENERIC_CSI2_24, 24, 24, MEDIA_BUS_FMT_META_24, 0},
| ^~~~~~~~~~~~~~~~~~~~~
| MEDIA_BUS_FMT_VUY8_1X24
drivers/media/pci/intel/ipu6/ipu6-isys-video.c: In function 'ipu6_isys_video_try_fmt_meta':
>> drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:13: error: 'struct v4l2_meta_format' has no member named 'width'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:21,
from drivers/media/pci/intel/ipu6/ipu6-isys-video.c:7:
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:33: error: 'struct v4l2_meta_format' has no member named 'width'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~
include/linux/compiler.h:236:55: note: in definition of macro '__is_constexpr'
236 | (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
| ^
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:23: note: in expansion of macro 'clamp'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~~~~
In file included from include/linux/kernel.h:28,
from arch/x86/include/asm/percpu.h:27,
from arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:79,
from include/linux/spinlock.h:56,
from include/linux/swait.h:7,
from include/linux/completion.h:12,
from drivers/media/pci/intel/ipu6/ipu6-isys-video.c:9:
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:33: error: 'struct v4l2_meta_format' has no member named 'width'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~
include/linux/minmax.h:61:11: note: in definition of macro '__clamp'
61 | ((val) >= (hi) ? (hi) : ((val) <= (lo) ? (lo) : (val)))
| ^~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:23: note: in expansion of macro 'clamp'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:33: error: 'struct v4l2_meta_format' has no member named 'width'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~
include/linux/minmax.h:61:35: note: in definition of macro '__clamp'
61 | ((val) >= (hi) ? (hi) : ((val) <= (lo) ? (lo) : (val)))
| ^~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:23: note: in expansion of macro 'clamp'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:33: error: 'struct v4l2_meta_format' has no member named 'width'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~
include/linux/minmax.h:61:58: note: in definition of macro '__clamp'
61 | ((val) >= (hi) ? (hi) : ((val) <= (lo) ? (lo) : (val)))
| ^~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:23: note: in expansion of macro 'clamp'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:33: error: 'struct v4l2_meta_format' has no member named 'width'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~
include/linux/minmax.h:64:16: note: in definition of macro '__clamp_once'
64 | typeof(val) unique_val = (val); \
| ^~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:23: note: in expansion of macro 'clamp'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:33: error: 'struct v4l2_meta_format' has no member named 'width'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~
include/linux/minmax.h:64:35: note: in definition of macro '__clamp_once'
64 | typeof(val) unique_val = (val); \
| ^~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:23: note: in expansion of macro 'clamp'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:33: error: 'struct v4l2_meta_format' has no member named 'width'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
include/linux/minmax.h:70:9: note: in expansion of macro 'static_assert'
70 | static_assert(__types_ok(val, lo), "clamp() 'lo' signedness error"); \
| ^~~~~~~~~~~~~
include/linux/minmax.h:31:31: note: in expansion of macro '__is_constexpr'
31 | __builtin_choose_expr(__is_constexpr(is_signed_type(typeof(x))), \
| ^~~~~~~~~~~~~~
include/linux/minmax.h:31:46: note: in expansion of macro 'is_signed_type'
31 | __builtin_choose_expr(__is_constexpr(is_signed_type(typeof(x))), \
| ^~~~~~~~~~~~~~
--
| ^~~~
include/linux/minmax.h:71:9: note: in expansion of macro 'static_assert'
71 | static_assert(__types_ok(val, hi), "clamp() 'hi' signedness error"); \
| ^~~~~~~~~~~~~
include/linux/minmax.h:36:53: note: in expansion of macro '__is_signed'
36 | (__builtin_choose_expr(__is_constexpr(x) && __is_signed(x), x, -1) >= 0)
| ^~~~~~~~~~~
include/linux/minmax.h:41:17: note: in expansion of macro '__is_noneg_int'
41 | __is_noneg_int(x) || __is_noneg_int(y))
| ^~~~~~~~~~~~~~
include/linux/minmax.h:71:23: note: in expansion of macro '__types_ok'
71 | static_assert(__types_ok(val, hi), "clamp() 'hi' signedness error"); \
| ^~~~~~~~~~
include/linux/minmax.h:77:17: note: in expansion of macro '__clamp_once'
77 | __clamp_once(val, lo, hi, __UNIQUE_ID(__val), \
| ^~~~~~~~~~~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:23: note: in expansion of macro 'clamp'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:33: error: 'struct v4l2_meta_format' has no member named 'width'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
include/linux/minmax.h:71:9: note: in expansion of macro 'static_assert'
71 | static_assert(__types_ok(val, hi), "clamp() 'hi' signedness error"); \
| ^~~~~~~~~~~~~
include/linux/minmax.h:41:17: note: in expansion of macro '__is_noneg_int'
41 | __is_noneg_int(x) || __is_noneg_int(y))
| ^~~~~~~~~~~~~~
include/linux/minmax.h:71:23: note: in expansion of macro '__types_ok'
71 | static_assert(__types_ok(val, hi), "clamp() 'hi' signedness error"); \
| ^~~~~~~~~~
include/linux/minmax.h:77:17: note: in expansion of macro '__clamp_once'
77 | __clamp_once(val, lo, hi, __UNIQUE_ID(__val), \
| ^~~~~~~~~~~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:23: note: in expansion of macro 'clamp'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~~~~
include/linux/minmax.h:36:10: error: first argument to '__builtin_choose_expr' not a constant
36 | (__builtin_choose_expr(__is_constexpr(x) && __is_signed(x), x, -1) >= 0)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
include/linux/minmax.h:71:9: note: in expansion of macro 'static_assert'
71 | static_assert(__types_ok(val, hi), "clamp() 'hi' signedness error"); \
| ^~~~~~~~~~~~~
include/linux/minmax.h:41:17: note: in expansion of macro '__is_noneg_int'
41 | __is_noneg_int(x) || __is_noneg_int(y))
| ^~~~~~~~~~~~~~
include/linux/minmax.h:71:23: note: in expansion of macro '__types_ok'
71 | static_assert(__types_ok(val, hi), "clamp() 'hi' signedness error"); \
| ^~~~~~~~~~
include/linux/minmax.h:77:17: note: in expansion of macro '__clamp_once'
77 | __clamp_once(val, lo, hi, __UNIQUE_ID(__val), \
| ^~~~~~~~~~~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:23: note: in expansion of macro 'clamp'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~~~~
include/linux/minmax.h:39:9: error: expression in static assertion is not an integer
39 | (__is_signed(x) == __is_signed(y) || \
| ^
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
include/linux/minmax.h:71:9: note: in expansion of macro 'static_assert'
71 | static_assert(__types_ok(val, hi), "clamp() 'hi' signedness error"); \
| ^~~~~~~~~~~~~
include/linux/minmax.h:71:23: note: in expansion of macro '__types_ok'
71 | static_assert(__types_ok(val, hi), "clamp() 'hi' signedness error"); \
| ^~~~~~~~~~
include/linux/minmax.h:77:17: note: in expansion of macro '__clamp_once'
77 | __clamp_once(val, lo, hi, __UNIQUE_ID(__val), \
| ^~~~~~~~~~~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:23: note: in expansion of macro 'clamp'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~~~~
include/linux/minmax.h:75:9: error: first argument to '__builtin_choose_expr' not a constant
75 | __builtin_choose_expr(__is_constexpr((val) - (lo) + (hi)), \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:265:23: note: in expansion of macro 'clamp'
265 | meta->width = clamp(meta->width, IPU6_ISYS_MIN_WIDTH,
| ^~~~~
>> drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:13: error: 'struct v4l2_meta_format' has no member named 'height'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:34: error: 'struct v4l2_meta_format' has no member named 'height'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~
include/linux/compiler.h:236:55: note: in definition of macro '__is_constexpr'
236 | (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
| ^
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:24: note: in expansion of macro 'clamp'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:34: error: 'struct v4l2_meta_format' has no member named 'height'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~
include/linux/minmax.h:61:11: note: in definition of macro '__clamp'
61 | ((val) >= (hi) ? (hi) : ((val) <= (lo) ? (lo) : (val)))
| ^~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:24: note: in expansion of macro 'clamp'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:34: error: 'struct v4l2_meta_format' has no member named 'height'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~
include/linux/minmax.h:61:35: note: in definition of macro '__clamp'
61 | ((val) >= (hi) ? (hi) : ((val) <= (lo) ? (lo) : (val)))
| ^~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:24: note: in expansion of macro 'clamp'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:34: error: 'struct v4l2_meta_format' has no member named 'height'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~
include/linux/minmax.h:61:58: note: in definition of macro '__clamp'
61 | ((val) >= (hi) ? (hi) : ((val) <= (lo) ? (lo) : (val)))
| ^~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:24: note: in expansion of macro 'clamp'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:34: error: 'struct v4l2_meta_format' has no member named 'height'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~
include/linux/minmax.h:64:16: note: in definition of macro '__clamp_once'
64 | typeof(val) unique_val = (val); \
| ^~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:24: note: in expansion of macro 'clamp'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:34: error: 'struct v4l2_meta_format' has no member named 'height'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~
include/linux/minmax.h:64:35: note: in definition of macro '__clamp_once'
64 | typeof(val) unique_val = (val); \
| ^~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
| ^~~~~~~~~~~~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:24: note: in expansion of macro 'clamp'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~~~~
drivers/media/pci/intel/ipu6/ipu6-isys-video.c:267:34: error: 'struct v4l2_meta_format' has no member named 'height'
267 | meta->height = clamp(meta->height, IPU6_ISYS_MIN_HEIGHT,
| ^~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
include/linux/minmax.h:70:9: note: in expansion of macro 'static_assert'
70 | static_assert(__types_ok(val, lo), "clamp() 'lo' signedness error"); \
| ^~~~~~~~~~~~~
include/linux/minmax.h:31:31: note: in expansion of macro '__is_constexpr'
31 | __builtin_choose_expr(__is_constexpr(is_signed_type(typeof(x))), \
| ^~~~~~~~~~~~~~
include/linux/minmax.h:31:46: note: in expansion of macro 'is_signed_type'
31 | __builtin_choose_expr(__is_constexpr(is_signed_type(typeof(x))), \
| ^~~~~~~~~~~~~~
include/linux/minmax.h:39:10: note: in expansion of macro '__is_signed'
39 | (__is_signed(x) == __is_signed(y) || \
| ^~~~~~~~~~~
include/linux/minmax.h:70:23: note: in expansion of macro '__types_ok'
70 | static_assert(__types_ok(val, lo), "clamp() 'lo' signedness error"); \
| ^~~~~~~~~~
include/linux/minmax.h:77:17: note: in expansion of macro '__clamp_once'
77 | __clamp_once(val, lo, hi, __UNIQUE_ID(__val), \
| ^~~~~~~~~~~~
include/linux/minmax.h:146:28: note: in expansion of macro '__careful_clamp'
146 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi)
..
vim +23 drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
18
19 unsigned int ipu6_isys_mbus_code_to_bpp(u32 code)
20 {
21 switch (code) {
22 case MEDIA_BUS_FMT_RGB888_1X24:
> 23 case MEDIA_BUS_FMT_META_24:
24 return 24;
25 case MEDIA_BUS_FMT_RGB565_1X16:
26 case MEDIA_BUS_FMT_UYVY8_1X16:
27 case MEDIA_BUS_FMT_YUYV8_1X16:
> 28 case MEDIA_BUS_FMT_META_16:
29 return 16;
30 case MEDIA_BUS_FMT_SBGGR12_1X12:
31 case MEDIA_BUS_FMT_SGBRG12_1X12:
32 case MEDIA_BUS_FMT_SGRBG12_1X12:
33 case MEDIA_BUS_FMT_SRGGB12_1X12:
> 34 case MEDIA_BUS_FMT_META_12:
35 return 12;
36 case MEDIA_BUS_FMT_SBGGR10_1X10:
37 case MEDIA_BUS_FMT_SGBRG10_1X10:
38 case MEDIA_BUS_FMT_SGRBG10_1X10:
39 case MEDIA_BUS_FMT_SRGGB10_1X10:
> 40 case MEDIA_BUS_FMT_META_10:
41 return 10;
42 case MEDIA_BUS_FMT_SBGGR8_1X8:
43 case MEDIA_BUS_FMT_SGBRG8_1X8:
44 case MEDIA_BUS_FMT_SGRBG8_1X8:
45 case MEDIA_BUS_FMT_SRGGB8_1X8:
> 46 case MEDIA_BUS_FMT_META_8:
47 return 8;
48 default:
49 WARN_ON(1);
50 return 8;
51 }
52 }
53
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-01-11 21:24 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-11 6:55 [PATCH v3 00/15] Intel IPU6 and IPU6 input system drivers bingbu.cao
2024-01-11 6:55 ` [PATCH v3 01/17] media: intel/ipu6: add Intel IPU6 PCI device driver bingbu.cao
2024-01-15 13:36 ` Hans de Goede
2024-01-15 13:45 ` Sakari Ailus
2024-01-11 6:55 ` [PATCH v3 02/17] media: intel/ipu6: add IPU auxiliary devices bingbu.cao
2024-01-11 6:55 ` [PATCH v3 03/17] media: intel/ipu6: add IPU6 buttress interface driver bingbu.cao
2024-01-11 6:55 ` [PATCH v3 04/17] media: intel/ipu6: CPD parsing for get firmware components bingbu.cao
2024-01-11 6:55 ` [PATCH v3 05/17] media: intel/ipu6: add IPU6 DMA mapping API and MMU table bingbu.cao
2024-01-11 6:55 ` [PATCH v3 06/17] media: intel/ipu6: add syscom interfaces between firmware and driver bingbu.cao
2024-01-11 6:55 ` [PATCH v3 07/17] media: intel/ipu6: input system ABI " bingbu.cao
2024-01-15 12:17 ` Sakari Ailus
2024-01-11 6:55 ` [PATCH v3 08/17] media: intel/ipu6: add IPU6 CSI2 receiver v4l2 sub-device bingbu.cao
2024-01-11 6:55 ` [PATCH v3 09/17] media: intel/ipu6: add the CSI2 DPHY implementation bingbu.cao
2024-01-11 6:55 ` [PATCH v3 10/17] media: intel/ipu6: add input system driver bingbu.cao
2024-01-11 14:05 ` Sakari Ailus
2024-02-07 9:36 ` Andreas Helbech Kleist
2024-02-12 18:31 ` Sakari Ailus
2024-02-15 6:43 ` Andreas Helbech Kleist
2024-02-15 8:06 ` Sakari Ailus
2024-01-11 6:55 ` [PATCH v3 11/17] media: intel/ipu6: input system video capture nodes bingbu.cao
2024-03-08 9:58 ` Andreas Helbech Kleist
2024-01-11 6:55 ` [PATCH v3 12/17] media: add Kconfig and Makefile for IPU6 bingbu.cao
2024-01-11 6:55 ` [PATCH v3 13/17] MAINTAINERS: add maintainers for Intel IPU6 input system driver bingbu.cao
2024-01-11 6:55 ` [PATCH v3 14/17] Documentation: add Intel IPU6 ISYS driver admin-guide doc bingbu.cao
2024-01-11 6:55 ` [PATCH v3 15/17] Documentation: add documentation of Intel IPU6 driver and hardware overview bingbu.cao
2024-01-11 6:55 ` [PATCH v3 16/17] media: ipu6/isys: support line-based metadata capture support bingbu.cao
2024-01-11 12:52 ` Sakari Ailus
2024-01-11 21:20 ` kernel test robot [this message]
2024-01-12 3:31 ` kernel test robot
2024-01-11 6:55 ` [PATCH v3 17/17] media: ipu6/isys: support new v4l2 subdev state APIs bingbu.cao
2024-01-11 12:37 ` Sakari Ailus
2024-01-16 16:12 ` [PATCH v3 00/15] Intel IPU6 and IPU6 input system drivers Hans de Goede
2024-01-16 16:18 ` Laurent Pinchart
2024-01-16 16:38 ` Hans de Goede
2024-01-16 16:42 ` Laurent Pinchart
2024-01-16 16:43 ` Hans de Goede
2024-01-16 16:54 ` Sakari Ailus
2024-01-16 16:57 ` Hans de Goede
2024-01-16 17:48 ` Laurent Pinchart
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=202401120528.5MY4pum6-lkp@intel.com \
--to=lkp@intel.com \
--cc=andreaskleist@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bingbu.cao@intel.com \
--cc=bingbu.cao@linux.intel.com \
--cc=claus.stovgaard@gmail.com \
--cc=hdegoede@redhat.com \
--cc=hongju.wang@intel.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sakari.ailus@linux.intel.com \
--cc=senozhatsky@chromium.org \
--cc=tfiga@chromium.org \
--cc=tian.shu.qiu@intel.com \
--cc=tomi.valkeinen@ideasonboard.com \
/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