tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 084a6771cfb3ef307b750af8b7c35a07a725fc4c
commit: 6d14be01fcb032c478cd4669b32526fda0393195 [26380/30000] urma: upload kernel patch for 20240318_happy_birthday
config: arm64-randconfig-004-20240928 (https://download.01.org/0day-ci/archive/20241002/202410020358.lBEOzVu8-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241002/202410020358.lBEOzVu8-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/202410020358.lBEOzVu8-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/ub/urma/ubcore/ubcore_msg.c:433:28: warning: no previous prototype for 'ubcore_asyn_send_fe2tpf_msg' [-Wmissing-prototypes]
433 | struct ubcore_msg_session *ubcore_asyn_send_fe2tpf_msg(struct ubcore_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'ubcore_migrate_req',
inlined from 'ubcore_recv_req' at drivers/ub/urma/ubcore/ubcore_msg.c:282:16:
drivers/ub/urma/ubcore/ubcore_msg.c:261:15: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation]
261 | (void)strncpy(mig_resp->dev_name, dev->dev_name, strlen(dev->dev_name));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_msg.c:261:15: note: length computed here
261 | (void)strncpy(mig_resp->dev_name, dev->dev_name, strlen(dev->dev_name));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
>> drivers/ub/urma/ubcore/ubcore_netlink.c:185:5: warning: no previous prototype for 'ubcore_genl_unicast' [-Wmissing-prototypes]
185 | int ubcore_genl_unicast(struct ubcore_nlmsg *req, uint32_t len)
| ^~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netlink.c: In function 'ubcore_create_nl_session':
drivers/ub/urma/ubcore/ubcore_netlink.c:87:15: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation]
87 | (void)strncpy(s->dev_name, dev->dev_name, strlen(dev->dev_name));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netlink.c:87:15: note: length computed here
87 | (void)strncpy(s->dev_name, dev->dev_name, strlen(dev->dev_name));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
>> drivers/ub/urma/ubcore/ubcore_netdev.c:40:25: warning: no previous prototype for 'ubcore_lookup_sip_info_without_lock' [-Wmissing-prototypes]
40 | struct ubcore_sip_info *ubcore_lookup_sip_info_without_lock(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:74:5: warning: no previous prototype for 'ubcore_notify_uvs_del_sip' [-Wmissing-prototypes]
74 | int ubcore_notify_uvs_del_sip(struct ubcore_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/ub/urma/ubcore/ubcore_netdev.c:112:22: warning: no previous prototype for 'ubcore_new_sip_req_msg' [-Wmissing-prototypes]
112 | struct ubcore_nlmsg *ubcore_new_sip_req_msg(struct ubcore_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:144:5: warning: no previous prototype for 'ubcore_notify_uvs_add_sip' [-Wmissing-prototypes]
144 | int ubcore_notify_uvs_add_sip(struct ubcore_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:176:5: warning: no previous prototype for 'ubcore_check_port_state' [-Wmissing-prototypes]
176 | int ubcore_check_port_state(struct ubcore_device *dev, uint8_t port_idx)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:200:6: warning: no previous prototype for 'ubcore_find_port_netdev' [-Wmissing-prototypes]
200 | void ubcore_find_port_netdev(struct ubcore_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:291:5: warning: no previous prototype for 'ubcore_set_port_netdev' [-Wmissing-prototypes]
291 | int ubcore_set_port_netdev(struct ubcore_device *dev, struct net_device *ndev,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:377:5: warning: no previous prototype for 'ubcore_unset_port_netdev' [-Wmissing-prototypes]
377 | int ubcore_unset_port_netdev(struct ubcore_device *dev, struct net_device *ndev,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:408:6: warning: no previous prototype for 'ubcore_put_port_netdev' [-Wmissing-prototypes]
408 | void ubcore_put_port_netdev(struct ubcore_device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:435:5: warning: no previous prototype for 'ubcore_sip_table_init' [-Wmissing-prototypes]
435 | int ubcore_sip_table_init(struct ubcore_sip_table *sip_table, uint32_t size)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:454:6: warning: no previous prototype for 'ubcore_sip_table_uninit' [-Wmissing-prototypes]
454 | void ubcore_sip_table_uninit(struct ubcore_sip_table *sip_table)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:465:5: warning: no previous prototype for 'ubcore_sip_idx_alloc' [-Wmissing-prototypes]
465 | int ubcore_sip_idx_alloc(struct ubcore_sip_table *sip_table)
| ^~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:481:5: warning: no previous prototype for 'ubcore_sip_idx_free' [-Wmissing-prototypes]
481 | int ubcore_sip_idx_free(struct ubcore_sip_table *sip_table, uint32_t idx)
| ^~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:494:5: warning: no previous prototype for 'ubcore_add_sip_entry' [-Wmissing-prototypes]
494 | int ubcore_add_sip_entry(struct ubcore_sip_table *sip_table, const struct ubcore_sip_info *sip,
| ^~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:512:5: warning: no previous prototype for 'ubcore_del_sip_entry' [-Wmissing-prototypes]
512 | int ubcore_del_sip_entry(struct ubcore_sip_table *sip_table, uint32_t idx)
| ^~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c:542:5: warning: no previous prototype for 'ubcore_lookup_sip_idx' [-Wmissing-prototypes]
542 | int ubcore_lookup_sip_idx(struct ubcore_sip_table *sip_table, struct ubcore_sip_info *sip,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c: In function 'ubcore_set_port_netdev':
>> drivers/ub/urma/ubcore/ubcore_netdev.c:298:17: warning: 'strnlen' specified bound 64 exceeds source size 21 [-Wstringop-overread]
298 | strnlen(netdev_name(ndev), UBCORE_MAX_DEV_NAME) >= UBCORE_MAX_DEV_NAME) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_netdev.c: In function 'ubcore_unset_port_netdev':
drivers/ub/urma/ubcore/ubcore_netdev.c:384:17: warning: 'strnlen' specified bound 64 exceeds source size 21 [-Wstringop-overread]
384 | strnlen(netdev_name(ndev), UBCORE_MAX_DEV_NAME) >= UBCORE_MAX_DEV_NAME) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
drivers/ub/urma/ubcore/ubcore_device.c:409:6: warning: no previous prototype for 'ubcore_destroy_upi_list' [-Wmissing-prototypes]
409 | void ubcore_destroy_upi_list(struct ubcore_device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_device.c:504:23: warning: no previous prototype for 'ubcore_find_tpf_device_legacy' [-Wmissing-prototypes]
504 | struct ubcore_device *ubcore_find_tpf_device_legacy(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_device.c:1637:5: warning: no previous prototype for 'ubcore_dispatch_event' [-Wmissing-prototypes]
1637 | int ubcore_dispatch_event(struct ubcore_event *event)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:17,
from include/asm-generic/bug.h:20,
from arch/arm64/include/asm/bug.h:26,
from include/linux/bug.h:5,
from include/linux/refcount.h:96,
from include/net/net_namespace.h:9,
from drivers/ub/urma/ubcore/ubcore_device.c:21:
drivers/ub/urma/ubcore/ubcore_device.c: In function 'ubcore_add_ueid':
include/linux/kern_levels.h:5:25: warning: too many arguments for format [-Wformat-extra-args]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:392:16: note: in expansion of macro 'KERN_ERR'
392 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/ub/urma/ubcore/ubcore_log.h:46:16: note: in expansion of macro 'pr_err'
46 | ((void)pr_##l("%s|%s:[%d]|" format, UBCORE_LOG_TAG, __func__, __LINE__, ##args))
| ^~~
drivers/ub/urma/ubcore/ubcore_log.h:57:17: note: in expansion of macro 'ubcore_default_log'
57 | ubcore_default_log(err, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_device.c:1857:17: note: in expansion of macro 'ubcore_log_err'
1857 | ubcore_log_err("failed to add ueid, ret:%d\n",
| ^~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_device.c: In function 'ubcore_delete_ueid':
include/linux/kern_levels.h:5:25: warning: too many arguments for format [-Wformat-extra-args]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:392:16: note: in expansion of macro 'KERN_ERR'
392 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/ub/urma/ubcore/ubcore_log.h:46:16: note: in expansion of macro 'pr_err'
46 | ((void)pr_##l("%s|%s:[%d]|" format, UBCORE_LOG_TAG, __func__, __LINE__, ##args))
| ^~~
drivers/ub/urma/ubcore/ubcore_log.h:57:17: note: in expansion of macro 'ubcore_default_log'
57 | ubcore_default_log(err, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_device.c:1885:17: note: in expansion of macro 'ubcore_log_err'
1885 | ubcore_log_err("failed to add ueid, ret:%d\n",
| ^~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_device.c: At top level:
drivers/ub/urma/ubcore/ubcore_device.c:2389:6: warning: no previous prototype for 'ubcore_net_exit' [-Wmissing-prototypes]
2389 | void ubcore_net_exit(struct net *net)
| ^~~~~~~~~~~~~~~
drivers/ub/urma/ubcore/ubcore_device.c: In function 'ubcore_new_tpf_dev_msg':
>> drivers/ub/urma/ubcore/ubcore_device.c:913:21: warning: 'strnlen' specified bound 64 exceeds source size 16 [-Wstringop-overread]
913 | if (strnlen(dev->netdev->name, UBCORE_MAX_DEV_NAME) >= UBCORE_MAX_DEV_NAME) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/ub/urma/ubcore/ubcore_device.c:32:
include/linux/netdevice.h:1957:33: note: source object allocated here
1957 | char name[IFNAMSIZ];
| ^~~~
--
drivers/ub/urma/ubcore/ubcore_ctp.c: In function 'ubcore_find_remove_ctp':
>> drivers/ub/urma/ubcore/ubcore_ctp.c:114:42: warning: the comparison will always evaluate as 'false' for the address of 'head' will never be NULL [-Waddress]
114 | if (&dev->ht[UBCORE_HT_CTP].head == NULL) {
| ^~
In file included from drivers/ub/urma/ubcore/ubcore_hash_table.h:24,
from drivers/ub/urma/ubcore/ubcore_ctp.c:23:
include/urma/ubcore_types.h:162:28: note: 'head' declared here
162 | struct hlist_head *head;
| ^~~~
--
drivers/ub/urma/ubcore/ubcore_tpg.c: In function 'ubcore_find_remove_tpg':
>> drivers/ub/urma/ubcore/ubcore_tpg.c:113:42: warning: the comparison will always evaluate as 'false' for the address of 'head' will never be NULL [-Waddress]
113 | if (&dev->ht[UBCORE_HT_TPG].head == NULL) {
| ^~
In file included from drivers/ub/urma/ubcore/ubcore_hash_table.h:24,
from drivers/ub/urma/ubcore/ubcore_tpg.c:23:
include/urma/ubcore_types.h:162:28: note: 'head' declared here
162 | struct hlist_head *head;
| ^~~~
drivers/ub/urma/ubcore/ubcore_tpg.c: In function 'ubcore_find_remove_tp_node':
drivers/ub/urma/ubcore/ubcore_tpg.c:149:44: warning: the comparison will always evaluate as 'false' for the address of 'head' will never be NULL [-Waddress]
149 | if (&dev->ht[UBCORE_HT_UB_TP].head == NULL) {
| ^~
include/urma/ubcore_types.h:162:28: note: 'head' declared here
162 | struct hlist_head *head;
| ^~~~
--
drivers/ub/urma/ubcore/ubcore_utp.c: In function 'ubcore_find_remove_utp':
>> drivers/ub/urma/ubcore/ubcore_utp.c:139:42: warning: the comparison will always evaluate as 'false' for the address of 'head' will never be NULL [-Waddress]
139 | if (&dev->ht[UBCORE_HT_UTP].head == NULL) {
| ^~
In file included from drivers/ub/urma/ubcore/ubcore_hash_table.h:24,
from drivers/ub/urma/ubcore/ubcore_utp.c:23:
include/urma/ubcore_types.h:162:28: note: 'head' declared here
162 | struct hlist_head *head;
| ^~~~
vim +/ubcore_asyn_send_fe2tpf_msg +433 drivers/ub/urma/ubcore/ubcore_msg.c
428
429 /**
430 * If you do not need to wait for the response of a message, use ubcore_asyn_send_fe2tpf_msg.
431 * If you need to wait for a response to a message, use ubcore_send_fe2tpf_msg
432 */
> 433 struct ubcore_msg_session *ubcore_asyn_send_fe2tpf_msg(struct ubcore_device *dev,
434 struct ubcore_req *req)
435 {
436 struct ubcore_msg_session *s;
437 int ret;
438
439 req->msg_id = ubcore_get_msg_seq();
440 s = ubcore_create_msg_session(req);
441 if (s == NULL) {
442 ubcore_log_err("Failed to create req session!\n");
443 return NULL;
444 }
445
446 ret = ubcore_send_req(dev, req);
447 if (ret != 0) {
448 ubcore_log_err("Failed to send req, msg_id = %u, opcode = %hu.\n",
449 req->msg_id, (uint16_t)req->opcode);
450 ubcore_destroy_msg_session(s);
451 return NULL;
452 }
453 return s;
454 }
455
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 084a6771cfb3ef307b750af8b7c35a07a725fc4c
commit: 013280dfab06d20e73de842e8d2fc2a200055455 [26379/30000] urma: upload kernel patch for 20240224_rain
config: arm64-randconfig-004-20240928 (https://download.01.org/0day-ci/archive/20241002/202410020053.5eT51YoK-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241002/202410020053.5eT51YoK-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/202410020053.5eT51YoK-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/ub/urma/ubcore/ubcore_vtp.c:261:6: warning: no previous prototype for 'ubcore_hash_table_rmv_vtpn' [-Wmissing-prototypes]
261 | void ubcore_hash_table_rmv_vtpn(struct ubcore_device *dev, struct ubcore_vtpn *vtpn)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/ubcore_hash_table_rmv_vtpn +261 drivers/ub/urma/ubcore/ubcore_vtp.c
260
> 261 void ubcore_hash_table_rmv_vtpn(struct ubcore_device *dev, struct ubcore_vtpn *vtpn)
262 {
263 struct ubcore_hash_table *ht;
264
265 ht = ubcore_get_vtpn_ht(dev, vtpn->trans_mode);
266 if (ht == NULL)
267 return;
268 ubcore_hash_table_remove(ht, &vtpn->hnode);
269 }
270
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki