From: Thierry Reding <[email protected]>
The prototype for the main() function is:
int main(int argc, char **argv);
but the mlock2-tests test program lists the arguments in the wrong
order. It gets away with this because the arguments are never used. Fix
it nevertheless to keep recent versions of GCC from complaining.
Signed-off-by: Thierry Reding <[email protected]>
---
tools/testing/selftests/vm/mlock2-tests.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/vm/mlock2-tests.c
b/tools/testing/selftests/vm/mlock2-tests.c
index 2949fd949973..af4bc752797d 100644
--- a/tools/testing/selftests/vm/mlock2-tests.c
+++ b/tools/testing/selftests/vm/mlock2-tests.c
@@ -643,7 +643,7 @@ static int test_mlockall(int (test_function)(bool
call_mlock))
return ret;
}
-int main(char **argv, int argc)
+int main(int argc, char **argv)
{
int ret = 0;
ret += test_mlock_lock();
--
2.4.5
--
To unsubscribe from this list: send the line "unsubscribe linux-api" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html