tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   2868b2513aa732a99ea4a0a6bf10dc93c1f3dac2
commit: 81b3e090fa1f237d49c8feb2fa4afe2aabd3a4ff x86/boot/e820: Use bool in 
query APIs
date:   3 months ago
reproduce:
        # apt-get install sparse
        git checkout 81b3e090fa1f237d49c8feb2fa4afe2aabd3a4ff
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> arch/x86/pci/mmconfig-shared.c:528:43: sparse: incorrect type in argument 1 
>> (incompatible argument 3 (different signedness))
   arch/x86/pci/mmconfig-shared.c:528:43:    expected bool ( *[usertype] 
is_reserved )( ... )
   arch/x86/pci/mmconfig-shared.c:528:43:    got bool ( extern [toplevel] 
*<noident> )( ... )

vim +528 arch/x86/pci/mmconfig-shared.c

a02ce953 arch/x86/pci/mmconfig-shared.c  Feng Tang      2010-05-05  512         
                       "ACPI motherboard resources\n",
a02ce953 arch/x86/pci/mmconfig-shared.c  Feng Tang      2010-05-05  513         
                       &cfg->res);
a02ce953 arch/x86/pci/mmconfig-shared.c  Feng Tang      2010-05-05  514         
}
a83fe32f arch/x86/pci/mmconfig-shared.c  Yinghai Lu     2008-07-18  515  
95c5e92f arch/x86/pci/mmconfig-shared.c  Jiang Liu      2012-06-22  516         
/*
3bce64f0 arch/x86/pci/mmconfig-shared.c  Ingo Molnar    2017-01-28  517         
 * e820__mapped_all() is marked as __init.
95c5e92f arch/x86/pci/mmconfig-shared.c  Jiang Liu      2012-06-22  518         
 * All entries from ACPI MCFG table have been checked at boot time.
95c5e92f arch/x86/pci/mmconfig-shared.c  Jiang Liu      2012-06-22  519         
 * For MCFG information constructed from hotpluggable host bridge's
95c5e92f arch/x86/pci/mmconfig-shared.c  Jiang Liu      2012-06-22  520         
 * _CBA method, just assume it's reserved.
95c5e92f arch/x86/pci/mmconfig-shared.c  Jiang Liu      2012-06-22  521         
 */
95c5e92f arch/x86/pci/mmconfig-shared.c  Jiang Liu      2012-06-22  522         
if (pci_mmcfg_running_state)
95c5e92f arch/x86/pci/mmconfig-shared.c  Jiang Liu      2012-06-22  523         
        return 1;
95c5e92f arch/x86/pci/mmconfig-shared.c  Jiang Liu      2012-06-22  524  
7752d5cf arch/x86/pci/mmconfig-shared.c  Robert Hancock 2008-02-15  525         
/* Don't try to do this check unless configuration
bb63b421 arch/x86/pci/mmconfig-shared.c  Yinghai Lu     2008-02-28  526         
   type 1 is available. how about type 2 ?*/
a83fe32f arch/x86/pci/mmconfig-shared.c  Yinghai Lu     2008-07-18  527         
if (raw_pci_ops)
3bce64f0 arch/x86/pci/mmconfig-shared.c  Ingo Molnar    2017-01-28 @528         
        return is_mmconf_reserved(e820__mapped_all, cfg, dev, 1);
05c58b8a arch/x86/pci/mmconfig-shared.c  Yinghai Lu     2008-02-15  529  
2a76c450 arch/x86/pci/mmconfig-shared.c  Jiang Liu      2012-06-22  530         
return 0;
7752d5cf arch/x86/pci/mmconfig-shared.c  Robert Hancock 2008-02-15  531  }
7752d5cf arch/x86/pci/mmconfig-shared.c  Robert Hancock 2008-02-15  532  
2a76c450 arch/x86/pci/mmconfig-shared.c  Jiang Liu      2012-06-22  533  static 
void __init pci_mmcfg_reject_broken(int early)
2a76c450 arch/x86/pci/mmconfig-shared.c  Jiang Liu      2012-06-22  534  {
2a76c450 arch/x86/pci/mmconfig-shared.c  Jiang Liu      2012-06-22  535         
struct pci_mmcfg_region *cfg;
26054ed0 arch/i386/pci/mmconfig-shared.c OGAWA Hirofumi 2007-02-13  536  

:::::: The code at line 528 was first introduced by commit
:::::: 3bce64f019a801f526cc38523c77ffda4e846155 x86/boot/e820: Rename 
e820_any_mapped()/e820_all_mapped() to e820__mapped_any()/e820__mapped_all()

:::::: TO: Ingo Molnar <mi...@kernel.org>
:::::: CC: Ingo Molnar <mi...@kernel.org>

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

Reply via email to