From nobody Sun Feb 8 03:04:44 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 609CA35CB9C for ; Mon, 12 Jan 2026 14:04:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768226673; cv=none; b=qoie7BqDYDYMxY9SUqVP2rEPHzBQXeCKKoifYFudNJhtqZUQzxtWXafqq5uKBDyjAyEUAMt1Gfnt8z/XZHaGi1IbHmDK5OlxlriQfuXWkfOiKHTRf1cWK20gUl+ucw9w/87CrXAOD60es0GarFX6K6b4UbbPmMFr9j9OSV19Z34= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768226673; c=relaxed/simple; bh=sWoMW8m7CGhJPPMFLZRb5doQeQ5tJkhDP1nvoUc3XA8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VA78fYI0TWKgkWxQw539MlGMcVRyJ6EbIfMSSwSQ21ZhBf+e+x+xd6LGpBeyl3ONl039y32KDcc4h2VTD6gqQoC3x+I2Sm7RuXlO3pNU/K+sd4USSRLreul2bj+HEPtcZylPO39GJY2kMSK6SnY+F5lTFx93CFndt5wvqMDDQnI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=IOBaJMCp; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="IOBaJMCp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1768226671; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=zwQJALMy6SsCin1VPYR2MDv0ePEt6hMfLCiQQuDV/Wc=; b=IOBaJMCp5ADLss21tiGKEEtpErT8cGPxrmYg/UlX/npyLD5UyJhMMoKJCyhA6VOG/U5Hlm 4BnUWRCGLw0t36uHzi90UQjlNZPMLMeQuf7LK5IupNmF9dALRGGT8dtuVEFQq2nYtKGVaJ /O18G620giaB20T2oEPvLoQJWQLg/7U= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-561-pvarjaJ8OgytcgMxSgof5A-1; Mon, 12 Jan 2026 09:04:26 -0500 X-MC-Unique: pvarjaJ8OgytcgMxSgof5A-1 X-Mimecast-MFC-AGG-ID: pvarjaJ8OgytcgMxSgof5A_1768226665 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5F125195605B; Mon, 12 Jan 2026 14:04:25 +0000 (UTC) Received: from gmonaco-thinkpadt14gen3.rmtit.csb (unknown [10.44.33.78]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1B4441800109; Mon, 12 Jan 2026 14:04:22 +0000 (UTC) From: Gabriele Monaco To: linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra Cc: Gabriele Monaco , Phil Auld Subject: [PATCH] sched: Fix build for modules using set_tsk_need_resched() Date: Mon, 12 Jan 2026 15:04:13 +0100 Message-ID: <20260112140413.362202-1-gmonaco@redhat.com> 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-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Content-Type: text/plain; charset="utf-8" Commit adcc3bfa8806 ("sched: Adapt sched tracepoints for RV task model") added a tracepoint to the need_resched action that can be triggered also by set_tsk_need_resched. This function was previously accessible from out-of-tree modules but it's no longer available because the __trace_set_need_resched() symbol is not exported (together with the tracepoint itself, which was exported in a separate patch) and building such modules fails. Export __trace_set_need_resched to modules to fix those build issues. Fixes: adcc3bfa8806 ("sched: Adapt sched tracepoints for RV task model") Cc: Phil Auld Signed-off-by: Gabriele Monaco Reviewed-by: Phil Auld --- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 60afadb6eede..a490d34cc65a 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -1136,6 +1136,7 @@ void __trace_set_need_resched(struct task_struct *cur= r, int tif) { trace_sched_set_need_resched_tp(curr, smp_processor_id(), tif); } +EXPORT_SYMBOL_GPL(__trace_set_need_resched); =20 void resched_curr(struct rq *rq) { base-commit: 0f61b1860cc3f52aef9036d7235ed1f017632193 --=20 2.52.0