Content-Type: multipart/mixed; boundary="===============5076422166050055447==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH] [RFC] drm: mxsfb: Implement LCDIF scanout CRC32 support Date: Mon, 07 Feb 2022 07:01:56 +0800 Message-ID: <202202070617.cZxa0dIi-lkp@intel.com> In-Reply-To: <20220206185643.275811-1-marex@denx.de> List-Id: --===============5076422166050055447== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Marek, [FYI, it's a private test report for your RFC patch.] [auto build test ERROR on drm/drm-next] [also build test ERROR on drm-intel/for-linux-next drm-tip/drm-tip drm-exyn= os/exynos-drm-next tegra-drm/drm/tegra/for-next v5.17-rc2 next-20220204] [cannot apply to airlied/drm-next] [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] url: https://github.com/0day-ci/linux/commits/Marek-Vasut/drm-mxsfb-Impl= ement-LCDIF-scanout-CRC32-support/20220207-025808 base: git://anongit.freedesktop.org/drm/drm drm-next config: riscv-randconfig-r031-20220207 (https://download.01.org/0day-ci/arc= hive/20220207/202202070617.cZxa0dIi-lkp(a)intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 6daaf5= a44925592c764c59219b0024ee06317028) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/0day-ci/linux/commit/75b77e11a90d2a041b405a10d= ce7e1be6aab61a0 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Marek-Vasut/drm-mxsfb-Implement-LC= DIF-scanout-CRC32-support/20220207-025808 git checkout 75b77e11a90d2a041b405a10dce7e1be6aab61a0 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Driscv SHELL=3D/bin/bash drivers/gpu/drm/mxsfb/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): >> drivers/gpu/drm/mxsfb/mxsfb_drv.c:324:33: error: too many arguments prov= ided to function-like macro invocation u32 hwcrc =3D readl(mxsfb->base, LCDC_V4_CRC_STAT); ^ arch/riscv/include/asm/mmio.h:140:9: note: macro 'readl' defined here #define readl(c) ({ u32 __v; __io_br(); __v =3D readl_cpu(c); __i= o_ar(__v); __v; }) ^ >> drivers/gpu/drm/mxsfb/mxsfb_drv.c:324:14: error: use of undeclared ident= ifier 'readl'; did you mean 'vread'? u32 hwcrc =3D readl(mxsfb->base, LCDC_V4_CRC_STAT); ^~~~~ vread include/linux/vmalloc.h:251:13: note: 'vread' declared here extern long vread(char *buf, char *addr, unsigned long count); ^ >> drivers/gpu/drm/mxsfb/mxsfb_drv.c:324:6: warning: incompatible pointer t= o integer conversion initializing 'u32' (aka 'unsigned int') with an expres= sion of type 'long (char *, char *, unsigned long)' [-Wint-conversion] u32 hwcrc =3D readl(mxsfb->base, LCDC_V4_CRC_STAT); ^ ~~~~~ 1 warning and 2 errors generated. vim +324 drivers/gpu/drm/mxsfb/mxsfb_drv.c 317 = 318 static ssize_t mxsfb_frame_checksum_show(struct device *dev, 319 struct device_attribute *attr, 320 char *buf) 321 { 322 struct drm_device *drm =3D dev_get_drvdata(dev); 323 struct mxsfb_drm_private *mxsfb =3D drm->dev_private; > 324 u32 hwcrc =3D readl(mxsfb->base, LCDC_V4_CRC_STAT); 325 u32 swcrc =3D 0xffffffff; 326 int i; 327 = 328 if (mxsfb->gem_vaddr) { 329 for (i =3D 0; i < mxsfb->gem_size / 4; i++) { 330 u32 data =3D bitrev32(((u32 *)mxsfb->gem_vaddr)[i]); 331 swcrc =3D crc32(swcrc, &data, 4); 332 } 333 swcrc =3D bitrev32(swcrc); 334 } 335 = 336 return sysfs_emit(buf, "HW:%08x,SW:%08x,OK:%d\n", hwcrc, swcrc, hwc= rc =3D=3D swcrc); 337 } 338 static DEVICE_ATTR(frame_checksum, 0444, mxsfb_frame_checksum_show, = NULL); 339 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5076422166050055447==--