From: kbuild test robot <lkp@intel.com>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: kbuild-all@01.org, linuxppc-dev@ozlabs.org, pmladek@suse.com,
jeyu@redhat.com, jkosina@suse.cz, linux-kernel@vger.kernel.org,
rostedt@goodmis.org, kamalesh@linux.vnet.ibm.com, duwe@lst.de,
live-patching@vger.kernel.org, mbenes@suse.cz
Subject: Re: [PATCH v2 2/8] powerpc/module: Only try to generate the ftrace_caller() stub once
Date: Tue, 1 Mar 2016 09:40:50 +0800 [thread overview]
Message-ID: <201603010955.ofALFSvz%fengguang.wu@intel.com> (raw)
In-Reply-To: <1456737989-8755-2-git-send-email-mpe@ellerman.id.au>
[-- Attachment #1: Type: text/plain, Size: 3384 bytes --]
Hi Michael,
[auto build test ERROR on powerpc/next]
[also build test ERROR on v4.5-rc6 next-20160229]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Michael-Ellerman/powerpc-Create-a-helper-for-getting-the-kernel-toc-value/20160229-172956
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-ppc6xx_defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc
Note: the linux-review/Michael-Ellerman/powerpc-Create-a-helper-for-getting-the-kernel-toc-value/20160229-172956 HEAD e702926c6f287a419f15b6b8451041fc7bd967f1 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
arch/powerpc/kernel/module_32.c: In function 'module_finalize_ftrace':
>> arch/powerpc/kernel/module_32.c:306:7: error: passing argument 3 of 'do_plt_call' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
sechdrs, module);
^
arch/powerpc/kernel/module_32.c:182:17: note: expected 'Elf32_Shdr * {aka struct elf32_shdr *}' but argument is of type 'const Elf32_Shdr * {aka const struct elf32_shdr *}'
static uint32_t do_plt_call(void *location,
^
>> arch/powerpc/kernel/module_32.c:307:7: error: 'mod' undeclared (first use in this function)
if (!mod->arch.tramp)
^
arch/powerpc/kernel/module_32.c:307:7: note: each undeclared identifier is reported only once for each function it appears in
cc1: all warnings being treated as errors
vim +306 arch/powerpc/kernel/module_32.c
19558b67 arch/powerpc/kernel/module_32.c Michael Ellerman 2016-02-29 300
7cc45e64 arch/powerpc/kernel/module_32.c Steven Rostedt 2008-11-15 301 #ifdef CONFIG_DYNAMIC_FTRACE
19558b67 arch/powerpc/kernel/module_32.c Michael Ellerman 2016-02-29 302 int module_finalize_ftrace(struct module *module, const Elf_Shdr *sechdrs)
19558b67 arch/powerpc/kernel/module_32.c Michael Ellerman 2016-02-29 303 {
19558b67 arch/powerpc/kernel/module_32.c Michael Ellerman 2016-02-29 304 module->arch.tramp = do_plt_call(module->core_layout.base,
7cc45e64 arch/powerpc/kernel/module_32.c Steven Rostedt 2008-11-15 305 (unsigned long)ftrace_caller,
7cc45e64 arch/powerpc/kernel/module_32.c Steven Rostedt 2008-11-15 @306 sechdrs, module);
19558b67 arch/powerpc/kernel/module_32.c Michael Ellerman 2016-02-29 @307 if (!mod->arch.tramp)
19558b67 arch/powerpc/kernel/module_32.c Michael Ellerman 2016-02-29 308 return -ENOENT;
19558b67 arch/powerpc/kernel/module_32.c Michael Ellerman 2016-02-29 309
^1da177e arch/ppc/kernel/module.c Linus Torvalds 2005-04-16 310 return 0;
:::::: The code at line 306 was first introduced by commit
:::::: 7cc45e64323c8a1042f56e6a8d1dc982f98d52a8 powerpc/ppc32: ftrace, dynamic ftrace to handle modules
:::::: TO: Steven Rostedt <srostedt@redhat.com>
:::::: CC: Steven Rostedt <srostedt@redhat.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27769 bytes --]
next prev parent reply other threads:[~2016-03-01 1:41 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-29 9:26 [PATCH v2 1/8] powerpc: Create a helper for getting the kernel toc value Michael Ellerman
2016-02-29 9:26 ` [PATCH v2 2/8] powerpc/module: Only try to generate the ftrace_caller() stub once Michael Ellerman
2016-03-01 1:40 ` kbuild test robot [this message]
2016-03-01 10:07 ` Kamalesh Babulal
2016-03-01 12:00 ` Torsten Duwe
2016-03-02 1:52 ` Michael Ellerman
2016-02-29 9:26 ` [PATCH v2 3/8] powerpc/module: Mark module stubs with a magic value Michael Ellerman
2016-02-29 9:26 ` [PATCH v2 4/8] powerpc/module: Create a special stub for ftrace_caller() Michael Ellerman
2016-02-29 9:26 ` [PATCH v2 5/8] powerpc/ftrace: Use generic ftrace_modify_all_code() Michael Ellerman
2016-03-01 10:08 ` Kamalesh Babulal
2016-02-29 9:26 ` [PATCH v2 6/8] powerpc/ftrace: Use $(CC_FLAGS_FTRACE) when disabling ftrace Michael Ellerman
2016-02-29 9:26 ` [PATCH v2 7/8] powerpc/ftrace: Add support for -mprofile-kernel ftrace ABI Michael Ellerman
2016-02-29 9:26 ` [PATCH v2 8/8] powerpc/ftrace: Add Kconfig & Make glue for mprofile-kernel Michael Ellerman
2016-03-01 9:56 ` [PATCH v2 1/8] powerpc: Create a helper for getting the kernel toc value Kamalesh Babulal
2016-03-01 11:58 ` Torsten Duwe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201603010955.ofALFSvz%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=duwe@lst.de \
--cc=jeyu@redhat.com \
--cc=jkosina@suse.cz \
--cc=kamalesh@linux.vnet.ibm.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=live-patching@vger.kernel.org \
--cc=mbenes@suse.cz \
--cc=mpe@ellerman.id.au \
--cc=pmladek@suse.com \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).