selftests/futex: getopt() requires int as return value.

Mark reported that futex_priv_hash fails on ARM64.
It turns out that the command line parsing does not terminate properly
and ends in the default case assuming an invalid option was passed.

Use an int as the return type for getopt().

Closes: https://lore.kernel.org/all/31869a69-063f-44a3-a079-ba71b2506cce@sirena.org.uk/
Fixes: 3163369407baf ("selftests/futex: Add futex_numa_mpol")
Fixes: cda95faef7bcf ("selftests/futex: Add futex_priv_hash")
Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250528085521.1938355-2-bigeasy@linutronix.de

authored by Sebastian Andrzej Siewior and committed by Peter Zijlstra 1a9dcf69 ec7714e4

+2 -2
+1 -1
tools/testing/selftests/futex/functional/futex_numa_mpol.c
··· 144 144 struct futex32_numa *futex_numa; 145 145 int mem_size, i; 146 146 void *futex_ptr; 147 - char c; 147 + int c; 148 148 149 149 while ((c = getopt(argc, argv, "chv:")) != -1) { 150 150 switch (c) {
+1 -1
tools/testing/selftests/futex/functional/futex_priv_hash.c
··· 130 130 pthread_mutexattr_t mutex_attr_pi; 131 131 int use_global_hash = 0; 132 132 int ret; 133 - char c; 133 + int c; 134 134 135 135 while ((c = getopt(argc, argv, "cghv:")) != -1) { 136 136 switch (c) {