From patchwork Wed Jun 24 23:12:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Santos X-Patchwork-Id: 1316645 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=pobox.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=m7HLLW5Z; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=pobox.com header.i=@pobox.com header.a=rsa-sha1 header.s=sasl header.b=C6kz071N; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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 ozlabs.org (Postfix) with ESMTPS id 49sfFM5Zhdz9sRW for ; Thu, 25 Jun 2020 09:17:43 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=NXPdyE7AaRetuIEf2ROVcUlgUi6m8J3aVJwu6xPCpCo=; b=m7HLLW5Z6qv/t3FgKD/R7yJ5bs /5LRDT47ODSVnhiKZJYS42G7KVlDZ2CNVB8nzfFLr6HpJDhRlsWEMqZ6XmQDhu/cK5RxzRQw7LHNY a0b7HnJuBSoqpfNpsrDM1tmiXLoJEfFRUBG7U/P/yTHw5zLVOts0HIyjcF9hjHm/JVUXvd69DCs0h MB+SE/iNQkhn0+m05Klsqtk0om/sgKgttm2aoAxDwYkoIHLn08buORc9++mhXPWTiuYV0kntOsSLT E58tpP8UFcuglSmaqaxqINb3IXsy9lgnUUDyCbzGPbdrynYaY8RlXqyFrlvOTwq2D843quzhsmpmx YXTWoEWQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1joEbg-00012G-29; Wed, 24 Jun 2020 23:15:04 +0000 Received: from pb-smtp1.pobox.com ([64.147.108.70]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1joEbd-0000xs-QW for openwrt-devel@lists.openwrt.org; Wed, 24 Jun 2020 23:15:02 +0000 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id C8B5C67B12; Wed, 24 Jun 2020 19:14:53 -0400 (EDT) (envelope-from daniel.santos@pobox.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=sasl; bh=lSct+Xesr+NwSx5mJoAaTRinNQs=; b=C6kz071NWNTJnQN5Ff/b Ng/hZtADZBnfLWSAO3ub7p9D2cuXAyyIu0bPS6uiDpZa4Athwg/wfs7JEv8nToGY edOUPS0/FHmM9f5Wql69phfy9N69MuTBdWVtX61s3ICeSdu3FrdU4SoykNaCNf6L dnXN4zChtdESbu5uC8sSo0s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; q=dns; s=sasl; b=jcTr4UFt5kKgCjDirOWYt5FkMDVjkUZnbcqY75++oRsj9O +jPTlVXOQq9/V6szvDpnlotEKhGcat4HKV83dhO6mxMDf/GPVr1E3bbTFQiWS/Jl cMc/G28tHaRmMqvf9vWtNEhFbgs8Qe1DkDXaq8qaOca93gYP+3sIZ38W7J1K8= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id C06EC67B0F; Wed, 24 Jun 2020 19:14:53 -0400 (EDT) (envelope-from daniel.santos@pobox.com) Received: from localhost.localdomain (unknown [76.183.130.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 1CFD767B0E; Wed, 24 Jun 2020 19:14:53 -0400 (EDT) (envelope-from daniel.santos@pobox.com) From: Daniel Santos To: openwrt-devel@lists.openwrt.org Subject: [PATCH] musl: fix signed compare warning Date: Wed, 24 Jun 2020 18:12:30 -0500 Message-Id: <20200624231230.17406-1-daniel.santos@pobox.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-Pobox-Relay-ID: 82A74AF0-B670-11EA-8DA4-C28CBED8090B-06139138!pb-smtp1.pobox.com X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [64.147.108.70 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Santos , daniel@gsat.us Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Signed-off-by: Daniel Santos --- .../210-Fix-signed-compare-warning.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 toolchain/musl/patches/210-Fix-signed-compare-warning.patch diff --git a/toolchain/musl/patches/210-Fix-signed-compare-warning.patch b/toolchain/musl/patches/210-Fix-signed-compare-warning.patch new file mode 100644 index 0000000000..5d5d2f865e --- /dev/null +++ b/toolchain/musl/patches/210-Fix-signed-compare-warning.patch @@ -0,0 +1,26 @@ +From 7627aac4e5381546baeb0d6bef6675e9107cd751 Mon Sep 17 00:00:00 2001 +From: Daniel Santos +Date: Sat, 25 Apr 2020 12:18:15 -0500 +Subject: Fix signed compare warning + +Signed-off-by: Daniel Santos +--- + src/thread/__timedwait.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/thread/__timedwait.c b/src/thread/__timedwait.c +index 666093be..9829b93e 100644 +--- a/src/thread/__timedwait.c ++++ b/src/thread/__timedwait.c +@@ -38,7 +38,7 @@ int __timedwait_cp(volatile int *addr, int val, + if (priv) priv = FUTEX_PRIVATE; + + if (at) { +- if (at->tv_nsec >= 1000000000UL) return EINVAL; ++ if ((unsigned long)at->tv_nsec >= 1000000000UL) return EINVAL; + if (__clock_gettime(clk, &to)) return EINVAL; + to.tv_sec = at->tv_sec - to.tv_sec; + if ((to.tv_nsec = at->tv_nsec - to.tv_nsec) < 0) { +-- +2.24.1 +