From patchwork Tue Jul 12 12:46:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Palethorpe X-Patchwork-Id: 1655403 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=susede1 header.b=MGosue6L; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Lj0r65YFPz9sB4 for ; Tue, 12 Jul 2022 22:46:46 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 2E2683CA2BE for ; Tue, 12 Jul 2022 14:46:44 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [217.194.8.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 772703CA249 for ; Tue, 12 Jul 2022 14:46:31 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-5.smtp.seeweb.it (Postfix) with ESMTPS id 16C046006C6 for ; Tue, 12 Jul 2022 14:46:30 +0200 (CEST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 32EC4200A4; Tue, 12 Jul 2022 12:46:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1657629989; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SU5q37VmdSS+kJ/gOvnueftdzyqdYre6nemvBpAI4HQ=; b=MGosue6LwJwXcbYLN/DjinmDYoJID/1nDcNITaA+NqGAmOOvsrC+o6bC8/GFcGJMRFIHtU Rxd1QUwG+p5rQ6TqL87nz+UIBY29jiYPr9MYgMOe4Xg8SeAYDd7F4T9F1VIm4SzvL9CIS3 L2d6hLnzv1RFatbm3Xm2FulfkL/9cP8= Received: from g78.suse.de (unknown [10.163.24.226]) by relay2.suse.de (Postfix) with ESMTP id ED5972C141; Tue, 12 Jul 2022 12:46:28 +0000 (UTC) To: ltp@lists.linux.it Date: Tue, 12 Jul 2022 13:46:17 +0100 Message-Id: <20220712124617.23139-2-rpalethorpe@suse.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220712124617.23139-1-rpalethorpe@suse.com> References: <20220712124617.23139-1-rpalethorpe@suse.com> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-5.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-5.smtp.seeweb.it Subject: [LTP] [PATCH 2/2] read_all: Fix type warnings X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Richard Palethorpe via ltp From: Richard Palethorpe Reply-To: Richard Palethorpe Cc: Richard Palethorpe Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Signed-off-by: Richard Palethorpe Reviewed-by: Li Wang Reviewed-by: Petr Vorel --- testcases/kernel/fs/read_all/read_all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/kernel/fs/read_all/read_all.c b/testcases/kernel/fs/read_all/read_all.c index d8c68bd33..813991f2c 100644 --- a/testcases/kernel/fs/read_all/read_all.c +++ b/testcases/kernel/fs/read_all/read_all.c @@ -168,7 +168,7 @@ static void sanitize_str(char *buf, ssize_t count) { int i; - for (i = 0; i < MIN(count, MAX_DISPLAY); i++) + for (i = 0; i < MIN(count, (ssize_t)MAX_DISPLAY); i++) if (!isprint(buf[i])) buf[i] = ' '; @@ -439,7 +439,7 @@ static void setup(void) tst_brk(TBROK, "The directory argument (-d) is required"); if (!worker_count) - worker_count = MIN(MAX(tst_ncpus() - 1, 1), max_workers); + worker_count = MIN(MAX(tst_ncpus() - 1, 1L), max_workers); workers = SAFE_MALLOC(worker_count * sizeof(*workers)); if (tst_parse_int(str_worker_timeout, &worker_timeout, 1, INT_MAX)) {