CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] TO: "Rafael J. Wysocki" <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git acpica-osl head: cfc2a23e4be42e58a453502acaf4a6330ef32f5f commit: cfc2a23e4be42e58a453502acaf4a6330ef32f5f [2/2] ACPI: OSL: Add support for deferred unmapping of ACPI memory :::::: branch date: 4 hours ago :::::: commit date: 4 hours ago config: x86_64-allyesconfig (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project c669a1ed6386d57a75a602b53266466dae1e1d84) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu git checkout cfc2a23e4be42e58a453502acaf4a6330ef32f5f # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> All errors (new ones prefixed by >>, old ones prefixed by <<): >> drivers/acpi/osl.c:533:13: error: implicit declaration of function >> 'acpi_os_drop_map_ref' [-Werror,-Wimplicit-function-declaration] refcount = acpi_os_drop_map_ref(map); ^ >> drivers/acpi/osl.c:537:3: error: implicit declaration of function >> 'acpi_os_map_cleanup' [-Werror,-Wimplicit-function-declaration] acpi_os_map_cleanup(map); ^ drivers/acpi/osl.c:537:3: note: did you mean 'acpi_os_map_memory'? drivers/acpi/osl.c:377:19: note: 'acpi_os_map_memory' declared here EXPORT_SYMBOL_GPL(acpi_os_map_memory); ^ include/linux/export.h:159:48: note: expanded from macro 'EXPORT_SYMBOL_GPL' #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl") ^ include/linux/export.h:155:50: note: expanded from macro '_EXPORT_SYMBOL' #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "") ^ include/linux/export.h:147:56: note: expanded from macro '__EXPORT_SYMBOL' #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns) ^ include/linux/export.h:98:21: note: expanded from macro '___EXPORT_SYMBOL' extern typeof(sym) sym; ^ 2 errors generated. # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=cfc2a23e4be42e58a453502acaf4a6330ef32f5f git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git git remote update pm git checkout cfc2a23e4be42e58a453502acaf4a6330ef32f5f vim +/acpi_os_drop_map_ref +533 drivers/acpi/osl.c 29718521237a1b Myron Stowe 2010-10-21 512 6f68c91c55ea35 Myron Stowe 2011-11-07 513 void acpi_os_unmap_generic_address(struct acpi_generic_address *gas) 29718521237a1b Myron Stowe 2010-10-21 514 { bc9ffce27962c0 Myron Stowe 2011-11-07 515 u64 addr; 7fe135dc058fae Rafael J. Wysocki 2011-02-08 516 struct acpi_ioremap *map; 833a426cc471b6 Francesco Ruggeri 2019-11-19 517 unsigned long refcount; 29718521237a1b Myron Stowe 2010-10-21 518 bc9ffce27962c0 Myron Stowe 2011-11-07 519 if (gas->space_id != ACPI_ADR_SPACE_SYSTEM_MEMORY) 29718521237a1b Myron Stowe 2010-10-21 520 return; 29718521237a1b Myron Stowe 2010-10-21 521 bc9ffce27962c0 Myron Stowe 2011-11-07 522 /* Handle possible alignment issues */ bc9ffce27962c0 Myron Stowe 2011-11-07 523 memcpy(&addr, &gas->address, sizeof(addr)); bc9ffce27962c0 Myron Stowe 2011-11-07 524 if (!addr || !gas->bit_width) 29718521237a1b Myron Stowe 2010-10-21 525 return; 29718521237a1b Myron Stowe 2010-10-21 526 7bbb890358b96c Rafael J. Wysocki 2011-02-08 527 mutex_lock(&acpi_ioremap_lock); bc9ffce27962c0 Myron Stowe 2011-11-07 528 map = acpi_map_lookup(addr, gas->bit_width / 8); 7fe135dc058fae Rafael J. Wysocki 2011-02-08 529 if (!map) { 7fe135dc058fae Rafael J. Wysocki 2011-02-08 530 mutex_unlock(&acpi_ioremap_lock); 7fe135dc058fae Rafael J. Wysocki 2011-02-08 531 return; 7fe135dc058fae Rafael J. Wysocki 2011-02-08 532 } 833a426cc471b6 Francesco Ruggeri 2019-11-19 @533 refcount = acpi_os_drop_map_ref(map); 7bbb890358b96c Rafael J. Wysocki 2011-02-08 534 mutex_unlock(&acpi_ioremap_lock); 29718521237a1b Myron Stowe 2010-10-21 535 833a426cc471b6 Francesco Ruggeri 2019-11-19 536 if (!refcount) b7c1fadd6c2eea Rafael J. Wysocki 2011-02-08 @537 acpi_os_map_cleanup(map); 29718521237a1b Myron Stowe 2010-10-21 538 } 6f68c91c55ea35 Myron Stowe 2011-11-07 539 EXPORT_SYMBOL(acpi_os_unmap_generic_address); 29718521237a1b Myron Stowe 2010-10-21 540 :::::: The code at line 533 was first introduced by commit :::::: 833a426cc471b6088011b3d67f1dc4e147614647 ACPI: OSL: only free map once in osl.c :::::: TO: Francesco Ruggeri <[email protected]> :::::: CC: Rafael J. Wysocki <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
