[linux-next:master 4347/10451] arch/loongarch/include/asm/uprobes.h:12:33: error: initializer element is not constant

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407041440.PhFCml1P-lkp@xxxxxxxxx/

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@xxxxxxxxxxx>
:::::: CC: Huacai Chen <chenhuacai@xxxxxxxxxxx>

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux