Skip to content

Commit 7dff275

Browse files
committed
Merge tag 'kcsan-20250728-v6.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/melver/linux
Pull Kernel Concurrency Sanitizer (KCSAN) update from Marco Elver: - A single fix to silence an uninitialized variable warning * tag 'kcsan-20250728-v6.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/melver/linux: kcsan: test: Initialize dummy variable
2 parents 53564f4 + 9872916 commit 7dff275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/kcsan/kcsan_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ static void test_barrier_nothreads(struct kunit *test)
533533
struct kcsan_scoped_access *reorder_access = NULL;
534534
#endif
535535
arch_spinlock_t arch_spinlock = __ARCH_SPIN_LOCK_UNLOCKED;
536-
atomic_t dummy;
536+
atomic_t dummy = ATOMIC_INIT(0);
537537

538538
KCSAN_TEST_REQUIRES(test, reorder_access != NULL);
539539
KCSAN_TEST_REQUIRES(test, IS_ENABLED(CONFIG_SMP));

0 commit comments

Comments
 (0)