Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiri Olsa <jolsa@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [jolsa-perf:bpf/optimized_usdt 3/12] arch/arm/probes/uprobes/core.c:33:42: error: too few arguments to function call, expected 5, have 4
Date: Thu, 12 Dec 2024 05:55:32 +0800	[thread overview]
Message-ID: <202412120551.c2u7Wttu-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/optimized_usdt
head:   71a73540cd512eab6cdd0aad1711b3a76e86e76d
commit: b67b8b3af4cc6776e68fe57b357e5ba4015747d8 [3/12] uprobes: Add nbytes argument to uprobe_write_opcode
config: arm-randconfig-003-20241211 (https://download.01.org/0day-ci/archive/20241212/202412120551.c2u7Wttu-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241212/202412120551.c2u7Wttu-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412120551.c2u7Wttu-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/arm/probes/uprobes/core.c:9:
   In file included from include/linux/highmem.h:8:
   In file included from include/linux/cacheflush.h:5:
   In file included from arch/arm/include/asm/cacheflush.h:10:
   In file included from include/linux/mm.h:2223:
   include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     518 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> arch/arm/probes/uprobes/core.c:33:42: error: too few arguments to function call, expected 5, have 4
      32 |         return uprobe_write_opcode(auprobe, mm, vaddr,
         |                ~~~~~~~~~~~~~~~~~~~
      33 |                    __opcode_to_mem_arm(auprobe->bpinsn));
         |                                                        ^
   include/linux/uprobes.h:184:12: note: 'uprobe_write_opcode' declared here
     184 | extern int uprobe_write_opcode(struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long vaddr,
         |            ^                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     185 |                                uprobe_opcode_t *insn, int nbytes);
         |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.


vim +33 arch/arm/probes/uprobes/core.c

c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  @9  #include <linux/highmem.h>
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  10  #include <linux/sched.h>
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  11  #include <linux/uprobes.h>
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  12  #include <linux/notifier.h>
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  13  
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  14  #include <asm/opcodes.h>
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  15  #include <asm/traps.h>
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  16  
fca08f326ae0423 arch/arm/probes/uprobes/core.c Wang Nan      2015-01-09  17  #include "../decode.h"
fca08f326ae0423 arch/arm/probes/uprobes/core.c Wang Nan      2015-01-09  18  #include "../decode-arm.h"
fca08f326ae0423 arch/arm/probes/uprobes/core.c Wang Nan      2015-01-09  19  #include "core.h"
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  20  
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  21  #define UPROBE_TRAP_NR	UINT_MAX
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  22  
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  23  bool is_swbp_insn(uprobe_opcode_t *insn)
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  24  {
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  25  	return (__mem_to_opcode_arm(*insn) & 0x0fffffff) ==
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  26  		(UPROBE_SWBP_ARM_INSN & 0x0fffffff);
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  27  }
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  28  
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  29  int set_swbp(struct arch_uprobe *auprobe, struct mm_struct *mm,
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  30  	     unsigned long vaddr)
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  31  {
6d43743e9079ac0 arch/arm/probes/uprobes/core.c Ravi Bangoria 2018-08-09  32  	return uprobe_write_opcode(auprobe, mm, vaddr,
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07 @33  		   __opcode_to_mem_arm(auprobe->bpinsn));
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  34  }
c7edc9e326d53ca arch/arm/kernel/uprobes.c      David A. Long 2014-03-07  35  

:::::: The code at line 33 was first introduced by commit
:::::: c7edc9e326d53ca5ef9bed82de0740c6b107d55b ARM: add uprobes support

:::::: TO: David A. Long <dave.long@linaro.org>
:::::: CC: David A. Long <dave.long@linaro.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-12-11 21:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202412120551.c2u7Wttu-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jolsa@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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