From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751643AbZCIEG3 (ORCPT ); Mon, 9 Mar 2009 00:06:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751114AbZCIEGS (ORCPT ); Mon, 9 Mar 2009 00:06:18 -0400 Received: from ozlabs.org ([203.10.76.45]:48022 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbZCIEGR (ORCPT ); Mon, 9 Mar 2009 00:06:17 -0400 From: Rusty Russell To: devel@open-fcoe.org Subject: [PATCH] cpumask: use modern cpumask functions in drivers/scsi/fcoe/libfcoe.c Date: Mon, 9 Mar 2009 14:36:11 +1030 User-Agent: KMail/1.11.1 (Linux/2.6.27-11-generic; KDE/4.2.1; i686; ; ) Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903091436.11983.rusty@rustcorp.com.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Impact: use new API first_cpu(cpu_online_map) => cpumask_first(cpu_online_mask) Signed-off-by: Rusty Russell Cc: devel@open-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];