[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202211020143.Tw1N9OjH-lkp@intel.com>
Date: Wed, 2 Nov 2022 01:10:48 +0800
From: kernel test robot <lkp@...el.com>
To: Hsia-Jun Li <randy.li@...aptics.com>,
dri-devel@...ts.freedesktop.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
airlied@...ux.ie, daniel@...ll.ch, ezequiel@...guardiasur.com.ar,
helen.koike@...labora.com, hverkuil-cisco@...all.nl,
jszhang@...nel.org, laurent.pinchart@...asonboard.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org, maarten.lankhorst@...ux.intel.com,
mchehab@...nel.org, mripard@...nel.org, nicolas@...fresne.ca,
ribalda@...omium.org, sakari.ailus@...ux.intel.com,
sebastian.hesselbarth@...il.com, tfiga@...omium.org,
tzimmermann@...e.de, "Hsia-Jun(Randy) Li" <randy.li@...aptics.com>
Subject: Re: [PATCH v3 2/4] media: videodev2.h: add pixel format modifiers
Hi Hsia-Jun,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on media-tree/master]
[also build test ERROR on drm-misc/drm-misc-next drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-tip/drm-tip linus/master v6.1-rc3 next-20221101]
[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/Hsia-Jun-Li/Add-pixel-formats-used-in-Synatpics-SoC/20221101-180905
base: git://linuxtv.org/media_tree.git master
patch link: https://lore.kernel.org/r/20221101100448.66712-3-randy.li%40synaptics.com
patch subject: [PATCH v3 2/4] media: videodev2.h: add pixel format modifiers
config: arm-randconfig-r002-20221101
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/intel-lab-lkp/linux/commit/58e89ab4bf39c7b8b8733c2e5129c0ceb19cd270
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Hsia-Jun-Li/Add-pixel-formats-used-in-Synatpics-SoC/20221101-180905
git checkout 58e89ab4bf39c7b8b8733c2e5129c0ceb19cd270
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/imx/ drivers/gpu/ipu-v3/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/gpu/ipu-v3/ipu-common.c:26:
In file included from include/video/imx-ipu-v3.h:16:
In file included from include/linux/videodev2.h:61:
>> include/uapi/linux/videodev2.h:828:9: warning: 'fourcc_mod_is_vendor' macro redefined [-Wmacro-redefined]
#define fourcc_mod_is_vendor(modifier, vendor) \
^
include/uapi/drm/drm_fourcc.h:419:9: note: previous definition is here
#define fourcc_mod_is_vendor(modifier, vendor) \
^
In file included from drivers/gpu/ipu-v3/ipu-common.c:26:
In file included from include/video/imx-ipu-v3.h:16:
In file included from include/linux/videodev2.h:61:
>> include/uapi/linux/videodev2.h:831:9: warning: 'fourcc_mod_code' macro redefined [-Wmacro-redefined]
#define fourcc_mod_code(vendor, val) \
^
include/uapi/drm/drm_fourcc.h:422:9: note: previous definition is here
#define fourcc_mod_code(vendor, val) \
^
2 warnings generated.
--
In file included from drivers/gpu/ipu-v3/ipu-pre.c:13:
In file included from include/video/imx-ipu-v3.h:16:
In file included from include/linux/videodev2.h:61:
>> include/uapi/linux/videodev2.h:828:9: warning: 'fourcc_mod_is_vendor' macro redefined [-Wmacro-redefined]
#define fourcc_mod_is_vendor(modifier, vendor) \
^
include/uapi/drm/drm_fourcc.h:419:9: note: previous definition is here
#define fourcc_mod_is_vendor(modifier, vendor) \
^
In file included from drivers/gpu/ipu-v3/ipu-pre.c:13:
In file included from include/video/imx-ipu-v3.h:16:
In file included from include/linux/videodev2.h:61:
>> include/uapi/linux/videodev2.h:831:9: warning: 'fourcc_mod_code' macro redefined [-Wmacro-redefined]
#define fourcc_mod_code(vendor, val) \
^
include/uapi/drm/drm_fourcc.h:422:9: note: previous definition is here
#define fourcc_mod_code(vendor, val) \
^
>> drivers/gpu/ipu-v3/ipu-pre.c:174:18: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE'
if (modifier == DRM_FORMAT_MOD_LINEAR)
^
include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR'
#define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:125:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_NONE
^
drivers/gpu/ipu-v3/ipu-pre.c:213:18: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE'
if (modifier != DRM_FORMAT_MOD_LINEAR) {
^
include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR'
#define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:126:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_NONE
^
>> drivers/gpu/ipu-v3/ipu-pre.c:216:19: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE'
if (modifier == DRM_FORMAT_MOD_VIVANTE_SUPER_TILED)
^
include/uapi/drm/drm_fourcc.h:728:44: note: expanded from macro 'DRM_FORMAT_MOD_VIVANTE_SUPER_TILED'
#define DRM_FORMAT_MOD_VIVANTE_SUPER_TILED fourcc_mod_code(VIVANTE, 2)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:127:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_VIVANTE
^
drivers/gpu/ipu-v3/ipu-pre.c:226:18: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE'
if (modifier == DRM_FORMAT_MOD_LINEAR)
^
include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR'
#define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:128:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_NONE
^
2 warnings and 4 errors generated.
--
In file included from drivers/gpu/ipu-v3/ipu-prg.c:17:
In file included from include/video/imx-ipu-v3.h:16:
In file included from include/linux/videodev2.h:61:
>> include/uapi/linux/videodev2.h:828:9: warning: 'fourcc_mod_is_vendor' macro redefined [-Wmacro-redefined]
#define fourcc_mod_is_vendor(modifier, vendor) \
^
include/uapi/drm/drm_fourcc.h:419:9: note: previous definition is here
#define fourcc_mod_is_vendor(modifier, vendor) \
^
In file included from drivers/gpu/ipu-v3/ipu-prg.c:17:
In file included from include/video/imx-ipu-v3.h:16:
In file included from include/linux/videodev2.h:61:
>> include/uapi/linux/videodev2.h:831:9: warning: 'fourcc_mod_code' macro redefined [-Wmacro-redefined]
#define fourcc_mod_code(vendor, val) \
^
include/uapi/drm/drm_fourcc.h:422:9: note: previous definition is here
#define fourcc_mod_code(vendor, val) \
^
>> drivers/gpu/ipu-v3/ipu-prg.c:133:7: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE'
case DRM_FORMAT_MOD_LINEAR:
^
include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR'
#define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:125:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_NONE
^
>> drivers/gpu/ipu-v3/ipu-prg.c:134:7: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE'
case DRM_FORMAT_MOD_VIVANTE_TILED:
^
include/uapi/drm/drm_fourcc.h:716:39: note: expanded from macro 'DRM_FORMAT_MOD_VIVANTE_TILED'
#define DRM_FORMAT_MOD_VIVANTE_TILED fourcc_mod_code(VIVANTE, 1)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:126:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_VIVANTE
^
drivers/gpu/ipu-v3/ipu-prg.c:135:7: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE'
case DRM_FORMAT_MOD_VIVANTE_SUPER_TILED:
^
include/uapi/drm/drm_fourcc.h:728:44: note: expanded from macro 'DRM_FORMAT_MOD_VIVANTE_SUPER_TILED'
#define DRM_FORMAT_MOD_VIVANTE_SUPER_TILED fourcc_mod_code(VIVANTE, 2)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:127:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_VIVANTE
^
2 warnings and 3 errors generated.
--
In file included from drivers/gpu/drm/imx/ipuv3-plane.c:18:
In file included from include/video/imx-ipu-v3.h:16:
In file included from include/linux/videodev2.h:61:
>> include/uapi/linux/videodev2.h:828:9: warning: 'fourcc_mod_is_vendor' macro redefined [-Wmacro-redefined]
#define fourcc_mod_is_vendor(modifier, vendor) \
^
include/uapi/drm/drm_fourcc.h:419:9: note: previous definition is here
#define fourcc_mod_is_vendor(modifier, vendor) \
^
In file included from drivers/gpu/drm/imx/ipuv3-plane.c:18:
In file included from include/video/imx-ipu-v3.h:16:
In file included from include/linux/videodev2.h:61:
>> include/uapi/linux/videodev2.h:831:9: warning: 'fourcc_mod_code' macro redefined [-Wmacro-redefined]
#define fourcc_mod_code(vendor, val) \
^
include/uapi/drm/drm_fourcc.h:422:9: note: previous definition is here
#define fourcc_mod_code(vendor, val) \
^
>> drivers/gpu/drm/imx/ipuv3-plane.c:107:2: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE'
DRM_FORMAT_MOD_LINEAR,
^
include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR'
#define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:89:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_NONE
^
drivers/gpu/drm/imx/ipuv3-plane.c:108:2: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE'
DRM_FORMAT_MOD_INVALID
^
include/uapi/drm/drm_fourcc.h:465:32: note: expanded from macro 'DRM_FORMAT_MOD_INVALID'
#define DRM_FORMAT_MOD_INVALID fourcc_mod_code(NONE, DRM_FORMAT_RESERVED)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:90:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_NONE
^
drivers/gpu/drm/imx/ipuv3-plane.c:112:2: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE'
DRM_FORMAT_MOD_LINEAR,
^
include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR'
#define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:91:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_NONE
^
>> drivers/gpu/drm/imx/ipuv3-plane.c:113:2: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE'
DRM_FORMAT_MOD_VIVANTE_TILED,
^
include/uapi/drm/drm_fourcc.h:716:39: note: expanded from macro 'DRM_FORMAT_MOD_VIVANTE_TILED'
#define DRM_FORMAT_MOD_VIVANTE_TILED fourcc_mod_code(VIVANTE, 1)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:92:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_VIVANTE
^
drivers/gpu/drm/imx/ipuv3-plane.c:114:2: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE'
DRM_FORMAT_MOD_VIVANTE_SUPER_TILED,
^
include/uapi/drm/drm_fourcc.h:728:44: note: expanded from macro 'DRM_FORMAT_MOD_VIVANTE_SUPER_TILED'
#define DRM_FORMAT_MOD_VIVANTE_SUPER_TILED fourcc_mod_code(VIVANTE, 2)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:93:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_VIVANTE
^
drivers/gpu/drm/imx/ipuv3-plane.c:115:2: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE'
DRM_FORMAT_MOD_INVALID
^
include/uapi/drm/drm_fourcc.h:465:32: note: expanded from macro 'DRM_FORMAT_MOD_INVALID'
#define DRM_FORMAT_MOD_INVALID fourcc_mod_code(NONE, DRM_FORMAT_RESERVED)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:94:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_NONE
^
drivers/gpu/drm/imx/ipuv3-plane.c:346:18: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE'
if (modifier == DRM_FORMAT_MOD_LINEAR)
^
include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR'
#define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:114:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_NONE
^
drivers/gpu/drm/imx/ipuv3-plane.c:834:36: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE'
plane_state->fb->modifier == DRM_FORMAT_MOD_LINEAR)
^
include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR'
#define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:151:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_NONE
^
drivers/gpu/drm/imx/ipuv3-plane.c:859:36: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE'
plane_state->fb->modifier != DRM_FORMAT_MOD_LINEAR)
^
include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR'
#define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:152:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_NONE
^
drivers/gpu/drm/imx/ipuv3-plane.c:863:31: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE'
plane_state->fb->modifier = DRM_FORMAT_MOD_LINEAR;
^
include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR'
#define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0)
^
include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code'
((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
^
<scratch space>:153:1: note: expanded from here
V4L2_PIX_FMT_MOD_VENDOR_NONE
^
2 warnings and 10 errors generated.
vim +/fourcc_mod_is_vendor +828 include/uapi/linux/videodev2.h
824
825 #define fourcc_mod_get_vendor(modifier) \
826 (((modifier) >> 56) & 0xff)
827
> 828 #define fourcc_mod_is_vendor(modifier, vendor) \
829 (fourcc_mod_get_vendor(modifier) == V4L2_PIX_FMT_MOD_VENDOR_## vendor)
830
> 831 #define fourcc_mod_code(vendor, val) \
832 ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
833
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (157883 bytes)
Powered by blists - more mailing lists