From patchwork Fri Dec 10 15:39:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyril Hrubis X-Patchwork-Id: 1566544 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.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=JUqilXYr; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=JwDloByd; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J9ZmJ71Pnz9sR4 for ; Sat, 11 Dec 2021 02:37:51 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 68FDE3C861B for ; Fri, 10 Dec 2021 16:37:47 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [IPv6:2001:4b78:1:20::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 3DC643C1DB8 for ; Fri, 10 Dec 2021 16:37:44 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (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-2.smtp.seeweb.it (Postfix) with ESMTPS id C7C48601D54 for ; Fri, 10 Dec 2021 16:37:43 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 0262121111 for ; Fri, 10 Dec 2021 15:37:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1639150663; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7Gv8usnXCzuVl6RO9+5GqKaRq9dOub2SGTx35k4nInQ=; b=JUqilXYry1XdZvBrWePwEBpINZSNAO2GhGDc7GhdehE4wxWDlEPs/BdXoOeF0r/JrGLZ1Q +o1qd9xzJ4nJAEK0fh8f5gvUbEsTs1rx2wrP+rcYkN2p6i07fpAfkZ3zP3NNBr4PY29SNj 0RBJe7mCce+p3fQtJ7u1yoXjGLFqJh8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1639150663; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7Gv8usnXCzuVl6RO9+5GqKaRq9dOub2SGTx35k4nInQ=; b=JwDloBydUuxYivVb9ml9Vt6Nurb29c/Fr9cMfwt5qCKGOGjY35to9TRIvrUyTsBzCSxDiR 6QKqtbpwrV6qU0CA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 66BC413E15 for ; Fri, 10 Dec 2021 15:37:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id sPS1F0Z0s2FmZQAAMHmgww (envelope-from ) for ; Fri, 10 Dec 2021 15:37:42 +0000 From: Cyril Hrubis To: ltp@lists.linux.it Date: Fri, 10 Dec 2021 16:39:03 +0100 Message-Id: <20211210153903.7316-1-chrubis@suse.cz> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-2.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 autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-2.smtp.seeweb.it Subject: [LTP] [COMMITTED] [PATCH] dio_sparse: Fix compilation on alternative libc 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: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" The LONG_LONG_MAX is not actually correct macro for the long long limits it should have been LLONG_MAX. Actually I do not have idea where this comes from on my system, but the test fails to compile on Alpine with musl. Signed-off-by: Cyril Hrubis --- testcases/kernel/io/ltp-aiodio/dio_sparse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testcases/kernel/io/ltp-aiodio/dio_sparse.c b/testcases/kernel/io/ltp-aiodio/dio_sparse.c index 7a76f4c16..929adbfba 100644 --- a/testcases/kernel/io/ltp-aiodio/dio_sparse.c +++ b/testcases/kernel/io/ltp-aiodio/dio_sparse.c @@ -69,13 +69,13 @@ static void setup(void) if (tst_parse_int(str_numchildren, &numchildren, 1, INT_MAX)) tst_brk(TBROK, "Invalid number of children '%s'", str_numchildren); - if (tst_parse_filesize(str_writesize, &writesize, 1, LONG_LONG_MAX)) + if (tst_parse_filesize(str_writesize, &writesize, 1, LLONG_MAX)) tst_brk(TBROK, "Invalid write blocks size '%s'", str_writesize); - if (tst_parse_filesize(str_filesize, &filesize, 1, LONG_LONG_MAX)) + if (tst_parse_filesize(str_filesize, &filesize, 1, LLONG_MAX)) tst_brk(TBROK, "Invalid file size '%s'", str_filesize); - if (tst_parse_filesize(str_offset, &offset, 0, LONG_LONG_MAX)) + if (tst_parse_filesize(str_offset, &offset, 0, LLONG_MAX)) tst_brk(TBROK, "Invalid file offset '%s'", str_offset); SAFE_STAT(".", &sb);