Re: ERROR: drivers: iscsi: iscsi_target.c

From: Rasmus Villemoes
Date: Mon May 16 2022 - 04:48:27 EST


On 12/05/2022 20.42, Test Bot wrote:
> Hi,
>
> I automatically test (RC) kernel and caught ERROR word.
> Please ignore, if its unimportant.
>
> Kernel: 5.18-rc6
> Arch: x86_64 (SMP)
> Compiler: 7.5.0 (gcc)
>
> Codebase Block:
>
> void iscsit_thread_get_cpumask(struct iscsi_conn *conn)
> {
> int ord, cpu;
> cpumask_t conn_allowed_cpumask;
>
> cpumask_and(&conn_allowed_cpumask, iscsit_global->allowed_cpumask,
> cpu_online_mask);
>
> cpumask_clear(conn->conn_cpumask);
> ord = conn->bitmap_id % cpumask_weight(&conn_allowed_cpumask);
> for_each_cpu(cpu, &conn_allowed_cpumask) {
> if (ord-- == 0) {
> cpumask_set_cpu(cpu, conn->conn_cpumask);
> return;
> }
> }
> dump_stack();
> cpumask_setall(conn->conn_cpumask);
> }

Hm, looks like cpumask.h should also expose a wrapper for
bitmap_ord_to_pos ...

Rasmus