Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6676519rdb; Fri, 15 Dec 2023 05:36:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLRrUWjBlHqRM3v2e4VHKLrJENeCmxkyoJQ2Vi7oJTP6hYv7HRcECNezH34/JkAnGpf/Sn X-Received: by 2002:a50:cdd7:0:b0:551:e2a7:8895 with SMTP id h23-20020a50cdd7000000b00551e2a78895mr1347993edj.158.1702647413455; Fri, 15 Dec 2023 05:36:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702647413; cv=none; d=google.com; s=arc-20160816; b=Fh4UXyJSwogRxoMCij2zcrRCwRD++ZmMADejPVlea6tkiKu34jZ2vHuuEnqYczc0ss xwZTpS3gBBGCzUIv3WKy2q8Jl+nAdYrgYm86DSRf7pUHAYJmgiN1eJ311whetS2qu5IJ QYZULrTeB82IkJ9XpfbVzeIZv9N8xS/Ey9E7gExof9qTjUlERHAVvfgkH48Ts0lsqtiy qaHbWtyw+2bETyZWHMrOm9mDshgu+eE3Lna/TIpN45zFY2h9XOZNC3dQdwREXzjcmryX UT5/t73cSo1liD7xjJ+Jb1H6dCrEs7WYWiWPI/vBSvhBHkXAT+qqjIhQVua749ku+4xC gNvw== 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=qmULj2wuWMyxKOnASA3YgXyVd67CHaYz3SXTcpzEcRQ=; fh=UpmxsrcpNAXFU2dVr77h2oOGxOGVi9l0wCjqYWBl5uo=; b=GNSjx8vB2eKGDjqMtri9JmkMrrBwL/wW5arpxx0b6OxA5KZopXXNC/Lv+9LxabLZuR jRvwUzG7G+LjpL2+7y3BVRpGcfl9H1oZ5JEGl9PpnYdaQwlX0UmWoILc4JIIkturVN14 yU50zbMSXtYKlbf6SKVZvnDTvD1LYn9lnkKzUXt42RXS1NjNE9GUmygoxQscwYNh381V jvMmr5IB/NUFeb7poWJbTUh64jORm+ghN/zk28s02vQs0dY2rpDl9Y2EnLRziUyoVtQq oLhdgYqcBlpMLr1JEVhPFer9/9pZyAWOhsYIuBVgKJXoY+8DD+AQqk9yzaEkJGN//WRP pXkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tud6o92I; spf=pass (google.com: domain of linux-bluetooth+bounces-608-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-608-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w19-20020a05640234d300b0054cd4b591d3si7872538edc.390.2023.12.15.05.36.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 05:36:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-608-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tud6o92I; spf=pass (google.com: domain of linux-bluetooth+bounces-608-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-608-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0DF0D1F25FB6 for ; Fri, 15 Dec 2023 13:36:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 543202E3F9; Fri, 15 Dec 2023 13:36:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tud6o92I" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 889CB2DB85; Fri, 15 Dec 2023 13:36:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04C1FC433C8; Fri, 15 Dec 2023 13:36:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702647397; bh=subHRTKMwmMr0u+Qf2RNzCSmCaDcHEzfdzarxtD8z/U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Tud6o92I0jvVdrQ08FGKjdwhC80aUmMEmOH08YZYA7JMT2nqm5k4KKn6vBcUbxJjP VmpYMMCDc/VLLrETSfv2FpWhSRRti1nAMypE+MNbCK/UR8mamGdHErStfqAZXkgaKC qBv5XaksNxAOX6jipIaq1IbmkhKayDCxE6KAcyXAv3QSDdh51sfDh1IcgQiy2tAttY WXgcpMVNiCj3RxJHmQEXR/hTQbtqjFGwwlG5b3BHtjTFBOyuVjwGH1S6sM6UqultwY zXpxq3Nw1vqu3UFHQsvlUnunnipIRRlxvKbgttSUVa1ufg21iJkPpOgtx6sbhdvg9A kjq2BdKV10YQg== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rE8Mh-0008LA-2Z; Fri, 15 Dec 2023 14:36:31 +0100 Date: Fri, 15 Dec 2023 14:36:31 +0100 From: Johan Hovold To: Francesco Dolcini , Greg Kroah-Hartman Cc: Jiri Slaby , linux-bluetooth@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, greybus-dev@lists.linaro.org, linux-iio@vger.kernel.org, netdev@vger.kernel.org, chrome-platform@lists.linux.dev, platform-driver-x86@vger.kernel.org, linux-serial@vger.kernel.org, linux-sound@vger.kernel.org, Francesco Dolcini , Luiz Augusto von Dentz , Alex Elder , Jonathan Cameron , Lee Jones , Jakub Kicinski , Paolo Abeni , Eric Dumazet , "David S. Miller" , Krzysztof Kozlowski , Hans de Goede , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Benson Leung , Tzung-Bi Shih , Rob Herring Subject: Re: [PATCH v1] treewide, serdev: change receive_buf() return type to size_t Message-ID: References: <20231214170146.641783-1-francesco@dolcini.it> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231214170146.641783-1-francesco@dolcini.it> On Thu, Dec 14, 2023 at 06:01:46PM +0100, Francesco Dolcini wrote: > From: Francesco Dolcini > > receive_buf() is called from ttyport_receive_buf() that expects values > ">= 0" from serdev_controller_receive_buf(), change its return type from > ssize_t to size_t. > > Suggested-by: Jiri Slaby > Link: https://lore.kernel.org/all/087be419-ec6b-47ad-851a-5e1e3ea5cfcc@kernel.org/ > Signed-off-by: Francesco Dolcini > --- > drivers/gnss/core.c | 6 +++--- > drivers/gnss/serial.c | 4 ++-- > drivers/gnss/sirf.c | 6 +++--- > diff --git a/drivers/gnss/core.c b/drivers/gnss/core.c > index 48f2ee0f78c4..9b8a0605ec76 100644 > --- a/drivers/gnss/core.c > +++ b/drivers/gnss/core.c > @@ -317,10 +317,10 @@ EXPORT_SYMBOL_GPL(gnss_deregister_device); > * > * Must not be called for a closed device. > */ > -int gnss_insert_raw(struct gnss_device *gdev, const unsigned char *buf, > - size_t count) > +size_t gnss_insert_raw(struct gnss_device *gdev, const unsigned char *buf, > + size_t count) > { > - int ret; > + size_t ret; > > ret = kfifo_in(&gdev->read_fifo, buf, count); > Why are you changing this function? This is part of the GNSS interface and has nothing to do with the rest of this patch. Greg, please drop this one again until this has been resolved. Johan