Hi Yizhen,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 929a9df37c1b7dec73fd417d79a116d02a8f9380
commit: 7d130c6018dbfd09c6e1c5d91b347fdbf3924321 [2516/2516] ub: add mmap ops support in ubcore and uburma
config: arm64-randconfig-003-20241203 (https://download.01.org/0day-ci/archive/20241203/202412030936.hofHSOhc-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412030936.hofHSOhc-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/202412030936.hofHSOhc-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/ub/urma/uburma/uburma_dev_ops.c:32:5: warning: no previous prototype for 'uburma_mmap' [-Wmissing-prototypes]
32 | int uburma_mmap(struct file *filp, struct vm_area_struct *vma)
| ^~~~~~~~~~~
drivers/ub/urma/uburma/uburma_dev_ops.c:64:6: warning: no previous prototype for 'uburma_release_file' [-Wmissing-prototypes]
64 | void uburma_release_file(struct kref *ref)
| ^~~~~~~~~~~~~~~~~~~
drivers/ub/urma/uburma/uburma_dev_ops.c:81:5: warning: no previous prototype for 'uburma_open' [-Wmissing-prototypes]
81 | int uburma_open(struct inode *inode, struct file *filp)
| ^~~~~~~~~~~
drivers/ub/urma/uburma/uburma_dev_ops.c: In function 'uburma_open':
drivers/ub/urma/uburma/uburma_dev_ops.c:98:50: warning: the comparison will always evaluate as 'false' for the address of 'dev_name' will never be NULL [-Waddress]
98 | if (ubc_dev == NULL || ubc_dev->dev_name == NULL) {
| ^~
In file included from drivers/ub/urma/uburma/uburma_dev_ops.c:25:
include/urma/ubcore_types.h:1589:14: note: 'dev_name' declared here
1589 | char dev_name[UBCORE_MAX_DEV_NAME];
| ^~~~~~~~
drivers/ub/urma/uburma/uburma_dev_ops.c: At top level:
drivers/ub/urma/uburma/uburma_dev_ops.c:134:5: warning: no previous prototype for 'uburma_close' [-Wmissing-prototypes]
134 | int uburma_close(struct inode *inode, struct file *filp)
| ^~~~~~~~~~~~
vim +/uburma_mmap +32 drivers/ub/urma/uburma/uburma_dev_ops.c
31
> 32 int uburma_mmap(struct file *filp, struct vm_area_struct *vma)
33 {
34 struct uburma_file *file = filp->private_data;
35 struct uburma_device *ubu_dev;
36 struct ubcore_device *ubc_dev;
37 int srcu_idx;
38 int ret;
39
40 if (file == NULL || file->ucontext == NULL) {
41 uburma_log_err("can not find ucontext.\n");
42 return -EINVAL;
43 }
44
45 ubu_dev = file->ubu_dev;
46 uburma_cmd_inc(ubu_dev);
47
48 srcu_idx = srcu_read_lock(&ubu_dev->ubc_dev_srcu);
49 ubc_dev = srcu_dereference(ubu_dev->ubc_dev, &ubu_dev->ubc_dev_srcu);
50 if (ubc_dev == NULL || ubc_dev->ops == NULL || ubc_dev->ops->mmap == NULL) {
51 uburma_log_err("can not find ubcore device.\n");
52 ret = -ENODEV;
53 goto out;
54 }
55
56 ret = ubc_dev->ops->mmap(file->ucontext, vma);
57
58 out:
59 srcu_read_unlock(&ubu_dev->ubc_dev_srcu, srcu_idx);
60 uburma_cmd_dec(ubu_dev);
61 return ret;
62 }
63
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 9809e40d1abbcdf278f3db91f03a94507bdbb442
commit: 89bf80a4d6d5ba852b9042480e0be23c2c4a628c [1455/1455] sched: Introduce priority load balance for qos scheduler
config: x86_64-randconfig-005-20241112 (https://download.01.org/0day-ci/archive/20241203/202412030733.746Ood8y-lkp@…)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412030733.746Ood8y-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/202412030733.746Ood8y-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/fair.c:25:
In file included from include/linux/hugetlb_inline.h:7:
In file included from include/linux/mm.h:2181:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> kernel/sched/fair.c:3612:36: error: no member named 'cfs_offline_tasks' in 'struct rq'
3612 | (*list_op)(&se->group_node, &rq->cfs_offline_tasks);
| ~~ ^
>> kernel/sched/fair.c:3614:36: error: no member named 'cfs_tasks' in 'struct rq'
3614 | (*list_op)(&se->group_node, &rq->cfs_tasks);
| ~~ ^
kernel/sched/fair.c:8678:9: error: call to undeclared function 'sched_idle_cpu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
8678 | !sched_idle_cpu(smp_processor_id()) &&
| ^
kernel/sched/fair.c:8678:9: note: did you mean 'sched_idle_rq'?
kernel/sched/fair.c:6707:12: note: 'sched_idle_rq' declared here
6707 | static int sched_idle_rq(struct rq *rq)
| ^
kernel/sched/fair.c:8681:23: error: no member named 'online' in 'struct rq'
8681 | if (!rq_of(cfs_rq)->online)
| ~~~~~~~~~~~~~ ^
kernel/sched/fair.c:8960:7: error: no member named 'idle_stamp' in 'struct rq'; did you mean 'idle_state'?
8960 | rq->idle_stamp = 0;
| ^~~~~~~~~~
| idle_state
kernel/sched/sched.h:1146:24: note: 'idle_state' declared here
1146 | struct cpuidle_state *idle_state;
| ^
1 warning and 5 errors generated.
vim +3612 kernel/sched/fair.c
3602
3603 #ifdef CONFIG_QOS_SCHED_PRIO_LB
3604 static void
3605 adjust_rq_cfs_tasks(void (*list_op)(struct list_head *, struct list_head *),
3606 struct rq *rq,
3607 struct sched_entity *se)
3608 {
3609 struct task_group *tg = task_group(task_of(se));
3610
3611 if (sysctl_sched_prio_load_balance_enabled && tg->qos_level == -1)
> 3612 (*list_op)(&se->group_node, &rq->cfs_offline_tasks);
3613 else
> 3614 (*list_op)(&se->group_node, &rq->cfs_tasks);
3615 }
3616 #endif
3617
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 929a9df37c1b7dec73fd417d79a116d02a8f9380
commit: d48b7d951d22f7f97d68ae7b580769827683d404 [2516/2516] drivers: initial support for xsc drivers from Yunsilicon Technology
config: x86_64-randconfig-r063-20241203 (https://download.01.org/0day-ci/archive/20241203/202412030645.2p5xOIF3-lkp@…)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412030645.2p5xOIF3-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/202412030645.2p5xOIF3-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/net/ethernet/yunsilicon/xsc/pci/sriov.c:7:
In file included from include/linux/pci.h:1499:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:1579:
include/linux/vmstat.h:417:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
417 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
418 | item];
| ~~~~
include/linux/vmstat.h:424:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
424 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
425 | NR_VM_NUMA_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:431:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
431 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:436:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
436 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
437 | NR_VM_NUMA_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:445:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
445 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
446 | NR_VM_NUMA_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/net/ethernet/yunsilicon/xsc/pci/sriov.c:8:
In file included from drivers/net/ethernet/yunsilicon/xsc/common/xsc_core.h:24:
In file included from drivers/net/ethernet/yunsilicon/xsc/common/driver.h:21:
drivers/net/ethernet/yunsilicon/xsc/common/xsc_hsi.h:598:46: warning: overlapping comparisons always evaluate to false [-Wtautological-overlap-compare]
598 | } else if (func_id >= XSC_PCIE1_PF0_FUNC_ID &&
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
599 | func_id <= XSC_PCIE1_PF_FUNC_ID_END) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/net/ethernet/yunsilicon/xsc/pci/sriov.c:12:
In file included from drivers/net/ethernet/yunsilicon/xsc/pci/eswitch.h:15:
include/net/devlink.h:28:19: warning: arithmetic between different enumeration types ('enum devlink_reload_limit' and 'enum devlink_reload_action') [-Wenum-enum-conversion]
28 | u32 reload_stats[DEVLINK_RELOAD_STATS_ARRAY_SIZE];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/devlink.h:25:30: note: expanded from macro 'DEVLINK_RELOAD_STATS_ARRAY_SIZE'
25 | (__DEVLINK_RELOAD_LIMIT_MAX * __DEVLINK_RELOAD_ACTION_MAX)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/devlink.h:29:26: warning: arithmetic between different enumeration types ('enum devlink_reload_limit' and 'enum devlink_reload_action') [-Wenum-enum-conversion]
29 | u32 remote_reload_stats[DEVLINK_RELOAD_STATS_ARRAY_SIZE];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/devlink.h:25:30: note: expanded from macro 'DEVLINK_RELOAD_STATS_ARRAY_SIZE'
25 | (__DEVLINK_RELOAD_LIMIT_MAX * __DEVLINK_RELOAD_ACTION_MAX)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/yunsilicon/xsc/pci/sriov.c:167:35: error: no member named 'physfn' in 'struct pci_dev'
167 | pf_xdev = pci_get_drvdata(pdev->physfn);
| ~~~~ ^
8 warnings and 1 error generated.
vim +167 drivers/net/ethernet/yunsilicon/xsc/pci/sriov.c
159
160 int xsc_sriov_attach(struct xsc_core_device *dev)
161 {
162 struct pci_dev *pdev = dev->pdev;
163 struct xsc_core_device *pf_xdev;
164 struct xsc_core_sriov *sriov;
165
166 if (!xsc_core_is_pf(dev)) {
> 167 pf_xdev = pci_get_drvdata(pdev->physfn);
168 sriov = &pf_xdev->priv.sriov;
169
170 sriov->vfs[dev->vf_id].vf = dev->vf_id;
171 sriov->vfs[dev->vf_id].dev = dev;
172 return 0;
173 }
174
175 if (!dev->priv.sriov.num_vfs)
176 return 0;
177
178 /* If sriov VFs exist in PCI level, enable them in device level */
179 return xsc_device_enable_sriov(dev, pci_num_vf(dev->pdev));
180 }
181
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Yizhen,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 929a9df37c1b7dec73fd417d79a116d02a8f9380
commit: f6206cf05e28a7f455850a4e2de8162890f50073 [2516/2516] ub: add memory map api in ubcore
config: arm64-randconfig-003-20241203 (https://download.01.org/0day-ci/archive/20241203/202412030455.2cb7zJmc-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412030455.2cb7zJmc-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/202412030455.2cb7zJmc-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/ub/urma/ubcore/ubcore_umem.c:227:21: warning: no previous prototype for 'ubcore_umem_get' [-Wmissing-prototypes]
227 | struct ubcore_umem *ubcore_umem_get(struct ubcore_device *dev, uint64_t va, uint64_t len,
| ^~~~~~~~~~~~~~~
>> drivers/ub/urma/ubcore/ubcore_umem.c:245:6: warning: no previous prototype for 'ubcore_umem_release' [-Wmissing-prototypes]
245 | void ubcore_umem_release(struct ubcore_umem *umem)
| ^~~~~~~~~~~~~~~~~~~
vim +/ubcore_umem_get +227 drivers/ub/urma/ubcore/ubcore_umem.c
226
> 227 struct ubcore_umem *ubcore_umem_get(struct ubcore_device *dev, uint64_t va, uint64_t len,
228 union ubcore_umem_flag flag)
229 {
230 struct page **page_list;
231 int ret;
232
233 ret = umem_verify_input(dev, va, len, flag);
234 if (ret < 0)
235 return ERR_PTR(ret);
236
237 page_list = (struct page **)__get_free_page(GFP_KERNEL);
238 if (page_list == 0)
239 return ERR_PTR(-ENOMEM);
240
241 return ubcore_get_target_umem(dev, va, len, flag, page_list);
242 }
243 EXPORT_SYMBOL(ubcore_umem_get);
244
> 245 void ubcore_umem_release(struct ubcore_umem *umem)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Yonglong,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 929a9df37c1b7dec73fd417d79a116d02a8f9380
commit: c64545e1e5fa4e09603149e918f306562a22a60a [2417/2417] net: hns3: add support for Hisilicon ptp sync device
config: x86_64-buildonly-randconfig-001-20241112 (https://download.01.org/0day-ci/archive/20241203/202412030237.97I45s3K-lkp@…)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412030237.97I45s3K-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/202412030237.97I45s3K-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/ptp/ptp_hisi.c:3:
In file included from include/linux/mm.h:1573:
include/linux/vmstat.h:431:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
431 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> drivers/ptp/ptp_hisi.c:731:36: warning: unused variable 'hisi_ptp_acpi_match' [-Wunused-const-variable]
731 | static const struct acpi_device_id hisi_ptp_acpi_match[] = {
| ^~~~~~~~~~~~~~~~~~~
2 warnings generated.
vim +/hisi_ptp_acpi_match +731 drivers/ptp/ptp_hisi.c
730
> 731 static const struct acpi_device_id hisi_ptp_acpi_match[] = {
732 { "HISI0411", 0 },
733 { }
734 };
735 MODULE_DEVICE_TABLE(acpi, hisi_ptp_acpi_match);
736
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Yizhen,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 929a9df37c1b7dec73fd417d79a116d02a8f9380
commit: 95c713224477ac3433652331dd715e9bbcbc793a [2417/2417] ub: init ubcore module
config: x86_64-buildonly-randconfig-002-20241112 (https://download.01.org/0day-ci/archive/20241203/202412030157.Es0GoXeE-lkp@…)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412030157.Es0GoXeE-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/202412030157.Es0GoXeE-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/ub/urma/ubcore/ubcore_main.c:61:5: warning: no previous prototype for 'ubcore_open' [-Wmissing-prototypes]
61 | int ubcore_open(struct inode *i_node, struct file *filp)
| ^~~~~~~~~~~
vim +/ubcore_open +61 drivers/ub/urma/ubcore/ubcore_main.c
60
> 61 int ubcore_open(struct inode *i_node, struct file *filp)
62 {
63 return 0;
64 }
65
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki