From nobody Fri Nov 29 00:46:14 2024 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B48A81B1504 for ; Thu, 26 Sep 2024 22:49:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727390974; cv=none; b=D2KyPSgtMa9VkesE4H1TmpYX/d7S6Qv/hhfCINKTAOnX+VfNA2XOXfz53N+lI2QWfqChzsqZv9yvpqgq0thRoXsFUmop4LhrKHP/zxc8s0VrHiDegzXx6CM9iChrl+NK+EtlJHhDK3kXyd/+OQZGT0nb0XDp8KiFrt9YY3DejLw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727390974; c=relaxed/simple; bh=SrPlU9tOI0Lf76otTW5ESwvT98+pgbNcqxervWYqjX4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=raskwDAb+jjK4DpT8nr59+/1zEN+KTerC/Li3YIE5UJXs6jYDBXmvpbdWmCpuoSMZBU9j0h+JN1hNgAOBVh1xFj8JRqJM/NIReOHH0lqz3QyAAlWxnpiWiwaf8TwI0GATUVxkKjZPerQ2blCPcwgvni6jxGMj3pnfBr8d3NUSAs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HELp0UUq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HELp0UUq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7D61C4CECE; Thu, 26 Sep 2024 22:49:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1727390974; bh=SrPlU9tOI0Lf76otTW5ESwvT98+pgbNcqxervWYqjX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HELp0UUqg1+FQIIMC0NR8Sf8pG2tPjbxeayOqS91nDq2E7TQIkUS9lOo0UNjoQ3DY iicgTnusuLGJtBQzmbCpt/OJFRGDEV0B23+K9jLrKvIU0dw58ANXoxiL9UGnKe9MK3 NQyx+spJlki9pUEpF/Ledwcxwdc2pOfwgZC0BgDnARyunvHOk/eSiHLIhK3usGS9wO AlRuODGu2bkfkeEzIUK2E4XDsb6kkX529sXHLn5HVWCH+lII/OnQ9FqYXDX1Fh2RRw 2KnVvhxMnjI27mUDo/4pZWvSoAwYRXm1dSwiHRwB7XmMY4H9RvhEvcX6d9Ob8rY94B vofw81gFSaUoQ== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Kees Cook , Andrew Morton , Peter Zijlstra , Thomas Gleixner Subject: [PATCH 08/20] kallsyms: Use kthread_run_on_cpu() Date: Fri, 27 Sep 2024 00:48:56 +0200 Message-ID: <20240926224910.11106-9-frederic@kernel.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240926224910.11106-1-frederic@kernel.org> References: <20240926224910.11106-1-frederic@kernel.org> 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 Content-Type: text/plain; charset="utf-8" Use the proper API instead of open coding it. Signed-off-by: Frederic Weisbecker --- kernel/kallsyms_selftest.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/kallsyms_selftest.c b/kernel/kallsyms_selftest.c index 873f7c445488..cf4af5728307 100644 --- a/kernel/kallsyms_selftest.c +++ b/kernel/kallsyms_selftest.c @@ -435,13 +435,11 @@ static int __init kallsyms_test_init(void) { struct task_struct *t; =20 - t =3D kthread_create(test_entry, NULL, "kallsyms_test"); + t =3D kthread_run_on_cpu(test_entry, NULL, 0, "kallsyms_test"); if (IS_ERR(t)) { pr_info("Create kallsyms selftest task failed\n"); return PTR_ERR(t); } - kthread_bind(t, 0); - wake_up_process(t); =20 return 0; } --=20 2.46.0