Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6699713rdb; Fri, 15 Dec 2023 06:12:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCUKicKhqVxT43YGyHm2ZdOhyAFBbIZ2pvNCdFOs79x3P/R6g3VJQ3cDbnFcUuNHqc6oz5 X-Received: by 2002:a05:6a21:9993:b0:190:5e69:86ad with SMTP id ve19-20020a056a21999300b001905e6986admr6500423pzb.62.1702649526886; Fri, 15 Dec 2023 06:12:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702649526; cv=none; d=google.com; s=arc-20160816; b=CFoo07uJpyO2o+wFU0YeFiUUiC1oK32KwhMB9akmzLRTqEyyyY+a2ntlpbzizybU1Q m8MudipFaZF6lcviXouOdB7xjj3OWeaB4FewEzb43ZCx/sTohL/eUOIfOrY7Pn6FhpYe RVI94Ln6i/vHinXM7HpbfIkjbJihEVeuOxMKbTr3q2WvHFtfNib3ThjCXyHL6GmTljmn 7O2z2K3Is7AliTuvenYzpoT0s+T1eirnOFiUom1Nf+TUrTDcGmZKwKMFCyQycQQAGgFf HZUGH8/yiYm0b5e8xh1jnmjgYDvAN60RA3gXrxiv6zfdHrq9O68kcnS1hdTnpsyR16TM CzXA== 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=6tbt1bur1fD/ajvxWORzBVrthSkqSKkGunZNsTKnb4k=; fh=N02xxJYaCWin97hKvTrbs+oYO6L9ldpV4GGt5Y/azWk=; b=rN5AV4/2dPvsePxSRHvwP8UkmEJ/D4NAdFAMKNqRC7yC3ZJxPW587QZt5tswqhCdSO dYMCv9MuBAOzInnWpu4LPg8V0Ej2KRcT1vHWW8hHdcGWlp0onZEfurbMFb+3GkE5csm/ A25buv85eAAN1Vn7dnCNKIstj/w6aD/hu3Upd1Rnn1WPU8ETr2C2iVAp3NEojI9rCf5i wH2kuHThX0ngusKobRJ0P4XhLM3IWh7AyLeNR8NBUANTIPBdfUWVRRUlTmauYbBHqHph HPAHmoDgrOaD68c6ZmzNc6ldzUyyYJDPLr/Fvt8t/K4+tqtTx0Cs5FQtosRhlhfgOklA I6fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H6hwq92X; spf=pass (google.com: domain of linux-bluetooth+bounces-612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-612-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e4-20020a63e004000000b005b902b61cbcsi13289451pgh.723.2023.12.15.06.12.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 06:12:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H6hwq92X; spf=pass (google.com: domain of linux-bluetooth+bounces-612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-612-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8ACD2281541 for ; Fri, 15 Dec 2023 14:12:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1D433033A; Fri, 15 Dec 2023 14:11:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="H6hwq92X" 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 02ECC30641; Fri, 15 Dec 2023 14:11:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A407C433C7; Fri, 15 Dec 2023 14:11:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1702649515; bh=xcqVasPR7/6/BGkmp20d/mwFZY/qYeQV954kXhulne0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H6hwq92XJhZCx8YzkUspQ2BH8/Bmyvmss0bwdDEeI685r5m21J29uMKmzEeKRlHGf gFtB8lAkg2zQd+t/qN4A5hvSsaF9WE8iyeEfKkXx0TQFMfFJwajt9rs2jMLAA5UQ2Q ttSYSzrZbXILZ1muKg4Fnpy5jIEyvmZtvtb8oCHY= Date: Fri, 15 Dec 2023 15:11:53 +0100 From: Greg Kroah-Hartman To: Johan Hovold Cc: Francesco Dolcini , 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 =?iso-8859-1?Q?J=E4rvinen?= , Benson Leung , Tzung-Bi Shih , Rob Herring Subject: Re: [PATCH v1] treewide, serdev: change receive_buf() return type to size_t Message-ID: <2023121544-hastiness-unhinge-b8d3@gregkh> 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: On Fri, Dec 15, 2023 at 02:36:31PM +0100, Johan Hovold wrote: > 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. Now dropped, thanks.