From: kernel test robot <lkp@intel.com>
To: David Hildenbrand <david@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [davidhildenbrand:uprobes_cow 2/3] arch/arm/probes/uprobes/core.c:29:5: error: conflicting types for 'set_swbp'
Date: Sat, 27 Apr 2024 20:23:02 +0800 [thread overview]
Message-ID: <202404272026.UsFT9Wl5-lkp@intel.com> (raw)
tree: https://github.com/davidhildenbrand/linux uprobes_cow
head: 42ab6aaef9cde61b0c00b5aafe291bda60e362e7
commit: 204060681d67b845d95d19d8964b62381a46d6a9 [2/3] kernel/events/uprobes: pass VMA to set_swbp(), set_orig_insn() and uprobe_write_opcode()
config: arm-defconfig (https://download.01.org/0day-ci/archive/20240427/202404272026.UsFT9Wl5-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240427/202404272026.UsFT9Wl5-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/202404272026.UsFT9Wl5-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/arm/probes/uprobes/core.c:29:50: warning: declaration of 'struct vma_area_struct' will not be visible outside of this function [-Wvisibility]
int set_swbp(struct arch_uprobe *auprobe, struct vma_area_struct *vma,
^
>> arch/arm/probes/uprobes/core.c:29:5: error: conflicting types for 'set_swbp'
int set_swbp(struct arch_uprobe *auprobe, struct vma_area_struct *vma,
^
include/linux/uprobes.h:106:12: note: previous declaration is here
extern int set_swbp(struct arch_uprobe *aup, struct vm_area_struct *vma, unsigned long vaddr);
^
>> arch/arm/probes/uprobes/core.c:32:38: error: incompatible pointer types passing 'struct vma_area_struct *' to parameter of type 'struct vm_area_struct *' [-Werror,-Wincompatible-pointer-types]
return uprobe_write_opcode(auprobe, vma, vaddr,
^~~
include/linux/uprobes.h:112:84: note: passing argument to parameter 'vma' here
extern int uprobe_write_opcode(struct arch_uprobe *auprobe, struct vm_area_struct *vma, unsigned long vaddr, uprobe_opcode_t);
^
1 warning and 2 errors generated.
vim +/set_swbp +29 arch/arm/probes/uprobes/core.c
28
> 29 int set_swbp(struct arch_uprobe *auprobe, struct vma_area_struct *vma,
30 unsigned long vaddr)
31 {
> 32 return uprobe_write_opcode(auprobe, vma, vaddr,
33 __opcode_to_mem_arm(auprobe->bpinsn));
34 }
35
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-04-27 12:23 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=202404272026.UsFT9Wl5-lkp@intel.com \
--to=lkp@intel.com \
--cc=david@redhat.com \
--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