[tip:WIP.x86/boot 11/55] arch/x86/include/asm/xen/page.h:302:7: warning: 'struct device' declared inside parameter list

2017-01-28 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/boot
head:   0c6fc11ac343c82d4a2f8348fa6f829e07c12554
commit: 5520b7e7d2d20ae2ab6e07b46c42cd43df9d2799 [11/55] x86/boot/e820: Remove 
spurious asm/e820/api.h inclusions
config: x86_64-randconfig-n0-01291212 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
git checkout 5520b7e7d2d20ae2ab6e07b46c42cd43df9d2799
# save the attached .config to linux build tree
make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/xen/page.h:28:0,
from arch/x86/xen/grant-table.c:43:
>> arch/x86/include/asm/xen/page.h:302:7: warning: 'struct device' declared 
>> inside parameter list [enabled by default]
  dma_addr_t dev_addr)
  ^
>> arch/x86/include/asm/xen/page.h:302:7: warning: its scope is only this 
>> definition or declaration, which is probably not what you want [enabled by 
>> default]

vim +302 arch/x86/include/asm/xen/page.h

20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  286 
 #define __pmd_ma(x)((pmd_t) { (x) } )
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  287 
 
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  288 
 #define pgd_val_ma(x)  ((x).pgd)
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  289 
 
eba3ff8b9 arch/x86/include/asm/xen/page.h Jeremy Fitzhardinge   2009-02-09  290 
 void xen_set_domain_pte(pte_t *ptep, pte_t pteval, unsigned domid);
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  291 
 
ce803e705 include/asm-x86/xen/page.h  Jeremy Fitzhardinge   2008-07-08  292 
 xmaddr_t arbitrary_virt_to_machine(void *address);
9976b39b5 arch/x86/include/asm/xen/page.h Jeremy Fitzhardinge   2009-02-27  293 
 unsigned long arbitrary_virt_to_mfn(void *vaddr);
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  294 
 void make_lowmem_page_readonly(void *vaddr);
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  295 
 void make_lowmem_page_readwrite(void *vaddr);
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  296 
 
3216dceb3 arch/x86/include/asm/xen/page.h Stefano Stabellini2013-02-19  297 
 #define xen_remap(cookie, size) ioremap((cookie), (size));
efaf30a33 arch/x86/include/asm/xen/page.h Konrad Rzeszutek Wilk 2014-01-06  298 
 #define xen_unmap(cookie) iounmap((cookie))
3216dceb3 arch/x86/include/asm/xen/page.h Stefano Stabellini2013-02-19  299 
 
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini2014-11-21  300 
 static inline bool xen_arch_need_swiotlb(struct device *dev,
291be10fd arch/x86/include/asm/xen/page.h Julien Grall  2015-09-09  301 
 phys_addr_t phys,
291be10fd arch/x86/include/asm/xen/page.h Julien Grall  2015-09-09 @302 
 dma_addr_t dev_addr)
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini2014-11-21  303 
 {
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini2014-11-21  304 
return false;
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini2014-11-21  305 
 }
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini2014-11-21  306 
 
8746515d7 arch/x86/include/asm/xen/page.h Stefano Stabellini2015-04-24  307 
 static inline unsigned long xen_get_swiotlb_free_pages(unsigned int order)
8746515d7 arch/x86/include/asm/xen/page.h Stefano Stabellini2015-04-24  308 
 {
8746515d7 arch/x86/include/asm/xen/page.h Stefano Stabellini2015-04-24  309 
return __get_free_pages(__GFP_NOWARN, order);
8746515d7 arch/x86/include/asm/xen/page.h Stefano Stabellini2015-04-24  310 
 }

:: The code at line 302 was first introduced by commit
:: 291be10fd7511101d44cf98166d049bd31bc7600 xen/swiotlb: Pass addresses 
rather than frame numbers to xen_arch_need_swiotlb

:: TO: Julien Grall 
:: CC: David Vrabel 

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


.config.gz
Description: application/gzip


[tip:WIP.x86/boot 11/55] arch/x86/include/asm/xen/page.h:302:7: warning: 'struct device' declared inside parameter list

2017-01-28 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/boot
head:   0c6fc11ac343c82d4a2f8348fa6f829e07c12554
commit: 5520b7e7d2d20ae2ab6e07b46c42cd43df9d2799 [11/55] x86/boot/e820: Remove 
spurious asm/e820/api.h inclusions
config: x86_64-randconfig-n0-01291212 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
git checkout 5520b7e7d2d20ae2ab6e07b46c42cd43df9d2799
# save the attached .config to linux build tree
make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/xen/page.h:28:0,
from arch/x86/xen/grant-table.c:43:
>> arch/x86/include/asm/xen/page.h:302:7: warning: 'struct device' declared 
>> inside parameter list [enabled by default]
  dma_addr_t dev_addr)
  ^
>> arch/x86/include/asm/xen/page.h:302:7: warning: its scope is only this 
>> definition or declaration, which is probably not what you want [enabled by 
>> default]

vim +302 arch/x86/include/asm/xen/page.h

20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  286 
 #define __pmd_ma(x)((pmd_t) { (x) } )
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  287 
 
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  288 
 #define pgd_val_ma(x)  ((x).pgd)
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  289 
 
eba3ff8b9 arch/x86/include/asm/xen/page.h Jeremy Fitzhardinge   2009-02-09  290 
 void xen_set_domain_pte(pte_t *ptep, pte_t pteval, unsigned domid);
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  291 
 
ce803e705 include/asm-x86/xen/page.h  Jeremy Fitzhardinge   2008-07-08  292 
 xmaddr_t arbitrary_virt_to_machine(void *address);
9976b39b5 arch/x86/include/asm/xen/page.h Jeremy Fitzhardinge   2009-02-27  293 
 unsigned long arbitrary_virt_to_mfn(void *vaddr);
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  294 
 void make_lowmem_page_readonly(void *vaddr);
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  295 
 void make_lowmem_page_readwrite(void *vaddr);
20e71f2ed include/asm-x86/xen/page.h  Isaku Yamahata2008-04-02  296 
 
3216dceb3 arch/x86/include/asm/xen/page.h Stefano Stabellini2013-02-19  297 
 #define xen_remap(cookie, size) ioremap((cookie), (size));
efaf30a33 arch/x86/include/asm/xen/page.h Konrad Rzeszutek Wilk 2014-01-06  298 
 #define xen_unmap(cookie) iounmap((cookie))
3216dceb3 arch/x86/include/asm/xen/page.h Stefano Stabellini2013-02-19  299 
 
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini2014-11-21  300 
 static inline bool xen_arch_need_swiotlb(struct device *dev,
291be10fd arch/x86/include/asm/xen/page.h Julien Grall  2015-09-09  301 
 phys_addr_t phys,
291be10fd arch/x86/include/asm/xen/page.h Julien Grall  2015-09-09 @302 
 dma_addr_t dev_addr)
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini2014-11-21  303 
 {
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini2014-11-21  304 
return false;
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini2014-11-21  305 
 }
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini2014-11-21  306 
 
8746515d7 arch/x86/include/asm/xen/page.h Stefano Stabellini2015-04-24  307 
 static inline unsigned long xen_get_swiotlb_free_pages(unsigned int order)
8746515d7 arch/x86/include/asm/xen/page.h Stefano Stabellini2015-04-24  308 
 {
8746515d7 arch/x86/include/asm/xen/page.h Stefano Stabellini2015-04-24  309 
return __get_free_pages(__GFP_NOWARN, order);
8746515d7 arch/x86/include/asm/xen/page.h Stefano Stabellini2015-04-24  310 
 }

:: The code at line 302 was first introduced by commit
:: 291be10fd7511101d44cf98166d049bd31bc7600 xen/swiotlb: Pass addresses 
rather than frame numbers to xen_arch_need_swiotlb

:: TO: Julien Grall 
:: CC: David Vrabel 

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


.config.gz
Description: application/gzip