[hverkuil-media-tree:zoran 4/11] drivers/staging/media/zoran/zoran_card.c:948:31: error: no member named 'dbgfs_dir' in 'struct zoran'

From: kernel test robot
Date: Wed Oct 27 2021 - 03:48:40 EST


tree: git://linuxtv.org/hverkuil/media_tree.git zoran
head: 9d8bc57f18d295b7358d527503eb01770c420143
commit: 33d785015464d1f9bd4ceb885de0f6c4742b41f1 [4/11] staging: media: zoran: add debugfs
config: riscv-randconfig-r032-20211027 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git remote add hverkuil-media-tree git://linuxtv.org/hverkuil/media_tree.git
git fetch --no-tags hverkuil-media-tree zoran
git checkout 33d785015464d1f9bd4ceb885de0f6c4742b41f1
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/staging/media/zoran/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/staging/media/zoran/zoran_card.c:948:31: error: no member named 'dbgfs_dir' in 'struct zoran'
debugfs_remove_recursive(zr->dbgfs_dir);
~~ ^
drivers/staging/media/zoran/zoran_card.c:1141:46: warning: implicit conversion from 'unsigned long long' to 'unsigned int' changes value from 18446744073709551615 to 4294967295 [-Wconstant-conversion]
vb2_dma_contig_set_max_seg_size(&pdev->dev, DMA_BIT_MASK(32));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:40: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^~~~~
1 warning and 1 error generated.


vim +948 drivers/staging/media/zoran/zoran_card.c

939
940 static void zoran_remove(struct pci_dev *pdev)
941 {
942 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev);
943 struct zoran *zr = to_zoran(v4l2_dev);
944
945 if (!zr->initialized)
946 goto exit_free;
947
> 948 debugfs_remove_recursive(zr->dbgfs_dir);
949
950 zoran_queue_exit(zr);
951
952 /* unregister videocodec bus */
953 if (zr->codec)
954 videocodec_detach(zr->codec);
955 if (zr->vfe)
956 videocodec_detach(zr->vfe);
957
958 /* unregister i2c bus */
959 zoran_unregister_i2c(zr);
960 /* disable PCI bus-mastering */
961 zoran_set_pci_master(zr, 0);
962 /* put chip into reset */
963 btwrite(0, ZR36057_SPGPPCR);
964 pci_free_irq(zr->pci_dev, 0, zr);
965 /* unmap and free memory */
966 dma_free_coherent(&zr->pci_dev->dev, BUZ_NUM_STAT_COM * sizeof(u32), zr->stat_com, zr->p_sc);
967 dma_free_coherent(&zr->pci_dev->dev, BUZ_NUM_STAT_COM * sizeof(u32) * 2, zr->stat_comb, zr->p_scb);
968 pci_release_regions(pdev);
969 pci_disable_device(zr->pci_dev);
970 video_unregister_device(zr->video_dev);
971 exit_free:
972 v4l2_ctrl_handler_free(&zr->hdl);
973 v4l2_device_unregister(&zr->v4l2_dev);
974 }
975

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip