All of lore.kernel.org
 help / color / mirror / Atom feed
* [davidhildenbrand:uprobes_cow 2/3] arch/arm/probes/uprobes/core.c:29:50: warning: declaration of 'struct vma_area_struct' will not be visible outside of this function
@ 2024-04-27 11:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-27 11:08 UTC (permalink / raw)
  To: David Hildenbrand; +Cc: llvm, oe-kbuild-all

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/202404271956.wOymyIUX-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/202404271956.wOymyIUX-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/202404271956.wOymyIUX-lkp@intel.com/

All warnings (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 +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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-27 11:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-27 11:08 [davidhildenbrand:uprobes_cow 2/3] arch/arm/probes/uprobes/core.c:29:50: warning: declaration of 'struct vma_area_struct' will not be visible outside of this function kernel test robot

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.