linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 4347/10451] arch/loongarch/include/asm/uprobes.h:12:33: error: initializer element is not constant
@ 2024-07-04  6:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-04  6:31 UTC (permalink / raw)
  To: Jiri Olsa
  Cc: oe-kbuild-all, Linux Memory Management List,
	Masami Hiramatsu (Google),
	Oleg Nesterov

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   0b58e108042b0ed28a71cd7edf5175999955b233
commit: ff474a78cef5cb5f32be52fe25b78441327a2e7c [4347/10451] uprobe: Add uretprobe syscall to speed up return probe
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20240704/202407041440.PhFCml1P-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240704/202407041440.PhFCml1P-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/202407041440.PhFCml1P-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/uprobes.h:49,
                    from include/linux/mm_types.h:16,
                    from include/linux/mmzone.h:22,
                    from include/linux/gfp.h:7,
                    from include/linux/xarray.h:16,
                    from include/linux/list_lru.h:14,
                    from include/linux/fs.h:13,
                    from include/linux/highmem.h:5,
                    from kernel/events/uprobes.c:13:
   kernel/events/uprobes.c: In function 'arch_uprobe_trampoline':
>> arch/loongarch/include/asm/uprobes.h:12:33: error: initializer element is not constant
      12 | #define UPROBE_SWBP_INSN        larch_insn_gen_break(BRK_UPROBE_BP)
         |                                 ^~~~~~~~~~~~~~~~~~~~
   kernel/events/uprobes.c:1479:39: note: in expansion of macro 'UPROBE_SWBP_INSN'
    1479 |         static uprobe_opcode_t insn = UPROBE_SWBP_INSN;
         |                                       ^~~~~~~~~~~~~~~~


vim +12 arch/loongarch/include/asm/uprobes.h

19bc6cb6409289 Tiezhu Yang 2023-06-29  11  
19bc6cb6409289 Tiezhu Yang 2023-06-29 @12  #define UPROBE_SWBP_INSN	larch_insn_gen_break(BRK_UPROBE_BP)
19bc6cb6409289 Tiezhu Yang 2023-06-29  13  #define UPROBE_SWBP_INSN_SIZE	LOONGARCH_INSN_SIZE
19bc6cb6409289 Tiezhu Yang 2023-06-29  14  

:::::: The code at line 12 was first introduced by commit
:::::: 19bc6cb6409289106d38f9ad1b2ecf73980df6b5 LoongArch: Add uprobes support

:::::: TO: Tiezhu Yang <yangtiezhu@loongson.cn>
:::::: CC: Huacai Chen <chenhuacai@loongson.cn>

-- 
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-07-04  6:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-04  6:31 [linux-next:master 4347/10451] arch/loongarch/include/asm/uprobes.h:12:33: error: initializer element is not constant kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox