Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1224181rdb; Sun, 7 Jan 2024 09:04:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAQ/RQ6ePQ7p5sCJXs3G5EA0MOF+OA6D2XeKTIwE2trmIeQGYAtEGB9m5iOmZPsSTIAz83 X-Received: by 2002:a05:6358:7211:b0:174:ef00:94ed with SMTP id h17-20020a056358721100b00174ef0094edmr3773074rwa.2.1704647098407; Sun, 07 Jan 2024 09:04:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704647098; cv=none; d=google.com; s=arc-20160816; b=nSsHJtnREqPEDYFwo2QYiSDwpXC4tzW/QdW50MeReRk3xSr8QgoCGmoyyRLElYkZsU rjodmcwvmphNZuoxSlrfYos9F5FGGugj0u+e2vEnVzVWSkqAst7pP/kCTI7O1QENNruR JtbN51f6jYN7NUdDYGydHXnIkdJJE+s8KX1s+V7HjsGjwQf9VlzKNux30VmB1SzIYlBz dl/QMUfONl4C29WiPgpXbRV1ge5GN6Rxs2iK+VjFOspL08zulComD7OAdrOQ9uIguqyN qegiHF7Lu9E96IP7jsbFOxFl/7XCtE/wuLV2s8AfdvTewgl94N3J2R3jAa83mYJxrZvi dPEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5dgnZ5klEgAqVF8aztwCvuZfPILFdvfgTNWJTohAn/E=; fh=Yqzv2gtORkZ2jWS5eSlqA4L6gnI/YF7q7HxrJBOOJzU=; b=JIV1hhvn90zON6ur1pjMDX+HowC9CD4n4A6AwUnNtxYiArnfbOu2CF7JWjJhDlmxwH 28/1/6uG5kUTh9L3347JOp9ODwni1McDkm/j3sy8KI44aN5gPmbuet/qWXSeHuEerQPz qB7/IqYtpq5+tiQcbJTlzTyNqh5ePTpc8TLupFBOf3csXNJRVB8+9RTJeVx2LRkvE9zA 5CgbrdZaLlJ0SzjEOkqWZ1NGcmpfaBWJJKv694u8OYsuE5V+9QdSghMLIP8vJz7QlXf5 qLxgsgA10uSsJcwXNeDPBkIlVGn2RuyZcZxW/cPb3WOtoj89iscp/Pi92erU8dFiTDJJ J+Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@subdimension.ro header.s=skycaves header.b="L+WlE/vV"; spf=pass (google.com: domain of linux-kernel+bounces-18927-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18927-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p2-20020a17090ac00200b0028d02edf66dsi4294728pjt.80.2024.01.07.09.04.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 09:04:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18927-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@subdimension.ro header.s=skycaves header.b="L+WlE/vV"; spf=pass (google.com: domain of linux-kernel+bounces-18927-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18927-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C8AB2B215CE for ; Sun, 7 Jan 2024 17:04:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E721813AE6; Sun, 7 Jan 2024 17:04:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=subdimension.ro header.i=@subdimension.ro header.b="L+WlE/vV" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.subdimension.ro (skycaves.subdimension.ro [172.104.132.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95E8F13ADE; Sun, 7 Jan 2024 17:04:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=subdimension.ro Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=subdimension.ro Received: from sunspire (unknown [188.24.94.216]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mail.subdimension.ro (Postfix) with ESMTPSA id 6EAFC28B53B; Sun, 7 Jan 2024 17:04:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=subdimension.ro; s=skycaves; t=1704647080; bh=+D2bVZyjV2n3god9rjHq+Xi5S7UKeQSid5K8Mg1COlM=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=L+WlE/vV3Dg0ITCIJA7gljoY5p+eBINLaJpK0DGCBNEX4LdoE/Sp0A2HsBAs5QDFq +CaBmelB6NQu0+m553pGuh3HvvtENNsTz/qX/0CtWdJBegYK9q/Ktwyk+oJM3yrCLH jPK1t65zDN0nBKJfPLMpaQHW2bosBjzx7g+Avk5w= Date: Sun, 7 Jan 2024 19:04:39 +0200 From: Petre Rodan To: Jonathan Cameron Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Lars-Peter Clausen Subject: Re: [PATCH 1/1] tools: iio: fix iio_generic_buffer Message-ID: References: <20240104101253.25896-1-petre.rodan@subdimension.ro> <20240104101253.25896-2-petre.rodan@subdimension.ro> <20240107155333.0e43b041@jic23-huawei> <20240107170026.6baccc49@jic23-huawei> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="h7AGFP2sAjLPuOv5" Content-Disposition: inline In-Reply-To: <20240107170026.6baccc49@jic23-huawei> --h7AGFP2sAjLPuOv5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Jonathan, On Sun, Jan 07, 2024 at 05:00:26PM +0000, Jonathan Cameron wrote: > > On Sun, Jan 07, 2024 at 03:53:33PM +0000, Jonathan Cameron wrote: > > > On Thu, 4 Jan 2024 12:12:45 +0200 > > > Petre Rodan wrote: > > > =20 > > > > Fix code flow problem and floating point exception caused by improp= er > > > > directory stream positioning. > > > >=20 > > > > Fixes: ("staging: iio: update example application.") > > > > Signed-off-by: Petre Rodan =20 > > > Hi Petre, > > >=20 > > > This doesn't really explain 'why' seeekdir(dp, 0) is wrong. > > > My assumption is that telldir() would not have returned 0 on this par= ticular > > > system? Could you confirm that and update the message to explain why > > > seekdir(dp, 0) is not equivalent to rewinddir(dp). =20 > >=20 > > it looks like there is a 32-bit specific bug in one of the glibc patche= s that > > the stable Gentoo Linux is using [1]. telldir returns (u32)(-1) if seek= dir is > > used which ends up in a floating point exception. > >=20 > > it so happens that the rewinddir() function (which is equivalent) works > > correctly. so it is a fix for Gentoo users and should not impact anyone= else. > >=20 > > [1] https://sourceware.org/bugzilla/show_bug.cgi?id=3D31212 > >=20 > > my very best regards, > > peter >=20 > I'd be happy to take the same change as a cleanup if you want to resubmit= it > with a different patch description. sure, I will resubmit it, but tomorrow morning. best regards, peter --h7AGFP2sAjLPuOv5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE2Ap/wXYVGTXsPl+pzyaZmYROfzAFAmWa2acACgkQzyaZmYRO fzBFIxAAkYFjUkr27o/sG18/liGK3WV9HqanIAI5hnU8vmBAyJhG50zekJX6Golc 6WXi4VLWHn1ZpItx6Bw+3+G3k0kPD6UvfcbQ5tyKcc46Klby7ZEuSASWQdSD6IVQ XhBbyg4WQfrALh2EOdR5CnAZDMMDXU0zaGMcNEAUXoQPlWszZzCA9x+jYUR7B5l7 UCOTgPwlSgNN2T4kBjUFOKsCYR8SAueAHxh7tQnwBDmAAwD1Cd1yWXDEd1osA8kK kibl3R6mNroH90jM0X8sW4++hx7sY4pZL5sHE+jyhtn/Um7jyFP2jrFq9eLirGFd fUMiwJ5u4X+Op95ZnK6RTVFG5nKs5awJ7Pi1kj3HrcomDZsXMWDUfK/aOJWWGu8b trJ2zlSgpQLJZgEvwNb97eIF3tyEWyFRehSegCbrwzJPs9HifTa/0nvkYLs7JPUo mcEi14I+PnwqMVhVCmNbV8Q4hg+qgSY4tzG5HmH4qnjViZy6DeqQlLvgeeAUkeBl y7L9mtZgRPq6RRJOj6dVmqVJDOedQEGZguUXqphN7v7LHJ8grzb1iooxA+PApkhM hzlDsQfmzMhqq9Pkh1MiuQEArW8ZeKAuWz6RyFMKRyiUazlnby87WBFqgeTl0774 HhiB352idWW02TLWmgMGHBjlGuS/w5fr+XC9JiJ4D+JzJg2b3X0= =d7Ch -----END PGP SIGNATURE----- --h7AGFP2sAjLPuOv5--