All of lore.kernel.org
 help / color / mirror / Atom feed
* [ragnatech:media-tree 141/170] drivers/pci/mmap.c:57:23: error: implicit declaration of function 'pgprot_device'; did you mean 'put_device'?
@ 2020-04-20  7:48 ` kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-04-20  7:48 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: kbuild-all, linux-media

[-- Attachment #1: Type: text/plain, Size: 4044 bytes --]

Hi Mauro,

First bad commit (maybe != root cause):

tree:   git://git.ragnatech.se/linux media-tree
head:   ceab3ac1e60d70afb4e25147d60817c513f235f7
commit: df823a8208c434eee6e4e9aa016c956d0968e2e2 [141/170] media: cec: rename CEC platform drivers config options
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.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 df823a8208c434eee6e4e9aa016c956d0968e2e2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sh 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/pci/mmap.c: In function 'pci_mmap_resource_range':
>> drivers/pci/mmap.c:57:23: error: implicit declaration of function 'pgprot_device'; did you mean 'put_device'? [-Werror=implicit-function-declaration]
      57 |   vma->vm_page_prot = pgprot_device(vma->vm_page_prot);
         |                       ^~~~~~~~~~~~~
         |                       put_device
>> drivers/pci/mmap.c:57:23: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct <anonymous>'} from type 'int'
   cc1: some warnings being treated as errors

vim +57 drivers/pci/mmap.c

f719582435afe9 David Woodhouse 2017-04-12  42  
f719582435afe9 David Woodhouse 2017-04-12  43  int pci_mmap_resource_range(struct pci_dev *pdev, int bar,
f719582435afe9 David Woodhouse 2017-04-12  44  			    struct vm_area_struct *vma,
f719582435afe9 David Woodhouse 2017-04-12  45  			    enum pci_mmap_state mmap_state, int write_combine)
f719582435afe9 David Woodhouse 2017-04-12  46  {
f719582435afe9 David Woodhouse 2017-04-12  47  	unsigned long size;
2bea36fd1af440 David Woodhouse 2017-04-12  48  	int ret;
f719582435afe9 David Woodhouse 2017-04-12  49  
f719582435afe9 David Woodhouse 2017-04-12  50  	size = ((pci_resource_len(pdev, bar) - 1) >> PAGE_SHIFT) + 1;
f719582435afe9 David Woodhouse 2017-04-12  51  	if (vma->vm_pgoff + vma_pages(vma) > size)
f719582435afe9 David Woodhouse 2017-04-12  52  		return -EINVAL;
f719582435afe9 David Woodhouse 2017-04-12  53  
f719582435afe9 David Woodhouse 2017-04-12  54  	if (write_combine)
f719582435afe9 David Woodhouse 2017-04-12  55  		vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
f719582435afe9 David Woodhouse 2017-04-12  56  	else
f719582435afe9 David Woodhouse 2017-04-12 @57  		vma->vm_page_prot = pgprot_device(vma->vm_page_prot);
f719582435afe9 David Woodhouse 2017-04-12  58  
2bea36fd1af440 David Woodhouse 2017-04-12  59  	if (mmap_state == pci_mmap_io) {
2bea36fd1af440 David Woodhouse 2017-04-12  60  		ret = pci_iobar_pfn(pdev, bar, vma);
2bea36fd1af440 David Woodhouse 2017-04-12  61  		if (ret)
2bea36fd1af440 David Woodhouse 2017-04-12  62  			return ret;
2bea36fd1af440 David Woodhouse 2017-04-12  63  	} else
f719582435afe9 David Woodhouse 2017-04-12  64  		vma->vm_pgoff += (pci_resource_start(pdev, bar) >> PAGE_SHIFT);
2bea36fd1af440 David Woodhouse 2017-04-12  65  
f719582435afe9 David Woodhouse 2017-04-12  66  	vma->vm_ops = &pci_phys_vm_ops;
f719582435afe9 David Woodhouse 2017-04-12  67  
f719582435afe9 David Woodhouse 2017-04-12  68  	return io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff,
f719582435afe9 David Woodhouse 2017-04-12  69  				  vma->vm_end - vma->vm_start,
f719582435afe9 David Woodhouse 2017-04-12  70  				  vma->vm_page_prot);
f719582435afe9 David Woodhouse 2017-04-12  71  }
f719582435afe9 David Woodhouse 2017-04-12  72  

:::::: The code at line 57 was first introduced by commit
:::::: f719582435afe9c7985206e42d804ea6aa315d33 PCI: Add pci_mmap_resource_range() and use it for ARM64

:::::: TO: David Woodhouse <dwmw@amazon.co.uk>
:::::: CC: Bjorn Helgaas <bhelgaas@google.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 61252 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ragnatech:media-tree 141/170] drivers/pci/mmap.c:57:23: error: implicit declaration of function 'pgprot_device'; did you mean 'put_device'?
@ 2020-04-20  7:48 ` kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-04-20  7:48 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4118 bytes --]

Hi Mauro,

First bad commit (maybe != root cause):

tree:   git://git.ragnatech.se/linux media-tree
head:   ceab3ac1e60d70afb4e25147d60817c513f235f7
commit: df823a8208c434eee6e4e9aa016c956d0968e2e2 [141/170] media: cec: rename CEC platform drivers config options
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.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 df823a8208c434eee6e4e9aa016c956d0968e2e2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sh 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/pci/mmap.c: In function 'pci_mmap_resource_range':
>> drivers/pci/mmap.c:57:23: error: implicit declaration of function 'pgprot_device'; did you mean 'put_device'? [-Werror=implicit-function-declaration]
      57 |   vma->vm_page_prot = pgprot_device(vma->vm_page_prot);
         |                       ^~~~~~~~~~~~~
         |                       put_device
>> drivers/pci/mmap.c:57:23: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct <anonymous>'} from type 'int'
   cc1: some warnings being treated as errors

vim +57 drivers/pci/mmap.c

f719582435afe9 David Woodhouse 2017-04-12  42  
f719582435afe9 David Woodhouse 2017-04-12  43  int pci_mmap_resource_range(struct pci_dev *pdev, int bar,
f719582435afe9 David Woodhouse 2017-04-12  44  			    struct vm_area_struct *vma,
f719582435afe9 David Woodhouse 2017-04-12  45  			    enum pci_mmap_state mmap_state, int write_combine)
f719582435afe9 David Woodhouse 2017-04-12  46  {
f719582435afe9 David Woodhouse 2017-04-12  47  	unsigned long size;
2bea36fd1af440 David Woodhouse 2017-04-12  48  	int ret;
f719582435afe9 David Woodhouse 2017-04-12  49  
f719582435afe9 David Woodhouse 2017-04-12  50  	size = ((pci_resource_len(pdev, bar) - 1) >> PAGE_SHIFT) + 1;
f719582435afe9 David Woodhouse 2017-04-12  51  	if (vma->vm_pgoff + vma_pages(vma) > size)
f719582435afe9 David Woodhouse 2017-04-12  52  		return -EINVAL;
f719582435afe9 David Woodhouse 2017-04-12  53  
f719582435afe9 David Woodhouse 2017-04-12  54  	if (write_combine)
f719582435afe9 David Woodhouse 2017-04-12  55  		vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
f719582435afe9 David Woodhouse 2017-04-12  56  	else
f719582435afe9 David Woodhouse 2017-04-12 @57  		vma->vm_page_prot = pgprot_device(vma->vm_page_prot);
f719582435afe9 David Woodhouse 2017-04-12  58  
2bea36fd1af440 David Woodhouse 2017-04-12  59  	if (mmap_state == pci_mmap_io) {
2bea36fd1af440 David Woodhouse 2017-04-12  60  		ret = pci_iobar_pfn(pdev, bar, vma);
2bea36fd1af440 David Woodhouse 2017-04-12  61  		if (ret)
2bea36fd1af440 David Woodhouse 2017-04-12  62  			return ret;
2bea36fd1af440 David Woodhouse 2017-04-12  63  	} else
f719582435afe9 David Woodhouse 2017-04-12  64  		vma->vm_pgoff += (pci_resource_start(pdev, bar) >> PAGE_SHIFT);
2bea36fd1af440 David Woodhouse 2017-04-12  65  
f719582435afe9 David Woodhouse 2017-04-12  66  	vma->vm_ops = &pci_phys_vm_ops;
f719582435afe9 David Woodhouse 2017-04-12  67  
f719582435afe9 David Woodhouse 2017-04-12  68  	return io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff,
f719582435afe9 David Woodhouse 2017-04-12  69  				  vma->vm_end - vma->vm_start,
f719582435afe9 David Woodhouse 2017-04-12  70  				  vma->vm_page_prot);
f719582435afe9 David Woodhouse 2017-04-12  71  }
f719582435afe9 David Woodhouse 2017-04-12  72  

:::::: The code at line 57 was first introduced by commit
:::::: f719582435afe9c7985206e42d804ea6aa315d33 PCI: Add pci_mmap_resource_range() and use it for ARM64

:::::: TO: David Woodhouse <dwmw@amazon.co.uk>
:::::: CC: Bjorn Helgaas <bhelgaas@google.com>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 61252 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-20  8:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20  7:48 [ragnatech:media-tree 141/170] drivers/pci/mmap.c:57:23: error: implicit declaration of function 'pgprot_device'; did you mean 'put_device'? kbuild test robot
2020-04-20  7:48 ` kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.