* [openeuler:OLK-6.6 1474/1474] kernel/livepatch/core.c:97:12: warning: no previous prototype for function 'arch_klp_init_func'
@ 2024-11-17 3:26 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-11-17 3:26 UTC (permalink / raw)
To: kernel, Zheng Yejian; +Cc: oe-kbuild-all
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 7c547c6bbe6b6a9cedf63d7cdadb2529404df633
commit: eabc33c6f2c91168537f10e9275b0921c9f78c45 [1474/1474] livepatch/ppc64: Implement livepatch without ftrace for ppc64be
config: arm64-randconfig-003-20241117 (https://download.01.org/0day-ci/archive/20241117/202411171106.SNb1bUTk-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241117/202411171106.SNb1bUTk-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/202411171106.SNb1bUTk-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/livepatch/core.c:97:12: warning: no previous prototype for function 'arch_klp_init_func' [-Wmissing-prototypes]
int __weak arch_klp_init_func(struct klp_object *obj, struct klp_func *func)
^
kernel/livepatch/core.c:97:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak arch_klp_init_func(struct klp_object *obj, struct klp_func *func)
^
static
kernel/livepatch/core.c:1756:12: warning: no previous prototype for function 'arch_klp_check_activeness_func' [-Wmissing-prototypes]
int __weak arch_klp_check_activeness_func(struct klp_func *func, int enable,
^
kernel/livepatch/core.c:1756:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak arch_klp_check_activeness_func(struct klp_func *func, int enable,
^
static
kernel/livepatch/core.c:2011:14: warning: no previous prototype for function 'arch_klp_mem_alloc' [-Wmissing-prototypes]
void __weak *arch_klp_mem_alloc(size_t size)
^
kernel/livepatch/core.c:2011:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __weak *arch_klp_mem_alloc(size_t size)
^
static
kernel/livepatch/core.c:2016:13: warning: no previous prototype for function 'arch_klp_mem_free' [-Wmissing-prototypes]
void __weak arch_klp_mem_free(void *mem)
^
kernel/livepatch/core.c:2016:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __weak arch_klp_mem_free(void *mem)
^
static
kernel/livepatch/core.c:2021:13: warning: no previous prototype for function 'arch_klp_code_modify_prepare' [-Wmissing-prototypes]
void __weak arch_klp_code_modify_prepare(void)
^
kernel/livepatch/core.c:2021:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __weak arch_klp_code_modify_prepare(void)
^
static
kernel/livepatch/core.c:2025:13: warning: no previous prototype for function 'arch_klp_code_modify_post_process' [-Wmissing-prototypes]
void __weak arch_klp_code_modify_post_process(void)
^
kernel/livepatch/core.c:2025:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __weak arch_klp_code_modify_post_process(void)
^
static
kernel/livepatch/core.c:2038:12: warning: no previous prototype for function 'arch_klp_check_breakpoint' [-Wmissing-prototypes]
int __weak arch_klp_check_breakpoint(struct arch_klp_data *arch_data, void *old_func)
^
kernel/livepatch/core.c:2038:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak arch_klp_check_breakpoint(struct arch_klp_data *arch_data, void *old_func)
^
static
kernel/livepatch/core.c:2052:13: warning: no previous prototype for function 'arch_klp_set_brk_func' [-Wmissing-prototypes]
void __weak arch_klp_set_brk_func(struct klp_func_node *func_node, void *new_func)
^
kernel/livepatch/core.c:2052:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __weak arch_klp_set_brk_func(struct klp_func_node *func_node, void *new_func)
^
static
8 warnings generated.
vim +/arch_klp_init_func +97 kernel/livepatch/core.c
96
> 97 int __weak arch_klp_init_func(struct klp_object *obj, struct klp_func *func)
98 {
99 return 0;
100 }
101 #endif /* CONFIG_LIVEPATCH_FTRACE */
102
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* [openeuler:OLK-6.6 1474/1474] kernel/livepatch/core.c:97:12: warning: no previous prototype for function 'arch_klp_init_func'
@ 2024-12-01 4:59 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-12-01 4:59 UTC (permalink / raw)
To: kernel, Zheng Yejian; +Cc: oe-kbuild-all
Hi Zheng,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: df4c334beecb4cf58e4e8d63b491aa5ac0a84f46
commit: eabc33c6f2c91168537f10e9275b0921c9f78c45 [1474/1474] livepatch/ppc64: Implement livepatch without ftrace for ppc64be
config: arm64-randconfig-003-20241117 (https://download.01.org/0day-ci/archive/20241201/202412011224.cLtYmSDE-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241201/202412011224.cLtYmSDE-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/202412011224.cLtYmSDE-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/livepatch/core.c:97:12: warning: no previous prototype for function 'arch_klp_init_func' [-Wmissing-prototypes]
int __weak arch_klp_init_func(struct klp_object *obj, struct klp_func *func)
^
kernel/livepatch/core.c:97:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak arch_klp_init_func(struct klp_object *obj, struct klp_func *func)
^
static
kernel/livepatch/core.c:1756:12: warning: no previous prototype for function 'arch_klp_check_activeness_func' [-Wmissing-prototypes]
int __weak arch_klp_check_activeness_func(struct klp_func *func, int enable,
^
kernel/livepatch/core.c:1756:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak arch_klp_check_activeness_func(struct klp_func *func, int enable,
^
static
kernel/livepatch/core.c:2011:14: warning: no previous prototype for function 'arch_klp_mem_alloc' [-Wmissing-prototypes]
void __weak *arch_klp_mem_alloc(size_t size)
^
kernel/livepatch/core.c:2011:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __weak *arch_klp_mem_alloc(size_t size)
^
static
kernel/livepatch/core.c:2016:13: warning: no previous prototype for function 'arch_klp_mem_free' [-Wmissing-prototypes]
void __weak arch_klp_mem_free(void *mem)
^
kernel/livepatch/core.c:2016:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __weak arch_klp_mem_free(void *mem)
^
static
kernel/livepatch/core.c:2021:13: warning: no previous prototype for function 'arch_klp_code_modify_prepare' [-Wmissing-prototypes]
void __weak arch_klp_code_modify_prepare(void)
^
kernel/livepatch/core.c:2021:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __weak arch_klp_code_modify_prepare(void)
^
static
kernel/livepatch/core.c:2025:13: warning: no previous prototype for function 'arch_klp_code_modify_post_process' [-Wmissing-prototypes]
void __weak arch_klp_code_modify_post_process(void)
^
kernel/livepatch/core.c:2025:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __weak arch_klp_code_modify_post_process(void)
^
static
kernel/livepatch/core.c:2038:12: warning: no previous prototype for function 'arch_klp_check_breakpoint' [-Wmissing-prototypes]
int __weak arch_klp_check_breakpoint(struct arch_klp_data *arch_data, void *old_func)
^
kernel/livepatch/core.c:2038:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak arch_klp_check_breakpoint(struct arch_klp_data *arch_data, void *old_func)
^
static
kernel/livepatch/core.c:2052:13: warning: no previous prototype for function 'arch_klp_set_brk_func' [-Wmissing-prototypes]
void __weak arch_klp_set_brk_func(struct klp_func_node *func_node, void *new_func)
^
kernel/livepatch/core.c:2052:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __weak arch_klp_set_brk_func(struct klp_func_node *func_node, void *new_func)
^
static
8 warnings generated.
vim +/arch_klp_init_func +97 kernel/livepatch/core.c
96
> 97 int __weak arch_klp_init_func(struct klp_object *obj, struct klp_func *func)
98 {
99 return 0;
100 }
101 #endif /* CONFIG_LIVEPATCH_FTRACE */
102
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-01 5:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-17 3:26 [openeuler:OLK-6.6 1474/1474] kernel/livepatch/core.c:97:12: warning: no previous prototype for function 'arch_klp_init_func' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2024-12-01 4:59 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.