Re: [PATCH v4 2/4] kernel hacking: new config NO_AUTO_INLINE to disable compiler auto-inline optimizations

From: kbuild test robot
Date: Wed May 09 2018 - 16:05:07 EST


Hi Changbin,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.17-rc4 next-20180509]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/changbin-du-intel-com/kernel-hacking-GCC-optimization-for-better-debug-experience-Og/20180509-213955
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All warnings (new ones prefixed by >>):

>> WARNING: vmlinux.o(.text.unlikely+0xce5): Section mismatch in reference from the function init_xstate_size() to the function .init.text:get_xsave_size()
The function init_xstate_size() references
the function __init get_xsave_size().
This is often because init_xstate_size lacks a __init
annotation or the annotation of get_xsave_size is wrong.
--
>> WARNING: vmlinux.o(.text.unlikely+0xcf7): Section mismatch in reference from the function init_xstate_size() to the function .init.text:get_xsaves_size()
The function init_xstate_size() references
the function __init get_xsaves_size().
This is often because init_xstate_size lacks a __init
annotation or the annotation of get_xsaves_size is wrong.
--
>> WARNING: vmlinux.o(.text.unlikely+0x22a6): Section mismatch in reference from the function percpu_setup_debug_store() to the function .init.text:cea_map_percpu_pages()
The function percpu_setup_debug_store() references
the function __init cea_map_percpu_pages().
This is often because percpu_setup_debug_store lacks a __init
annotation or the annotation of cea_map_percpu_pages is wrong.
--
>> WARNING: vmlinux.o(.text.unlikely+0x2564): Section mismatch in reference from the function can_free_region() to the function .init.text:e820__mapped_all()
The function can_free_region() references
the function __init e820__mapped_all().
This is often because can_free_region lacks a __init
annotation or the annotation of e820__mapped_all is wrong.

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

Attachment: .config.gz
Description: application/gzip