* [PATCH] userfaultfd: selftest: fix compiler warning
@ 2019-05-27 15:18 ` alakesh.haloi
0 siblings, 0 replies; 9+ messages in thread
From: Alakesh Haloi @ 2019-05-27 15:18 UTC (permalink / raw)
To: linux-kselftest, linux-kernel, Peter Xu, Andrew Morton,
Mike Rapoport, Shuah Khan
Fixes following compiler warning
userfaultfd.c: In function ‘usage’:
userfaultfd.c:126:2: warning: format not a string literal and no format
arguments [-Wformat-security]
fprintf(stderr, examples);
Signed-off-by: Alakesh Haloi <alakesh.haloi@gmail.com>
---
tools/testing/selftests/vm/userfaultfd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c
index 5d1db824f73a..b3e6497b080c 100644
--- a/tools/testing/selftests/vm/userfaultfd.c
+++ b/tools/testing/selftests/vm/userfaultfd.c
@@ -123,7 +123,7 @@ static void usage(void)
fprintf(stderr, "Supported <test type>: anon, hugetlb, "
"hugetlb_shared, shmem\n\n");
fprintf(stderr, "Examples:\n\n");
- fprintf(stderr, examples);
+ fprintf(stderr, "%s", examples);
exit(1);
}
--
2.17.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH] userfaultfd: selftest: fix compiler warning
@ 2019-05-27 15:18 ` alakesh.haloi
0 siblings, 0 replies; 9+ messages in thread
From: alakesh.haloi @ 2019-05-27 15:18 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 860 bytes --]
Fixes following compiler warning
userfaultfd.c: In function ‘usage’:
userfaultfd.c:126:2: warning: format not a string literal and no format
arguments [-Wformat-security]
fprintf(stderr, examples);
Signed-off-by: Alakesh Haloi <alakesh.haloi at gmail.com>
---
tools/testing/selftests/vm/userfaultfd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c
index 5d1db824f73a..b3e6497b080c 100644
--- a/tools/testing/selftests/vm/userfaultfd.c
+++ b/tools/testing/selftests/vm/userfaultfd.c
@@ -123,7 +123,7 @@ static void usage(void)
fprintf(stderr, "Supported <test type>: anon, hugetlb, "
"hugetlb_shared, shmem\n\n");
fprintf(stderr, "Examples:\n\n");
- fprintf(stderr, examples);
+ fprintf(stderr, "%s", examples);
exit(1);
}
--
2.17.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH] userfaultfd: selftest: fix compiler warning
@ 2019-05-27 15:18 ` alakesh.haloi
0 siblings, 0 replies; 9+ messages in thread
From: Alakesh Haloi @ 2019-05-27 15:18 UTC (permalink / raw)
Fixes following compiler warning
userfaultfd.c: In function ‘usage’:
userfaultfd.c:126:2: warning: format not a string literal and no format
arguments [-Wformat-security]
fprintf(stderr, examples);
Signed-off-by: Alakesh Haloi <alakesh.haloi at gmail.com>
---
tools/testing/selftests/vm/userfaultfd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c
index 5d1db824f73a..b3e6497b080c 100644
--- a/tools/testing/selftests/vm/userfaultfd.c
+++ b/tools/testing/selftests/vm/userfaultfd.c
@@ -123,7 +123,7 @@ static void usage(void)
fprintf(stderr, "Supported <test type>: anon, hugetlb, "
"hugetlb_shared, shmem\n\n");
fprintf(stderr, "Examples:\n\n");
- fprintf(stderr, examples);
+ fprintf(stderr, "%s", examples);
exit(1);
}
--
2.17.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] userfaultfd: selftest: fix compiler warning
2019-05-27 15:18 ` alakesh.haloi
(?)
@ 2019-05-28 2:17 ` peterx
-1 siblings, 0 replies; 9+ messages in thread
From: Peter Xu @ 2019-05-28 2:17 UTC (permalink / raw)
To: Alakesh Haloi
Cc: linux-kselftest, linux-kernel, Andrew Morton, Mike Rapoport, Shuah Khan
On Mon, May 27, 2019 at 03:18:59PM +0000, Alakesh Haloi wrote:
> Fixes following compiler warning
>
> userfaultfd.c: In function ‘usage’:
> userfaultfd.c:126:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> fprintf(stderr, examples);
>
> Signed-off-by: Alakesh Haloi <alakesh.haloi@gmail.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
--
Peter Xu
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH] userfaultfd: selftest: fix compiler warning
@ 2019-05-28 2:17 ` peterx
0 siblings, 0 replies; 9+ messages in thread
From: peterx @ 2019-05-28 2:17 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 404 bytes --]
On Mon, May 27, 2019 at 03:18:59PM +0000, Alakesh Haloi wrote:
> Fixes following compiler warning
>
> userfaultfd.c: In function ‘usage’:
> userfaultfd.c:126:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> fprintf(stderr, examples);
>
> Signed-off-by: Alakesh Haloi <alakesh.haloi at gmail.com>
Reviewed-by: Peter Xu <peterx at redhat.com>
--
Peter Xu
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH] userfaultfd: selftest: fix compiler warning
@ 2019-05-28 2:17 ` peterx
0 siblings, 0 replies; 9+ messages in thread
From: Peter Xu @ 2019-05-28 2:17 UTC (permalink / raw)
On Mon, May 27, 2019@03:18:59PM +0000, Alakesh Haloi wrote:
> Fixes following compiler warning
>
> userfaultfd.c: In function ‘usage’:
> userfaultfd.c:126:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> fprintf(stderr, examples);
>
> Signed-off-by: Alakesh Haloi <alakesh.haloi at gmail.com>
Reviewed-by: Peter Xu <peterx at redhat.com>
--
Peter Xu
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] userfaultfd: selftest: fix compiler warning
2019-05-27 15:18 ` alakesh.haloi
(?)
@ 2019-05-28 5:33 ` rppt
-1 siblings, 0 replies; 9+ messages in thread
From: Mike Rapoport @ 2019-05-28 5:33 UTC (permalink / raw)
To: Alakesh Haloi
Cc: linux-kselftest, linux-kernel, Peter Xu, Andrew Morton,
Mike Rapoport, Shuah Khan
On Mon, May 27, 2019 at 03:18:59PM +0000, Alakesh Haloi wrote:
> Fixes following compiler warning
>
> userfaultfd.c: In function ‘usage’:
> userfaultfd.c:126:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> fprintf(stderr, examples);
>
> Signed-off-by: Alakesh Haloi <alakesh.haloi@gmail.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
> ---
> tools/testing/selftests/vm/userfaultfd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c
> index 5d1db824f73a..b3e6497b080c 100644
> --- a/tools/testing/selftests/vm/userfaultfd.c
> +++ b/tools/testing/selftests/vm/userfaultfd.c
> @@ -123,7 +123,7 @@ static void usage(void)
> fprintf(stderr, "Supported <test type>: anon, hugetlb, "
> "hugetlb_shared, shmem\n\n");
> fprintf(stderr, "Examples:\n\n");
> - fprintf(stderr, examples);
> + fprintf(stderr, "%s", examples);
> exit(1);
> }
>
> --
> 2.17.1
>
--
Sincerely yours,
Mike.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH] userfaultfd: selftest: fix compiler warning
@ 2019-05-28 5:33 ` rppt
0 siblings, 0 replies; 9+ messages in thread
From: rppt @ 2019-05-28 5:33 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1060 bytes --]
On Mon, May 27, 2019 at 03:18:59PM +0000, Alakesh Haloi wrote:
> Fixes following compiler warning
>
> userfaultfd.c: In function ‘usage’:
> userfaultfd.c:126:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> fprintf(stderr, examples);
>
> Signed-off-by: Alakesh Haloi <alakesh.haloi at gmail.com>
Reviewed-by: Mike Rapoport <rppt at linux.ibm.com>
> ---
> tools/testing/selftests/vm/userfaultfd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c
> index 5d1db824f73a..b3e6497b080c 100644
> --- a/tools/testing/selftests/vm/userfaultfd.c
> +++ b/tools/testing/selftests/vm/userfaultfd.c
> @@ -123,7 +123,7 @@ static void usage(void)
> fprintf(stderr, "Supported <test type>: anon, hugetlb, "
> "hugetlb_shared, shmem\n\n");
> fprintf(stderr, "Examples:\n\n");
> - fprintf(stderr, examples);
> + fprintf(stderr, "%s", examples);
> exit(1);
> }
>
> --
> 2.17.1
>
--
Sincerely yours,
Mike.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH] userfaultfd: selftest: fix compiler warning
@ 2019-05-28 5:33 ` rppt
0 siblings, 0 replies; 9+ messages in thread
From: Mike Rapoport @ 2019-05-28 5:33 UTC (permalink / raw)
On Mon, May 27, 2019@03:18:59PM +0000, Alakesh Haloi wrote:
> Fixes following compiler warning
>
> userfaultfd.c: In function ‘usage’:
> userfaultfd.c:126:2: warning: format not a string literal and no format
> arguments [-Wformat-security]
> fprintf(stderr, examples);
>
> Signed-off-by: Alakesh Haloi <alakesh.haloi at gmail.com>
Reviewed-by: Mike Rapoport <rppt at linux.ibm.com>
> ---
> tools/testing/selftests/vm/userfaultfd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c
> index 5d1db824f73a..b3e6497b080c 100644
> --- a/tools/testing/selftests/vm/userfaultfd.c
> +++ b/tools/testing/selftests/vm/userfaultfd.c
> @@ -123,7 +123,7 @@ static void usage(void)
> fprintf(stderr, "Supported <test type>: anon, hugetlb, "
> "hugetlb_shared, shmem\n\n");
> fprintf(stderr, "Examples:\n\n");
> - fprintf(stderr, examples);
> + fprintf(stderr, "%s", examples);
> exit(1);
> }
>
> --
> 2.17.1
>
--
Sincerely yours,
Mike.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2019-05-28 5:34 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-27 15:18 [PATCH] userfaultfd: selftest: fix compiler warning Alakesh Haloi
2019-05-27 15:18 ` Alakesh Haloi
2019-05-27 15:18 ` alakesh.haloi
2019-05-28 2:17 ` Peter Xu
2019-05-28 2:17 ` Peter Xu
2019-05-28 2:17 ` peterx
2019-05-28 5:33 ` Mike Rapoport
2019-05-28 5:33 ` Mike Rapoport
2019-05-28 5:33 ` rppt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.