loongson-community / linux-stable

Linux kernel source tree for Loongson
Other
67 stars 21 forks source link

[Kernel] unused function 'uasm_l_second_part', 'uasm_l_r3000_write_probe_fail' #10

Open xiangzhai opened 6 years ago

xiangzhai commented 6 years ago

Hi Loonger,

$ make CC=/home/zhaixiang/project/xiangzhai/llvm/build/bin/clang
clang-7: warning: argument unused during compilation: '-Wa,-msoft-float' [-Wunused-command-line-argument]
clang-7: warning: argument unused during compilation: '-Wa,--trap' [-Wunused-command-line-argument]
clang-7: warning: argument unused during compilation: '-Wa,-mno-fix-loongson3-llsc' [-Wunused-command-line-argument]
clang-7: warning: argument unused during compilation: '-mno-branch-likely' [-Wunused-command-line-argument]
  ...
  CC      arch/mips/mm/tlbex.o
arch/mips/mm/tlbex.c:184:1: error: unused function 'uasm_l_second_part' [-Werror,-Wunused-function]
UASM_L_LA(_second_part)
^
./arch/mips/include/asm/uasm.h:207:28: note: expanded from macro 'UASM_L_LA'
static inline void ISAFUNC(uasm_l##lb)(struct uasm_label **lab, u32 *addr) \
                           ^
<scratch space>:167:1: note: expanded from here
uasm_l_second_part
^
arch/mips/mm/tlbex.c:196:1: error: unused function 'uasm_l_r3000_write_probe_fail'
      [-Werror,-Wunused-function]
UASM_L_LA(_r3000_write_probe_fail)
^
./arch/mips/include/asm/uasm.h:207:28: note: expanded from macro 'UASM_L_LA'
static inline void ISAFUNC(uasm_l##lb)(struct uasm_label **lab, u32 *addr) \
                           ^
<scratch space>:189:1: note: expanded from here
uasm_l_r3000_write_probe_fail
^
2 errors generated.
scripts/Makefile.build:296: recipe for target 'arch/mips/mm/tlbex.o' failed
make[2]: *** [arch/mips/mm/tlbex.o] Error 1
scripts/Makefile.build:547: recipe for target 'arch/mips/mm' failed
make[1]: *** [arch/mips/mm] Error 2

Regards, Leslie Zhai