diff options
author | Thierry Reding <treding@nvidia.com> | 2015-08-25 14:20:20 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2015-08-25 14:20:20 +1000 |
commit | 9eb738bfe0cc3636e53bfaa5a461d00b0f1373b5 (patch) | |
tree | 5bb2aff912c6821bdf096bb93f17dc77615eef24 /tools | |
parent | 935d819b700cb72a4047a9798e77a48f57742317 (diff) |
selftests: vm: use the right arguments for main()
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 <treding@nvidia.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Eric B Munson <emunson@akamai.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/vm/mlock2-tests.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |