lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201701291245.WjO4DrZd%fengguang.wu@intel.com>
Date:   Sun, 29 Jan 2017 12:54:49 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org, tipbuild@...or.com
Subject: [tip:WIP.x86/boot 11/55] arch/x86/include/asm/xen/page.h:302:7:
 warning: 'struct device' declared inside parameter list

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 Yamahata        2008-04-02  286  #define __pmd_ma(x)	((pmd_t) { (x) } )
20e71f2ed include/asm-x86/xen/page.h      Isaku Yamahata        2008-04-02  287  
20e71f2ed include/asm-x86/xen/page.h      Isaku Yamahata        2008-04-02  288  #define pgd_val_ma(x)	((x).pgd)
20e71f2ed include/asm-x86/xen/page.h      Isaku Yamahata        2008-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 Yamahata        2008-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 Yamahata        2008-04-02  294  void make_lowmem_page_readonly(void *vaddr);
20e71f2ed include/asm-x86/xen/page.h      Isaku Yamahata        2008-04-02  295  void make_lowmem_page_readwrite(void *vaddr);
20e71f2ed include/asm-x86/xen/page.h      Isaku Yamahata        2008-04-02  296  
3216dceb3 arch/x86/include/asm/xen/page.h Stefano Stabellini    2013-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 Stabellini    2013-02-19  299  
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini    2014-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 Stabellini    2014-11-21  303  {
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini    2014-11-21  304  	return false;
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini    2014-11-21  305  }
a4dba1308 arch/x86/include/asm/xen/page.h Stefano Stabellini    2014-11-21  306  
8746515d7 arch/x86/include/asm/xen/page.h Stefano Stabellini    2015-04-24  307  static inline unsigned long xen_get_swiotlb_free_pages(unsigned int order)
8746515d7 arch/x86/include/asm/xen/page.h Stefano Stabellini    2015-04-24  308  {
8746515d7 arch/x86/include/asm/xen/page.h Stefano Stabellini    2015-04-24  309  	return __get_free_pages(__GFP_NOWARN, order);
8746515d7 arch/x86/include/asm/xen/page.h Stefano Stabellini    2015-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 <julien.grall@...rix.com>
:::::: CC: David Vrabel <david.vrabel@...rix.com>

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

Download attachment ".config.gz" of type "application/gzip" (24507 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ