From nobody Tue Feb 10 23:01:12 2026 Received: from SHSQR01.spreadtrum.com (unknown [222.66.158.135]) (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 EA83C325720 for ; Mon, 9 Feb 2026 08:57:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=222.66.158.135 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770627425; cv=none; b=N3ZtmqFWEQgf/OLQrrrDhTjzkEQc9mYrSbfANEp5JJvQ9vouMoQ+33pE5OKgSxg8QC4hYdTe1RFRMKgY+DYobmA9tv462zIf3+2FShlJ5Pj/t1fAghM/f5ut2iZvd/DPdu2cYQbL6sS8G+hFquWZolUmRNcaJtkDBn0LFvLwZfM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770627425; c=relaxed/simple; bh=1LuO5Knnshh13dhq3TT+NZXbpE0lGhq8TgeEl2cU6KQ=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=i+2Ey3ImuwA6puRjxeYnwhDiwy8sX7uEObp6G5VYSRWDr4yFWY72esnYEPTxQy9HKGTcw2ZfLyIOS/ExIssMqRrTlUVa19XMHVHYG2UGLflxe2w6u9xLgJyMIgXJDMQqPrK6fSchU+P6iXyH4UtNF6dxLzgXKmm5LgMAwFIPaVA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=unisoc.com; spf=pass smtp.mailfrom=unisoc.com; dkim=pass (2048-bit key) header.d=unisoc.com header.i=@unisoc.com header.b=NkWSBAf5; arc=none smtp.client-ip=222.66.158.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=unisoc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=unisoc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=unisoc.com header.i=@unisoc.com header.b="NkWSBAf5" Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 6198thRs056902; Mon, 9 Feb 2026 16:55:43 +0800 (+08) (envelope-from Xuewen.Yan@unisoc.com) Received: from SHDLP.spreadtrum.com (BJMBX01.spreadtrum.com [10.0.64.7]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4f8dnX0zVkz2Q1PRN; Mon, 9 Feb 2026 16:55:28 +0800 (CST) Received: from BJ10918NBW01.spreadtrum.com (10.0.73.73) by BJMBX01.spreadtrum.com (10.0.64.7) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 9 Feb 2026 16:55:40 +0800 From: Xuewen Yan To: , , , , CC: , , , , , Subject: [RFC PATCH] tools/sched_ext: Use u64 for kind field to fix ARM64 atomic ops Date: Mon, 9 Feb 2026 16:55:36 +0800 Message-ID: <20260209085536.16723-1-xuewen.yan@unisoc.com> X-Mailer: git-send-email 2.25.1 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: SHCAS01.spreadtrum.com (10.0.1.201) To BJMBX01.spreadtrum.com (10.0.64.7) X-MAIL: SHSQR01.spreadtrum.com 6198thRs056902 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unisoc.com; s=default; t=1770627362; bh=BoE2POw/coWzPtTia/y8gs/W+p7UZmXEbNp7M1wnSmU=; h=From:To:CC:Subject:Date; b=NkWSBAf5uZkyMT1SuN73xia5sgxMjN5l5ITaCA5zY2CUK2Bncu0qf5tKWMSEXBaxJ 8aZ02lrGgxjOUZAWSMEKWuOC5RWPQ5pBUrsq4XnPizGss5Z/xQ/vtNA4He5e9+nSvX 19VaD1/iyNwOzcV2f78ECEHqgJZ6WC8RWUckHB/DcgjCm33J0rPcq24atLLGw+1Sf7 ud5/hODCXtFP1U/NhUvbPD/umBT+doxDgGv/kzLVLsh6UyTZJ5m9oKz+JZLZBbvGxu V+NIHOU03olCBhna+XY3PWdDLbgQnIgDPXNJ+U7jyJmBeORTksFSQ8kM8DZ8J8/Cgw G/D4P7jrrl/AA== Content-Type: text/plain; charset="utf-8" From: Guohua Yan There are following compile errors in arm64: bpftools/CORE/scx_simple.bpf.c:144:2: error: unsupported atomic operation, = please use 64 bit version 144 | UEI_RECORD(uei, ei); | ^ Convert kind from int to u64 to resolve ARM64 atomic operation limitations. ARM64 primarily supports 64-bit atomic operations. Signed-off-by: Guohua Yan Signed-off-by: Xuewen Yan --- tools/sched_ext/include/scx/user_exit_info_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sched_ext/include/scx/user_exit_info_common.h b/tools/sc= hed_ext/include/scx/user_exit_info_common.h index 2d0981aedd89..5bad20faade1 100644 --- a/tools/sched_ext/include/scx/user_exit_info_common.h +++ b/tools/sched_ext/include/scx/user_exit_info_common.h @@ -21,7 +21,7 @@ enum uei_sizes { }; =20 struct user_exit_info { - int kind; + u64 kind; s64 exit_code; char reason[UEI_REASON_LEN]; char msg[UEI_MSG_LEN]; --=20 2.25.1