lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200903091436.11983.rusty@rustcorp.com.au>
Date:	Mon, 9 Mar 2009 14:36:11 +1030
From:	Rusty Russell <rusty@...tcorp.com.au>
To:	devel@...n-fcoe.org
Cc:	linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org
Subject: [PATCH] cpumask: use modern cpumask functions in drivers/scsi/fcoe/libfcoe.c

Impact: use new API

first_cpu(cpu_online_map) => cpumask_first(cpu_online_mask)

Signed-off-by: Rusty Russell <rusty@...tcorp.com.au>
Cc: devel@...n-fcoe.org
---
 drivers/scsi/fcoe/libfcoe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c
--- a/drivers/scsi/fcoe/libfcoe.c
+++ b/drivers/scsi/fcoe/libfcoe.c
@@ -237,7 +237,7 @@ int fcoe_rcv(struct sk_buff *skb, struct
 	 */
 	cpu_idx = oxid & (num_online_cpus() - 1);
 	if (!fcoe_percpu[cpu_idx] || !cpu_online(cpu_idx))
-		cpu_idx = first_cpu(cpu_online_map);
+		cpu_idx = cpumask_first(cpu_online_mask);
 #endif
 	fps = fcoe_percpu[cpu_idx];
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ