[radeon-alex:drm-next-4.15-wip 24/81] drivers/gpu//drm/ttm/ttm_page_alloc.c:950:6: error: redefinition of 'ttm_unmap_and_unpopulate_pages'

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

 



tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.15-wip
head:   c9121e92b3a8e12a8b40e362c30073d6a6a5b794
commit: a4dec819c8bba6365eb893a4ca88db4dd1210110 [24/81] drm/ttm: Add helper functions to populate/map in one call (v2)
config: frv-allmodconfig (attached as .config)
compiler: frv-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout a4dec819c8bba6365eb893a4ca88db4dd1210110
        # save the attached .config to linux build tree
        make.cross ARCH=frv 

All errors (new ones prefixed by >>):

   drivers/gpu//drm/ttm/ttm_page_alloc.c:923:5: error: redefinition of 'ttm_populate_and_map_pages'
    int ttm_populate_and_map_pages(struct device *dev, struct ttm_dma_tt *tt)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu//drm/ttm/ttm_page_alloc.c:49:0:
   include/drm/ttm/ttm_page_alloc.h:120:19: note: previous definition of 'ttm_populate_and_map_pages' was here
    static inline int ttm_populate_and_map_pages(struct device *dev, struct ttm_dma_tt *tt)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu//drm/ttm/ttm_page_alloc.c:950:6: error: redefinition of 'ttm_unmap_and_unpopulate_pages'
    void ttm_unmap_and_unpopulate_pages(struct device *dev, struct ttm_dma_tt *tt)
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu//drm/ttm/ttm_page_alloc.c:49:0:
   include/drm/ttm/ttm_page_alloc.h:125:20: note: previous definition of 'ttm_unmap_and_unpopulate_pages' was here
    static inline void ttm_unmap_and_unpopulate_pages(struct device *dev, struct ttm_dma_tt *tt)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/ttm_unmap_and_unpopulate_pages +950 drivers/gpu//drm/ttm/ttm_page_alloc.c

   922	
 > 923	int ttm_populate_and_map_pages(struct device *dev, struct ttm_dma_tt *tt)
   924	{
   925		unsigned i;
   926		int r;
   927	
   928		r = ttm_pool_populate(&tt->ttm);
   929		if (r)
   930			return r;
   931	
   932		for (i = 0; i < tt->ttm.num_pages; i++) {
   933			tt->dma_address[i] = dma_map_page(dev, tt->ttm.pages[i],
   934							  0, PAGE_SIZE,
   935							  DMA_BIDIRECTIONAL);
   936			if (dma_mapping_error(dev, tt->dma_address[i])) {
   937				while (i--) {
   938					dma_unmap_page(dev, tt->dma_address[i],
   939						       PAGE_SIZE, DMA_BIDIRECTIONAL);
   940					tt->dma_address[i] = 0;
   941				}
   942				ttm_pool_unpopulate(&tt->ttm);
   943				return -EFAULT;
   944			}
   945		}
   946		return 0;
   947	}
   948	EXPORT_SYMBOL(ttm_populate_and_map_pages);
   949	
 > 950	void ttm_unmap_and_unpopulate_pages(struct device *dev, struct ttm_dma_tt *tt)
   951	{
   952		unsigned i;
   953		
   954		for (i = 0; i < tt->ttm.num_pages; i++) {
   955			if (tt->dma_address[i]) {
   956				dma_unmap_page(dev, tt->dma_address[i],
   957					       PAGE_SIZE, DMA_BIDIRECTIONAL);
   958			}
   959		}
   960		ttm_pool_unpopulate(&tt->ttm);
   961	}
   962	EXPORT_SYMBOL(ttm_unmap_and_unpopulate_pages);
   963	

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux