From nobody Sun Oct 5 01:51:55 2025 Received: from baidu.com (mx24.baidu.com [111.206.215.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F281E2D63ED for ; Mon, 11 Aug 2025 06:52:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.206.215.185 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754895173; cv=none; b=PJNkWqWfCwSeMdCsefjmDgd3o9FVYwF6ZAa3XfcEDygGQNZvFsqiY5LtBzJKgmDihoBcD6+Aac7HQ57Gomtj9lBYxTALuy8SGT3xD0sW3/pxmlMgZKApJXAi8KultPrbBqQhAJeSYWUmK4wlk+kkIxCL4rhEQ4xyxtre84SbVpM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754895173; c=relaxed/simple; bh=A7fiIoRIM2hj0Kk8xKketx+1Pdjs454ZiRMz/trUCpY=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=KkKYn53xSIQN3q0VAE4XVlMPKHYiMQ6ll2a6AMBKH9Uegvpr8zJR19PUFwGjg6H4isbUKsUC+oEXjt6ymmjUwBA2LAQUoCWcXahIFXgeVu1v7ZJVKf0QPdEw9CF93TA0AbR6Vk+EOcEgcXX2Ir+EffYVzXI4dUfZsH9lz2U4p94= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=baidu.com; spf=pass smtp.mailfrom=baidu.com; arc=none smtp.client-ip=111.206.215.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=baidu.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baidu.com From: Fushuai Wang To: , , CC: , , Fushuai Wang Subject: [PATCH] soc/fsl/qbman: Use for_each_online_cpu() instead of for_each_cpu() Date: Mon, 11 Aug 2025 14:52:16 +0800 Message-ID: <20250811065216.3320-1-wangfushuai@baidu.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: bjkjy-exc8.internal.baidu.com (172.31.50.52) To bjhj-exc17.internal.baidu.com (172.31.4.15) X-FEAS-Client-IP: 172.31.4.15 X-FE-Policy-ID: 52:10:53:SYSTEM Content-Type: text/plain; charset="utf-8" Replace the opencoded for_each_cpu(cpu, cpu_online_mask) loop with the more readable and equivalent for_each_online_cpu(cpu) macro. Signed-off-by: Fushuai Wang --- drivers/soc/fsl/qbman/qman_test_stash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qbman/qman_test_stash.c b/drivers/soc/fsl/qbma= n/qman_test_stash.c index f4d3c2146f4f..6f7597950aa3 100644 --- a/drivers/soc/fsl/qbman/qman_test_stash.c +++ b/drivers/soc/fsl/qbman/qman_test_stash.c @@ -103,7 +103,7 @@ static int on_all_cpus(int (*fn)(void)) { int cpu; =20 - for_each_cpu(cpu, cpu_online_mask) { + for_each_online_cpu(cpu) { struct bstrap bstrap =3D { .fn =3D fn, .started =3D ATOMIC_INIT(0) --=20 2.36.1