All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH 03/14] arm: kprobes: Use generic kretprobe trampoline handler
Date: Thu, 27 Aug 2020 06:59:27 +0800	[thread overview]
Message-ID: <202008270652.mLThu769%lkp@intel.com> (raw)
In-Reply-To: <159844960343.510284.15315372011917043979.stgit@devnote2>

[-- Attachment #1: Type: text/plain, Size: 6385 bytes --]

Hi Masami,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on next-20200826]
[also build test WARNING on v5.9-rc2]
[cannot apply to tip/x86/core arm/for-next arm64/for-next/core ia64/next hp-parisc/for-next powerpc/next s390/features linus/master arc/for-next sparc-next/master v5.9-rc2 v5.9-rc1 v5.8]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Masami-Hiramatsu/kprobes-Unify-kretprobe-trampoline-handlers/20200826-215305
base:    f37be72473a007d5d66c52f6cdf43fc8c0961f95
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   arch/arm/probes/kprobes/core.c:234:16: warning: no previous prototype for 'kprobe_handler' [-Wmissing-prototypes]
     234 | void __kprobes kprobe_handler(struct pt_regs *regs)
         |                ^~~~~~~~~~~~~~
   arch/arm/probes/kprobes/core.c:397:24: warning: no previous prototype for 'kretprobe_trampoline' [-Wmissing-prototypes]
     397 | void __naked __kprobes kretprobe_trampoline(void)
         |                        ^~~~~~~~~~~~~~~~~~~~
   In file included from arch/arm/include/asm/ptrace.h:10,
                    from arch/arm/include/asm/irqflags.h:7,
                    from include/linux/irqflags.h:16,
                    from arch/arm/include/asm/bitops.h:28,
                    from include/linux/bitops.h:29,
                    from include/linux/kernel.h:12,
                    from arch/arm/probes/kprobes/core.c:14:
   arch/arm/probes/kprobes/core.c: In function 'trampoline_handler':
>> arch/arm/include/uapi/asm/ptrace.h:140:22: warning: passing argument 3 of 'kretprobe_trampoline_handler' makes pointer from integer without a cast [-Wint-conversion]
     140 | #define ARM_fp  uregs[11]
   arch/arm/probes/kprobes/core.c:418:11: note: in expansion of macro 'ARM_fp'
     418 |     regs->ARM_fp);
         |           ^~~~~~
   In file included from arch/arm/probes/kprobes/core.c:15:
   include/linux/kprobes.h:207:11: note: expected 'void *' but argument is of type 'long unsigned int'
     207 |     void *frame_pointer)
         |     ~~~~~~^~~~~~~~~~~~~
   arch/arm/probes/kprobes/core.c: In function 'arch_prepare_kretprobe':
>> arch/arm/probes/kprobes/core.c:425:9: warning: assignment to 'void *' from 'long unsigned int' makes pointer from integer without a cast [-Wint-conversion]
     425 |  ri->fp = regs->ARM_fp;
         |         ^
   arch/arm/probes/kprobes/core.c: In function 'arch_init_kprobes':
   arch/arm/probes/kprobes/core.c:466:12: warning: old-style function definition [-Wold-style-definition]
     466 | int __init arch_init_kprobes()
         |            ^~~~~~~~~~~~~~~~~
   In file included from include/linux/energy_model.h:10,
                    from include/linux/device.h:16,
                    from include/linux/node.h:18,
                    from include/linux/cpu.h:17,
                    from include/linux/stop_machine.h:5,
                    from arch/arm/probes/kprobes/core.c:18:
   At top level:
   include/linux/sched/topology.h:40:3: warning: 'sd_flag_debug' defined but not used [-Wunused-const-variable=]
      40 | } sd_flag_debug[] = {
         |   ^~~~~~~~~~~~~
   In file included from include/linux/energy_model.h:10,
                    from include/linux/device.h:16,
                    from include/linux/node.h:18,
                    from include/linux/cpu.h:17,
                    from include/linux/stop_machine.h:5,
                    from arch/arm/probes/kprobes/core.c:18:
   include/linux/sched/topology.h:30:27: warning: 'SD_DEGENERATE_GROUPS_MASK' defined but not used [-Wunused-const-variable=]
      30 | static const unsigned int SD_DEGENERATE_GROUPS_MASK =
         |                           ^~~~~~~~~~~~~~~~~~~~~~~~~

# https://github.com/0day-ci/linux/commit/cea98296df6a68966c52388ca3b412fbc6e99b4b
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Masami-Hiramatsu/kprobes-Unify-kretprobe-trampoline-handlers/20200826-215305
git checkout cea98296df6a68966c52388ca3b412fbc6e99b4b
vim +/kretprobe_trampoline_handler +140 arch/arm/include/uapi/asm/ptrace.h

cb8db5d4578ac9 David Howells 2012-10-12  134  
cb8db5d4578ac9 David Howells 2012-10-12  135  #define ARM_cpsr	uregs[16]
cb8db5d4578ac9 David Howells 2012-10-12  136  #define ARM_pc		uregs[15]
cb8db5d4578ac9 David Howells 2012-10-12  137  #define ARM_lr		uregs[14]
cb8db5d4578ac9 David Howells 2012-10-12  138  #define ARM_sp		uregs[13]
cb8db5d4578ac9 David Howells 2012-10-12  139  #define ARM_ip		uregs[12]
cb8db5d4578ac9 David Howells 2012-10-12 @140  #define ARM_fp		uregs[11]
cb8db5d4578ac9 David Howells 2012-10-12  141  #define ARM_r10		uregs[10]
cb8db5d4578ac9 David Howells 2012-10-12  142  #define ARM_r9		uregs[9]
cb8db5d4578ac9 David Howells 2012-10-12  143  #define ARM_r8		uregs[8]
cb8db5d4578ac9 David Howells 2012-10-12  144  #define ARM_r7		uregs[7]
cb8db5d4578ac9 David Howells 2012-10-12  145  #define ARM_r6		uregs[6]
cb8db5d4578ac9 David Howells 2012-10-12  146  #define ARM_r5		uregs[5]
cb8db5d4578ac9 David Howells 2012-10-12  147  #define ARM_r4		uregs[4]
cb8db5d4578ac9 David Howells 2012-10-12  148  #define ARM_r3		uregs[3]
cb8db5d4578ac9 David Howells 2012-10-12  149  #define ARM_r2		uregs[2]
cb8db5d4578ac9 David Howells 2012-10-12  150  #define ARM_r1		uregs[1]
cb8db5d4578ac9 David Howells 2012-10-12  151  #define ARM_r0		uregs[0]
cb8db5d4578ac9 David Howells 2012-10-12  152  #define ARM_ORIG_r0	uregs[17]
cb8db5d4578ac9 David Howells 2012-10-12  153  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 76456 bytes --]

  parent reply	other threads:[~2020-08-26 22:59 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-26 13:46 [RFC PATCH 00/14] kprobes: Unify kretprobe trampoline handlers Masami Hiramatsu
2020-08-26 13:46 ` [RFC PATCH 01/14] kprobes: Add generic kretprobe trampoline handler Masami Hiramatsu
2020-08-26 13:46 ` [RFC PATCH 02/14] x86/kprobes: Use " Masami Hiramatsu
2020-08-26 13:46 ` [RFC PATCH 03/14] arm: kprobes: " Masami Hiramatsu
2020-08-26 14:08   ` peterz
2020-08-26 14:10     ` peterz
2020-08-26 15:04       ` Masami Hiramatsu
2020-08-26 15:26         ` peterz
2020-08-26 22:59   ` kernel test robot [this message]
2020-08-26 13:46 ` [RFC PATCH 04/14] arm64: " Masami Hiramatsu
2020-08-26 13:47 ` [RFC PATCH 05/14] arc: " Masami Hiramatsu
2020-08-26 13:47 ` [RFC PATCH 06/14] csky: " Masami Hiramatsu
2020-08-26 13:47 ` [RFC PATCH 07/14] ia64: " Masami Hiramatsu
2020-08-26 13:47 ` [RFC PATCH 08/14] mips: " Masami Hiramatsu
2020-08-26 13:47 ` [RFC PATCH 09/14] parisc: " Masami Hiramatsu
2020-08-26 13:47 ` [RFC PATCH 10/14] powerpc: " Masami Hiramatsu
2020-08-26 19:25   ` kernel test robot
2020-08-26 20:34   ` kernel test robot
2020-08-26 13:48 ` [RFC PATCH 11/14] s390: " Masami Hiramatsu
2020-08-26 13:48 ` [RFC PATCH 12/14] sh: " Masami Hiramatsu
2020-08-26 13:48 ` [RFC PATCH 13/14] sparc: " Masami Hiramatsu
2020-08-26 13:48 ` [RFC PATCH 14/14] kprobes: Remove NMI context check Masami Hiramatsu

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=202008270652.mLThu769%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.