tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: a2b4d661a5ca59dd7cf972c1cce8b98422102ab7
commit: d5ddd7080c7442f22d6b92d6fed0dacc606013d1 [2441/2441] kasan: sanitize objects when metadata doesn't fit
config: arm64-randconfig-003-20241118 (https://download.01.org/0day-ci/archive/20241201/202412011647.JJxaTRfd-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241201/202412011647.JJxaTRfd-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412011647.JJxaTRfd-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from mm/kasan/common.c:40:
mm/kasan/kasan.h: In function 'quarantine_put':
mm/kasan/kasan.h:198:84: warning: 'return' with a value, in function returning void [-Wreturn-mismatch]
198 | static inline void quarantine_put(struct kmem_cache *cache, void *object) { return false; }
| ^~~~~
mm/kasan/kasan.h:198:20: note: declared here
198 | static inline void quarantine_put(struct kmem_cache *cache, void *object) { return false; }
| ^~~~~~~~~~~~~~
mm/kasan/common.c: In function '__kasan_slab_free':
>> mm/kasan/common.c:471:16: error: void value not ignored as it ought to be
471 | return quarantine_put(cache, object);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mm/kasan/common.c:472:1: warning: control reaches end of non-void function [-Wreturn-type]
472 | }
| ^
vim +471 mm/kasan/common.c
431
432 static bool __kasan_slab_free(struct kmem_cache *cache, void *object,
433 unsigned long ip, bool quarantine)
434 {
435 s8 shadow_byte;
436 u8 tag;
437 void *tagged_object;
438 unsigned long rounded_up_size;
439
440 tag = get_tag(object);
441 tagged_object = object;
442 object = reset_tag(object);
443
444 if (is_kfence_address(object))
445 return false;
446
447 if (unlikely(nearest_obj(cache, virt_to_head_page(object), object) !=
448 object)) {
449 kasan_report_invalid_free(tagged_object, ip);
450 return true;
451 }
452
453 /* RCU slabs could be legally used after free within the RCU period */
454 if (unlikely(cache->flags & SLAB_TYPESAFE_BY_RCU))
455 return false;
456
457 shadow_byte = READ_ONCE(*(s8 *)kasan_mem_to_shadow(object));
458 if (shadow_invalid(tag, shadow_byte)) {
459 kasan_report_invalid_free(tagged_object, ip);
460 return true;
461 }
462
463 rounded_up_size = round_up(cache->object_size, KASAN_SHADOW_SCALE_SIZE);
464 kasan_poison_shadow(object, rounded_up_size, KASAN_KMALLOC_FREE);
465
466 if ((IS_ENABLED(CONFIG_KASAN_GENERIC) && !quarantine))
467 return false;
468
469 kasan_set_free_info(cache, object, tag);
470
> 471 return quarantine_put(cache, object);
472 }
473
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Joel,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: b5504db0db8375a77340b5bb54c17cfb75d3c754
commit: c3bc8fd637a9623f5c507bd18f9677effbddf584 [1298/1298] tracing: Centralize preemptirq tracepoints and unify their usage
config: x86_64-buildonly-randconfig-006-20241118 (https://download.01.org/0day-ci/archive/20241201/202412011608.l2EWWbUS-lkp@…)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241201/202412011608.l2EWWbUS-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412011608.l2EWWbUS-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/hid/intel-ish-hid/ipc/pci-ish.c: In function 'ish_resume_handler':
drivers/hid/intel-ish-hid/ipc/pci-ish.c:227:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
227 | int ret;
| ^~~
In file included from drivers/hid/intel-ish-hid/ipc/pci-ish.c:16:
drivers/hid/intel-ish-hid/ipc/pci-ish.c: At top level:
include/linux/module.h:138:14: warning: 'cleanup_module' specifies less restrictive attribute than its target 'ish_driver_exit': 'cold' [-Wmissing-attributes]
138 | void cleanup_module(void) __attribute__((alias(#exitfn)));
| ^~~~~~~~~~~~~~
include/linux/device.h:1558:1: note: in expansion of macro 'module_exit'
1558 | module_exit(__driver##_exit);
| ^~~~~~~~~~~
include/linux/pci.h:1279:9: note: in expansion of macro 'module_driver'
1279 | module_driver(__pci_driver, pci_register_driver, pci_unregister_driver)
| ^~~~~~~~~~~~~
drivers/hid/intel-ish-hid/ipc/pci-ish.c:323:1: note: in expansion of macro 'module_pci_driver'
323 | module_pci_driver(ish_driver);
| ^~~~~~~~~~~~~~~~~
In file included from drivers/hid/intel-ish-hid/ipc/pci-ish.c:19:
drivers/hid/intel-ish-hid/ipc/pci-ish.c:323:19: note: 'cleanup_module' target declared here
323 | module_pci_driver(ish_driver);
| ^~~~~~~~~~
include/linux/device.h:1554:20: note: in definition of macro 'module_driver'
1554 | static void __exit __driver##_exit(void) \
| ^~~~~~~~
drivers/hid/intel-ish-hid/ipc/pci-ish.c:323:1: note: in expansion of macro 'module_pci_driver'
323 | module_pci_driver(ish_driver);
| ^~~~~~~~~~~~~~~~~
include/linux/module.h:132:13: warning: 'init_module' specifies less restrictive attribute than its target 'ish_driver_init': 'cold' [-Wmissing-attributes]
132 | int init_module(void) __attribute__((alias(#initfn)));
| ^~~~~~~~~~~
include/linux/device.h:1553:1: note: in expansion of macro 'module_init'
1553 | module_init(__driver##_init); \
| ^~~~~~~~~~~
include/linux/pci.h:1279:9: note: in expansion of macro 'module_driver'
1279 | module_driver(__pci_driver, pci_register_driver, pci_unregister_driver)
| ^~~~~~~~~~~~~
drivers/hid/intel-ish-hid/ipc/pci-ish.c:323:1: note: in expansion of macro 'module_pci_driver'
323 | module_pci_driver(ish_driver);
| ^~~~~~~~~~~~~~~~~
drivers/hid/intel-ish-hid/ipc/pci-ish.c:323:19: note: 'init_module' target declared here
323 | module_pci_driver(ish_driver);
| ^~~~~~~~~~
include/linux/device.h:1549:19: note: in definition of macro 'module_driver'
1549 | static int __init __driver##_init(void) \
| ^~~~~~~~
drivers/hid/intel-ish-hid/ipc/pci-ish.c:323:1: note: in expansion of macro 'module_pci_driver'
323 | module_pci_driver(ish_driver);
| ^~~~~~~~~~~~~~~~~
drivers/hid/intel-ish-hid/ipc/pci-ish.c:54: warning: Function parameter or member '2' not described in '__printf'
drivers/hid/intel-ish-hid/ipc/pci-ish.c:54: warning: Function parameter or member '3' not described in '__printf'
drivers/hid/intel-ish-hid/ipc/pci-ish.c:54: warning: Excess function parameter 'dev' description in '__printf'
drivers/hid/intel-ish-hid/ipc/pci-ish.c:54: warning: Excess function parameter 'format' description in '__printf'
>> drivers/hid/intel-ish-hid/ipc/pci-ish.o: warning: objtool: missing symbol for section .exit.text
--
In file included from drivers/mmc/core/core.c:13:
include/linux/module.h:132:13: warning: 'init_module' specifies less restrictive attribute than its target 'mmc_init': 'cold' [-Wmissing-attributes]
132 | int init_module(void) __attribute__((alias(#initfn)));
| ^~~~~~~~~~~
include/linux/module.h:115:41: note: in expansion of macro 'module_init'
115 | #define subsys_initcall(fn) module_init(fn)
| ^~~~~~~~~~~
drivers/mmc/core/core.c:2871:1: note: in expansion of macro 'subsys_initcall'
2871 | subsys_initcall(mmc_init);
| ^~~~~~~~~~~~~~~
drivers/mmc/core/core.c:2839:19: note: 'init_module' target declared here
2839 | static int __init mmc_init(void)
| ^~~~~~~~
include/linux/module.h:138:14: warning: 'cleanup_module' specifies less restrictive attribute than its target 'mmc_exit': 'cold' [-Wmissing-attributes]
138 | void cleanup_module(void) __attribute__((alias(#exitfn)));
| ^~~~~~~~~~~~~~
drivers/mmc/core/core.c:2872:1: note: in expansion of macro 'module_exit'
2872 | module_exit(mmc_exit);
| ^~~~~~~~~~~
drivers/mmc/core/core.c:2864:20: note: 'cleanup_module' target declared here
2864 | static void __exit mmc_exit(void)
| ^~~~~~~~
drivers/mmc/core/core.c:1343: warning: Function parameter or member 'mmc' not described in 'mmc_regulator_set_vqmmc'
drivers/mmc/core/core.c:1343: warning: Function parameter or member 'ios' not described in 'mmc_regulator_set_vqmmc'
drivers/mmc/core/core.o: warning: objtool: mmc_hw_reset()+0xf9: sibling call from callable instruction with modified stack frame
drivers/mmc/core/core.o: warning: objtool: mmc_sw_reset()+0xf9: sibling call from callable instruction with modified stack frame
drivers/mmc/core/core.o: warning: objtool: mmc_wait_for_req_done()+0x13b: sibling call from callable instruction with modified stack frame
drivers/mmc/core/core.o: warning: objtool: mmc_do_erase()+0xe8: sibling call from callable instruction with modified stack frame
drivers/mmc/core/core.o: warning: objtool: mmc_of_parse_voltage()+0x60: sibling call from callable instruction with modified stack frame
drivers/mmc/core/core.o: warning: objtool: mmc_execute_tuning()+0x79: sibling call from callable instruction with modified stack frame
drivers/mmc/core/core.o: warning: objtool: mmc_set_uhs_voltage()+0x41: sibling call from callable instruction with modified stack frame
>> drivers/mmc/core/core.o: warning: objtool: missing symbol for section .exit.text
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Tian,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: b5504db0db8375a77340b5bb54c17cfb75d3c754
commit: 00711bad7e372a30c4975ba43811ffa666aff0e1 [1294/1294] gpio: add phytium gpio driver
config: arm64-randconfig-001-20241114 (https://download.01.org/0day-ci/archive/20241201/202412011639.nWeLS0HH-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241201/202412011639.nWeLS0HH-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412011639.nWeLS0HH-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpio/gpio-phytium-platform.c:30:36: warning: 'phytium_gpio_acpi_match' defined but not used [-Wunused-const-variable=]
30 | static const struct acpi_device_id phytium_gpio_acpi_match[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HARDLOCKUP_DETECTOR
Depends on [n]: DEBUG_KERNEL [=n] && !S390 && (HAVE_HARDLOCKUP_DETECTOR_PERF [=n] || HAVE_HARDLOCKUP_DETECTOR_ARCH [=y])
Selected by [y]:
- SDEI_WATCHDOG [=y] && <choice> && ARM_SDE_INTERFACE [=y] && !HARDLOCKUP_CHECK_TIMESTAMP [=n]
vim +/phytium_gpio_acpi_match +30 drivers/gpio/gpio-phytium-platform.c
29
> 30 static const struct acpi_device_id phytium_gpio_acpi_match[] = {
31 { "PHYT0001", 0 },
32 { }
33 };
34 MODULE_DEVICE_TABLE(acpi, phytium_gpio_acpi_match);
35
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi laokz,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: df4c334beecb4cf58e4e8d63b491aa5ac0a84f46
commit: b8f3220637be1736c165c289c634f27841ac4e01 [1474/1474] livepatch: add arch hook before doing klp_resolve_symbols
config: arm64-randconfig-003-20241117 (https://download.01.org/0day-ci/archive/20241201/202412011403.Lq5H9rrB-lkp@…)
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/202412011403.Lq5H9rrB-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412011403.Lq5H9rrB-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:216:13: warning: no previous prototype for function 'arch_klp_skip_resolve' [-Wmissing-prototypes]
bool __weak arch_klp_skip_resolve(unsigned int type)
^
kernel/livepatch/core.c:216:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool __weak arch_klp_skip_resolve(unsigned int type)
^
static
kernel/livepatch/core.c:1767: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:1767: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:2022: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:2022: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:2027: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:2027: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:2032: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:2032: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:2036: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:2036: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:2049: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:2049: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:2063: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:2063: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
9 warnings generated.
vim +/arch_klp_skip_resolve +216 kernel/livepatch/core.c
214
215 #ifdef CONFIG_LIVEPATCH_WO_FTRACE
> 216 bool __weak arch_klp_skip_resolve(unsigned int type)
217 {
218 return false;
219 }
220 #endif
221
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
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@…)
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@…)
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(a)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
Hi Zheng,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: df4c334beecb4cf58e4e8d63b491aa5ac0a84f46
commit: 470628a716984e1325b92bef4fa2140ff5a062a5 [1474/1474] livepatch: Use breakpoint exception to optimize enabling livepatch
config: arm64-randconfig-003-20241117 (https://download.01.org/0day-ci/archive/20241201/202412011107.mRfBU6d7-lkp@…)
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/202412011107.mRfBU6d7-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412011107.mRfBU6d7-lkp@intel.com/
All warnings (new ones prefixed by >>):
kernel/livepatch/core.c:1728: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:1728: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:1983: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:1983: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:1988: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:1988: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:1993: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:1993: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:1997: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:1997: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:2006: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:2006: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:2011:12: warning: no previous prototype for function 'arch_klp_add_breakpoint' [-Wmissing-prototypes]
int __weak arch_klp_add_breakpoint(struct arch_klp_data *arch_data, void *old_func)
^
kernel/livepatch/core.c:2011:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak arch_klp_add_breakpoint(struct arch_klp_data *arch_data, void *old_func)
^
static
kernel/livepatch/core.c:2016:13: warning: no previous prototype for function 'arch_klp_remove_breakpoint' [-Wmissing-prototypes]
void __weak arch_klp_remove_breakpoint(struct arch_klp_data *arch_data, void *old_func)
^
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_remove_breakpoint(struct arch_klp_data *arch_data, void *old_func)
^
static
>> kernel/livepatch/core.c:2020: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:2020: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
9 warnings generated.
vim +/arch_klp_check_breakpoint +2006 kernel/livepatch/core.c
2005
> 2006 int __weak arch_klp_check_breakpoint(struct arch_klp_data *arch_data, void *old_func)
2007 {
2008 return 0;
2009 }
2010
2011 int __weak arch_klp_add_breakpoint(struct arch_klp_data *arch_data, void *old_func)
2012 {
2013 return -EOPNOTSUPP;
2014 }
2015
2016 void __weak arch_klp_remove_breakpoint(struct arch_klp_data *arch_data, void *old_func)
2017 {
2018 }
2019
> 2020 void __weak arch_klp_set_brk_func(struct klp_func_node *func_node, void *new_func)
2021 {
2022 func_node->brk_func = new_func;
2023 }
2024
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki