tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: f1418110051edb8e47923b009bbd051f7c06ad1a commit: 8ae16d21707c9299ad950c2511508a3d3407de7a [3075/3075] ub:ubus: Support UB device enabling basic interface config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20251105/202511051215.u37nznQt-lkp@i...) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251105/202511051215.u37nznQt-lkp@i...) 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/202511051215.u37nznQt-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/ub/ubus/ubus_entity.c:35:19: warning: no previous prototype for function 'ub_alloc_ent' [-Wmissing-prototypes] 35 | struct ub_entity *ub_alloc_ent(void) | ^ drivers/ub/ubus/ubus_entity.c:35:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 35 | struct ub_entity *ub_alloc_ent(void) | ^ | static
drivers/ub/ubus/ubus_entity.c:56:6: warning: no previous prototype for function 'ub_entity_num_free' [-Wmissing-prototypes] 56 | void ub_entity_num_free(struct ub_entity *uent) | ^ drivers/ub/ubus/ubus_entity.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 56 | void ub_entity_num_free(struct ub_entity *uent) | ^ | static drivers/ub/ubus/ubus_entity.c:157:5: warning: no previous prototype for function 'ub_setup_ent' [-Wmissing-prototypes] 157 | int ub_setup_ent(struct ub_entity *uent) | ^ drivers/ub/ubus/ubus_entity.c:157:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 157 | int ub_setup_ent(struct ub_entity *uent) | ^ | static drivers/ub/ubus/ubus_entity.c:220:6: warning: no previous prototype for function 'ub_entity_add' [-Wmissing-prototypes] 220 | void ub_entity_add(struct ub_entity *uent, void *ctx) | ^ drivers/ub/ubus/ubus_entity.c:220:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 220 | void ub_entity_add(struct ub_entity *uent, void *ctx) | ^ | static drivers/ub/ubus/ubus_entity.c:263:6: warning: no previous prototype for function 'ub_start_ent' [-Wmissing-prototypes] 263 | void ub_start_ent(struct ub_entity *uent) | ^ drivers/ub/ubus/ubus_entity.c:263:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 263 | void ub_start_ent(struct ub_entity *uent) | ^ | static drivers/ub/ubus/ubus_entity.c:312:6: warning: no previous prototype for function 'ub_remove_ent' [-Wmissing-prototypes] 312 | void ub_remove_ent(struct ub_entity *uent) | ^ drivers/ub/ubus/ubus_entity.c:312:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 312 | void ub_remove_ent(struct ub_entity *uent) | ^ | static drivers/ub/ubus/ubus_entity.c:343:6: warning: no previous prototype for function 'ub_stop_entities' [-Wmissing-prototypes] 343 | void ub_stop_entities(void) | ^ drivers/ub/ubus/ubus_entity.c:343:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 343 | void ub_stop_entities(void) | ^ | static drivers/ub/ubus/ubus_entity.c:347:6: warning: no previous prototype for function 'ub_remove_entities' [-Wmissing-prototypes] 347 | void ub_remove_entities(void) | ^ drivers/ub/ubus/ubus_entity.c:347:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 347 | void ub_remove_entities(void) | ^ | static 8 warnings generated.
vim +/ub_entity_num_free +56 drivers/ub/ubus/ubus_entity.c 34
35 struct ub_entity *ub_alloc_ent(void) 36 { 37 struct ub_entity *uent; 38 39 uent = kzalloc(sizeof(*uent), GFP_KERNEL); 40 if (!uent) 41 return NULL; 42 43 INIT_LIST_HEAD(&uent->node); 44 INIT_LIST_HEAD(&uent->cna_list); 45 46 uent->dev.type = &ub_dev_type; 47 uent->cna = 0; 48 49 ub_entity_assign_priv_flag(uent, UB_ENTITY_DETACHED, true); 50 51 return uent; 52 } 53 EXPORT_SYMBOL_GPL(ub_alloc_ent); 54 55 static DEFINE_IDA(uent_num_ida); 56 void ub_entity_num_free(struct ub_entity *uent) 57 { 58 ida_free(&uent_num_ida, uent->uent_num); 59 } 60
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki