[staging:staging-testing 393/537] drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c:267:12: error: 'atomisp_restore_iunit_reg' defined but not used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head:   a729782e2d444d51ee21052fd0db076d3fd4955f
commit: 49637a458b61629672a8ae19fdae2058c64815cf [393/537] staging: media: atomisp: remove '.' from pci Makefile
config: x86_64-randconfig-x019-03200710 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 49637a458b61629672a8ae19fdae2058c64815cf
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c: In function 'atomisp_video_init':
   drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c:137:43: error: 'struct video_device' has no member named 'entity'
     ret = media_entity_pads_init(&video->vdev.entity, 1, &video->pad);
                                              ^
   drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c: In function 'atomisp_video_unregister':
   drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c:195:36: error: 'struct video_device' has no member named 'entity'
      media_entity_cleanup(&video->vdev.entity);
                                       ^
   drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c: In function 'atomisp_register_entities':
   drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c:897:2: error: implicit declaration of function 'media_device_init' [-Werror=implicit-function-declaration]
     media_device_init(&isp->media_dev);
     ^~~~~~~~~~~~~~~~~
   drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c:898:15: error: 'struct v4l2_device' has no member named 'mdev'; did you mean 'dev'?
     isp->v4l2_dev.mdev = &isp->media_dev;
                  ^
   drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c:1029:5: error: implicit declaration of function 'media_device_cleanup' [-Werror=implicit-function-declaration]
        media_device_cleanup(&isp->media_dev);
        ^~~~~~~~~~~~~~~~~~~~
   At top level:
>> drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c:267:12: error: 'atomisp_restore_iunit_reg' defined but not used [-Werror=unused-function]
    static int atomisp_restore_iunit_reg(struct atomisp_device *isp)
               ^~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors

vim +/atomisp_restore_iunit_reg +267 drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c

a49d2536 Alan Cox 2017-02-17  251  	/*
a49d2536 Alan Cox 2017-02-17  252  	 * On CHT CSI_READY bit should be enabled before stream on
a49d2536 Alan Cox 2017-02-17  253  	 */
a49d2536 Alan Cox 2017-02-17  254  	if (IS_CHT && (isp->media_dev.hw_revision >= ((ATOMISP_HW_REVISION_ISP2401 <<
a49d2536 Alan Cox 2017-02-17  255  	    ATOMISP_HW_REVISION_SHIFT) | ATOMISP_HW_STEPPING_B0)))
a49d2536 Alan Cox 2017-02-17  256  		isp->saved_regs.csi_control |=
a49d2536 Alan Cox 2017-02-17  257  			MRFLD_PCI_CSI_CONTROL_CSI_READY;
a49d2536 Alan Cox 2017-02-17  258  	pci_read_config_dword(dev, MRFLD_PCI_CSI_AFE_RCOMP_CONTROL,
a49d2536 Alan Cox 2017-02-17  259  			      &isp->saved_regs.csi_afe_rcomp_config);
a49d2536 Alan Cox 2017-02-17  260  	pci_read_config_dword(dev, MRFLD_PCI_CSI_AFE_HS_CONTROL,
a49d2536 Alan Cox 2017-02-17  261  			      &isp->saved_regs.csi_afe_hs_control);
a49d2536 Alan Cox 2017-02-17  262  	pci_read_config_dword(dev, MRFLD_PCI_CSI_DEADLINE_CONTROL,
a49d2536 Alan Cox 2017-02-17  263  			      &isp->saved_regs.csi_deadline_control);
a49d2536 Alan Cox 2017-02-17  264  	return 0;
a49d2536 Alan Cox 2017-02-17  265  }
a49d2536 Alan Cox 2017-02-17  266  
a49d2536 Alan Cox 2017-02-17 @267  static int atomisp_restore_iunit_reg(struct atomisp_device *isp)
a49d2536 Alan Cox 2017-02-17  268  {
a49d2536 Alan Cox 2017-02-17  269  	struct pci_dev *dev = isp->pdev;
a49d2536 Alan Cox 2017-02-17  270  
a49d2536 Alan Cox 2017-02-17  271  	dev_dbg(isp->dev, "%s\n", __func__);
a49d2536 Alan Cox 2017-02-17  272  
a49d2536 Alan Cox 2017-02-17  273  	pci_write_config_word(dev, PCI_COMMAND, isp->saved_regs.pcicmdsts);
a49d2536 Alan Cox 2017-02-17  274  	pci_write_config_dword(dev, PCI_BASE_ADDRESS_0,
a49d2536 Alan Cox 2017-02-17  275  			       isp->saved_regs.ispmmadr);

:::::: The code at line 267 was first introduced by commit
:::::: a49d25364dfb9f8a64037488a39ab1f56c5fa419 staging/atomisp: Add support for the Intel IPU v2

:::::: TO: Alan Cox <alan@xxxxxxxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux