From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796149049; b=0KuGk3entuD4S+UimtXBaMEugIRy/s4LUSM6Ak86dngzdPOYmDXqzmjhxtmiVqoaCwVA kV2SEn+k0N+reHXi7y9mm/zEMLYsd5duwJXJ2KGm0bhJYz66jaUmlfAT4kyj8nYrg8rxk Vs/C4Y6LSg/bDTzbq0C32tyu5MCYIG59AFQU+fdt6ceu/q40rAxGyHyArp+63cN6Hfjb3 zoHs5PUpKRyhcYJ1hpbiMm9ihsg/oKAmsAJENZ1+Dnyyw5sFOkJ/yiJdQEB3nr94aF4vd iSkUsZq3YBf9E/pBL1V4zbjqMK6SEXSV7uJkq58T6vYlWNc263L/okkQNt3PbXjP8zQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796149049; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=65kv9/s+n/PCc97j9/VwcjuLKF//vho0tgVOVAWHFC4=; b=QSIqs0gEDOCv1gCHsvLhdW0BAjDdpmSWuvAFwz80EyjYdQxJBvR+Ojop1ySYeYLAQx1F uOR7yWfDFO3vBWxNHGesbgFJbpQxAW+pAlI08DCv3GlJpu6yMU6jvOf6/g059VwR+Gvrd cFfH69GI4P8UteELDntf2LSJLxCJKwfnX0PQxIqS9rOkQvmLH1sDlgVT/IydNQUqI3iGu LsgwBf8LbeysQk6s+yohoyJ+gHZEg38Uzm0i3my2OyQ/Sv7GyQ+RrvICfDwfovN4R+HCO KOkspNpG+9YMSpCptqKKM0ROlEz/q6ly9XPbh5NleWhd/iNht3r0aAVo1Kc5ZrwgNqw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=QWFeH9ev; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6AC2606A330 for ; Tue, 1 Dec 2026 18:17:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=QWFeH9ev Received: by smtp.kernel.org (Postfix) with ESMTPSA id 554F61F00925; Tue, 1 Dec 2026 18:17:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796149049; bh=65kv9/s+n/PCc97j9/VwcjuLKF//vho0tgVOVAWHFC4=; h=Date:To:From:In-Reply-To:References:Subject; b=QWFeH9evYmhiMPXlH4HrTgCvJ1Hliuvu06cVbckaeo/uuggLs2bZiUDPYg4ZESPh+ uirR+8sQVgcBp8r6VKfPdGtXLmuwJ0c3bYqKBppXvA5DN54QmbBewj29VVarSvVehf hrxoJ3BYXI4IoJ3yriTRq6NbEZybxJfyy+zxZzC4= Date: Tue, 01 Dec 2026 10:17:28 -0800 To: mm-commits@vger.kernel.org,shuah@kernel.org,nathan@kernel.org, cyyzero16@gmail.com,balbirs@nvidia.com,sashal@kernel.org, akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20261201180855.740952-2-sashal@kernel.org> References: <20261201180855.740952-2-sashal@kernel.org> Subject: + selftests-acct-make-the-busy-loop-sink-volatile.patch added to mm-nonmm-unstable branch Message-Id: <20261201181729.554F61F00925@smtp.kernel.org> X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list The patch titled Subject: selftests/acct: make the busy loop sink volatile has been added to the -mm mm-nonmm-unstable branch. Its filename is selftests-acct-make-the-busy-loop-sink-volatile.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-acct-make-the-busy-loop-sink-volatile.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there most days ------------------------------------------------------ From: Sasha Levin Subject: selftests/acct: make the busy loop sink volatile Date: Tue, 1 Dec 2026 13:08:50 -0500 burn_cpu_for_ns() stores the result of its busy loop in busy_sink, which nothing reads. clang 23 warns about that: taskstats_fill_stats_tgid.c:31:22: warning: variable 'busy_sink' set but not used [-Wunused-but-set-global] Make busy_sink volatile, so that the store has to happen. Link: https://patch.msgid.link/20261201180855.740952-2-sashal@kernel.org Fixes: 20e4b31f8e83 ("selftests/acct: add taskstats TGID retention test") Signed-off-by: Sasha Levin Signed-off-by: Andrew Morton Cc: Shuah Khan Cc: Yiyang Chen Cc: Balbir Singh Cc: Nathan Chancellor tools/testing/selftests/acct/taskstats_fill_stats_tgid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/acct/taskstats_fill_stats_tgid.c~selftests-acct-make-the-busy-loop-sink-volatile +++ a/tools/testing/selftests/acct/taskstats_fill_stats_tgid.c @@ -28,7 +28,7 @@ struct worker_ctx { bool release; }; -static unsigned long busy_sink; +static volatile unsigned long busy_sink; static uint64_t timespec_diff_ns(const struct timespec *start, const struct timespec *end) _ Patches currently in -mm which might be from sashal@kernel.org are selftests-proc-cast-the-procmap_query-address-through-uintptr_t.patch selftests-mm-fix-pointer-width-warnings-on-32-bit-architectures.patch selftests-mm-uffd-wp-mremap-keep-the-thp-sizes-in-unsigned-long.patch kselftest-alloc_tag-use-the-ll64-types-on-powerpc64.patch selftests-proc-search-the-kernel-headers-before-the-tools-copies.patch selftests-prctl-select-the-tests-by-arch-alone.patch selftests-prctl-skip-the-anonymous-vma-naming-test-when-unsupported.patch selftests-kexec-select-tests-using-the-target-compiler.patch selftests-size-use-nolibc-startup-and-syscall-wrappers.patch selftests-acct-make-the-busy-loop-sink-volatile.patch