]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: vDSO: vdso_test_correctness: Fix -Wstrict-prototypes
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 11 Jun 2025 10:33:57 +0000 (12:33 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 1 Jul 2025 13:50:42 +0000 (15:50 +0200)
commit58265d6424c69daf32ed96288709b23f7538c3e2
treed55e307c02124b5dc9bc9c605860001d0a6d1c44
parent8863cd78a0f10b5b81ca91a558b7e70bcb66e859
selftests: vDSO: vdso_test_correctness: Fix -Wstrict-prototypes

Functions definitions without any argument list produce a warning with
-Wstrict-prototypes:

vdso_test_correctness.c:111:13: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
  111 | static void fill_function_pointers()
      |             ^~~~~~~~~~~~~~~~~~~~~~

Explicitly use an empty argument list.

Now that all selftests a free of this warning, enable it in the Makefile.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250611-selftests-vdso-fixes-v3-7-e62e37a6bcf5@linutronix.de
tools/testing/selftests/vDSO/Makefile
tools/testing/selftests/vDSO/vdso_test_correctness.c