<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 12, 2022 at 8:46 PM Richard Palethorpe via ltp <<a href="mailto:ltp@lists.linux.it">ltp@lists.linux.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Signed-off-by: Richard Palethorpe <<a href="mailto:rpalethorpe@suse.com" target="_blank">rpalethorpe@suse.com</a>><br></blockquote><div> </div><div><span class="gmail_default" style="font-size:small"></span>Reviewed-by: Li Wang <<a href="mailto:liwang@redhat.com" target="_blank">liwang@redhat.com</a>></div><div><span class="gmail_default"></span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---<br>
 testcases/kernel/fs/read_all/read_all.c | 4 ++--<br>
 1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/testcases/kernel/fs/read_all/read_all.c b/testcases/kernel/fs/read_all/read_all.c<br>
index d8c68bd33..813991f2c 100644<br>
--- a/testcases/kernel/fs/read_all/read_all.c<br>
+++ b/testcases/kernel/fs/read_all/read_all.c<br>
@@ -168,7 +168,7 @@ static void sanitize_str(char *buf, ssize_t count)<br>
 {<br>
        int i;<br>
<br>
-       for (i = 0; i < MIN(count, MAX_DISPLAY); i++)<br>
+       for (i = 0; i < MIN(count, (ssize_t)MAX_DISPLAY); i++)<br>
                if (!isprint(buf[i]))<br>
                        buf[i] = ' ';<br>
<br>
@@ -439,7 +439,7 @@ static void setup(void)<br>
                tst_brk(TBROK, "The directory argument (-d) is required");<br>
<br>
        if (!worker_count)<br>
-               worker_count = MIN(MAX(tst_ncpus() - 1, 1), max_workers);<br>
+               worker_count = MIN(MAX(tst_ncpus() - 1, 1L), max_workers);<br>
        workers = SAFE_MALLOC(worker_count * sizeof(*workers));<br>
<br>
        if (tst_parse_int(str_worker_timeout, &worker_timeout, 1, INT_MAX)) {<br>
-- <br>
2.36.1<br>
<br>
<br>
-- <br>
Mailing list info: <a href="https://lists.linux.it/listinfo/ltp" rel="noreferrer" target="_blank">https://lists.linux.it/listinfo/ltp</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>