tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 5b8789bdf0036a2c7127f6a0d942b4c2b6f8e42d
commit: 375d7f74f7099abf22f2c7e7235ce45a33f78110 [15347/15883] acpi: mcfg quirk: Increased multi-chip support for the 3C6000
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20241030/202410300643.xefa3uuI-lkp@…)
compiler: loongarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241030/202410300643.xefa3uuI-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/202410300643.xefa3uuI-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/irq.h:24,
from arch/loongarch/include/asm/hardirq.h:10,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/serial_core.h:13,
from drivers/tty/serial/lantiq.c:23:
drivers/tty/serial/lantiq.c: In function 'lqasc_verify_port':
>> arch/loongarch/include/asm/irq.h:47:23: error: 'NR_VECTORS' undeclared (first use in this function)
47 | #define NR_IRQS (64 + NR_VECTORS * (NR_CPUS + MAX_IO_PICS))
| ^~~~~~~~~~
drivers/tty/serial/lantiq.c:554:41: note: in expansion of macro 'NR_IRQS'
554 | if (ser->irq < 0 || ser->irq >= NR_IRQS)
| ^~~~~~~
arch/loongarch/include/asm/irq.h:47:23: note: each undeclared identifier is reported only once for each function it appears in
47 | #define NR_IRQS (64 + NR_VECTORS * (NR_CPUS + MAX_IO_PICS))
| ^~~~~~~~~~
drivers/tty/serial/lantiq.c:554:41: note: in expansion of macro 'NR_IRQS'
554 | if (ser->irq < 0 || ser->irq >= NR_IRQS)
| ^~~~~~~
--
In file included from include/linux/irq.h:24,
from kernel/irq/irqdesc.c:10:
>> arch/loongarch/include/asm/irq.h:47:23: error: 'NR_VECTORS' undeclared here (not in a function)
47 | #define NR_IRQS (64 + NR_VECTORS * (NR_CPUS + MAX_IO_PICS))
| ^~~~~~~~~~
kernel/irq/irqdesc.c:129:15: note: in expansion of macro 'NR_IRQS'
129 | int nr_irqs = NR_IRQS;
| ^~~~~~~
vim +/NR_VECTORS +47 arch/loongarch/include/asm/irq.h
41
42 #define arch_trigger_cpumask_backtrace arch_trigger_cpumask_backtrace
43 extern bool arch_trigger_cpumask_backtrace(const cpumask_t *mask,
44 int exclude_cpu);
45
46 #define MAX_IO_PICS 16
> 47 #define NR_IRQS (64 + NR_VECTORS * (NR_CPUS + MAX_IO_PICS))
48
--
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: ffc5791ca9102a55d29c6dea26de38d32f052b01
commit: dd9641804ad19402838975c28003465d0b42042a [18717/30000] ub: uburma add cmd create/delete jfs implementation.
config: arm64-randconfig-003-20241029 (https://download.01.org/0day-ci/archive/20241030/202410300443.E0lKV9go-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241030/202410300443.E0lKV9go-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/202410300443.E0lKV9go-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/ub/urma/uburma/uburma_cmd.c:144:6: warning: no previous prototype for 'uburma_jfs_event_cb' [-Wmissing-prototypes]
144 | void uburma_jfs_event_cb(struct ubcore_event *event, struct ubcore_ucontext *ctx)
| ^~~~~~~~~~~~~~~~~~~
vim +/uburma_jfs_event_cb +144 drivers/ub/urma/uburma/uburma_cmd.c
143
> 144 void uburma_jfs_event_cb(struct ubcore_event *event, struct ubcore_ucontext *ctx)
145 {
146 struct uburma_jfs_uobj *jfs_uobj;
147
148 if (event->element.jfs == NULL)
149 return;
150
151 jfs_uobj = (struct uburma_jfs_uobj *)event->element.jfs->jfs_cfg.jfs_context;
152 uburma_write_async_event(ctx, event->element.jfs->urma_jfs, event->event_type,
153 &jfs_uobj->async_event_list, &jfs_uobj->async_events_reported);
154 }
155
--
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: ffc5791ca9102a55d29c6dea26de38d32f052b01
commit: ad84f0a92e3fe282d8280d8c45f8d5b8aab1a2b4 [18707/30000] ub: ubcore add event api and add jetty and event api impls to compile
config: arm64-randconfig-003-20241029 (https://download.01.org/0day-ci/archive/20241030/202410300109.pSLkwgUF-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241030/202410300109.pSLkwgUF-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/202410300109.pSLkwgUF-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/ub/urma/ubcore/ubcore_dp.c:26:5: warning: no previous prototype for 'ubcore_rearm_jfc' [-Wmissing-prototypes]
26 | int ubcore_rearm_jfc(struct ubcore_jfc *jfc, bool solicited_only)
| ^~~~~~~~~~~~~~~~
vim +/ubcore_rearm_jfc +26 drivers/ub/urma/ubcore/ubcore_dp.c
25
> 26 int ubcore_rearm_jfc(struct ubcore_jfc *jfc, bool solicited_only)
--
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: ffc5791ca9102a55d29c6dea26de38d32f052b01
commit: 7d130c6018dbfd09c6e1c5d91b347fdbf3924321 [18678/30000] ub: add mmap ops support in ubcore and uburma
config: arm64-randconfig-003-20241029 (https://download.01.org/0day-ci/archive/20241029/202410292243.lj3Xa1zr-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241029/202410292243.lj3Xa1zr-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/202410292243.lj3Xa1zr-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