Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2657348rdb; Mon, 5 Feb 2024 13:23:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0/JzUKY0VvNx5WiL8oC9vecrPm7euYjT+FY5EGUja6WdARdZ14rpCC1Gb34r+zmcDnzHs X-Received: by 2002:aa7:d993:0:b0:560:463:9600 with SMTP id u19-20020aa7d993000000b0056004639600mr387605eds.7.1707168223133; Mon, 05 Feb 2024 13:23:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707168223; cv=pass; d=google.com; s=arc-20160816; b=sa1pWw7+CZH+u5qfcQ4SYVO24WayWM8yAMrMls8oFXmIicOwvUAQ4mGfC8PGBX4cP0 SEJTPxUcGsfWfUnTHsXnrXvxoeWmkQ9nZDskZzRSbVNB7aXOpvbI8ZoFruGXDFtzRQf1 vUo0E67XXsrv7uuuZqZvs9T1jWKR6F3h17qLfxix5+P9pV2r1+uBX0wyYh0hlen0hNnk YFJZLQAQOsKJt+kG+LKGMAILcJb3jzJVMFmCt1LpTizrpU3yHABvl4RMKYvAuAyq0S8N DKalGfdRu8J20F8NtnhTsyOPuEKKAhets3ZRpgF9mBTBW/fglS3cSDwVUbFSvuaN/VqJ zfcQ== ARC-Message-Signature: i=2; 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=B1g33UnrUl/i3YYWTX2rBoLbOnp0UGTBo9XR3SzI8n4=; fh=/AaIKF/IuySsk81cKdb732fELg/4/7n5QawoohFzb6w=; b=QganvXxjHEu+KK/EoN4DgAe9LkDU/7vA7gFK3AbzK2o+Q6dxo20GCpiB5OVhl+0ZlZ KYWejf95Yd/tPTHat7N4qScW80Cv81o6L0l4KyI5xEr3n7APvrE++Vk3PzYk9UaGvxr1 0HMd1gEhD0p+nPj+P1AVZZ0BTHoboMsdxgvW+CVodsfPHfRUUTlJc9/QbZdnpRhvGTTt YVfkkYRoKx1SGGGAxXNenXF0dVR6nMNxgfkb3xtEiYKIm/oXM4STukbRWfyjRmV6wmgJ 9ctt+TFwJVApfFejUQ53nuQXO30t5cYshUllGbk+HnkHrCccG8fLnz+lJdJO9uUYxug6 uirg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=J+gy3rBO; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-53836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=1; AJvYcCX2NdpHYA4GmSLu7KdyxlYM8djq2TqGMrn5DgEnqIr+5PfixyeU1flZLTq3ckr+jWSL4PRPM5cRZIo9y5y+IEK4AfJh3zBMYptdSj89cA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z16-20020aa7c650000000b0056015187a3csi287044edr.149.2024.02.05.13.23.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:23:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=J+gy3rBO; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-53836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53836-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DB64D1F29E6E for ; Mon, 5 Feb 2024 21:23:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A70A1633E3; Mon, 5 Feb 2024 19:43:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="J+gy3rBO" 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 70F7163128 for ; Mon, 5 Feb 2024 19:43:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707162237; cv=none; b=FFEyAFgm2f4x1j6tE9PswejCKBePELYZgxHGTvR+2/B1LW2NUztrHPK2pN4pCLn7oLvD/l7FyyazLYy2qo5/vqhoTltsQolIOohGyJ5n1LatYz2WyiTpEzhZ66w1wwSu7I+jwAcPXAy6YtLmWE6EKGpHNrSyYxJCb4f83eeGzjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707162237; c=relaxed/simple; bh=Pj7VY2Giu+inEmjQqEhN8ymRYMC/3tJNKNSk6wehCUM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hkNtfPB+qplm7knrxEa9zfen0atqywaMRsmSHMwCQ00/XXjpNelX231CGPdGgv4DAMcyR/1qC8bAyJl22tewoDXorz1jSmMkpwt1ng+FeQBiwsWA9wbNU/38Tt9lJafCCnsfBIHYMBqqltJkeaJ0z9RdMmYZcDsAGC5VeKP8XYM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=J+gy3rBO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BC4FC433F1; Mon, 5 Feb 2024 19:43:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707162236; bh=Pj7VY2Giu+inEmjQqEhN8ymRYMC/3tJNKNSk6wehCUM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J+gy3rBOdUHRQpu3UB5aYQ/Jx8BFzGpi0VhmyQ6qoLumGYiJKUzJcLDW396ujMNQ7 fCy/d6EcnVLjZ8odN4/WkQ/tRRTCvXxOZRwJC5gPl0hYk2KgJGIhsUqDVsywakeZ3V BtsOQWADSF0dXuqdQcqo7JOlXVm9F7wsEfmsoP14= Date: Mon, 5 Feb 2024 19:43:54 +0000 From: Greg Kroah-Hartman To: Joy Chakraborty Cc: Srinivas Kandagatla , Rob Herring , Nicolas Saenz Julienne , linux-kernel@vger.kernel.org, manugautam@google.com Subject: Re: [PATCH] nvmem: rmem: Fix return value of rmem_read() Message-ID: <2024020544-lucid-nervous-2cbd@gregkh> References: <20240205114826.39036-1-joychakr@google.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240205114826.39036-1-joychakr@google.com> On Mon, Feb 05, 2024 at 11:48:26AM +0000, Joy Chakraborty wrote: > reg_read() callback registered with nvmem core expects an integer error > as a return value but rmem_read() returns the number of bytes read, as a > result error checks in nvmem core fail even when they shouldn't. > > Return 0 on success where number of bytes read match the number of bytes > requested and a negative error -EINVAL on all other cases. > > Fixes: 5a3fa75a4d9c ("nvmem: Add driver to expose reserved memory as nvmem") > Signed-off-by: Joy Chakraborty > --- > drivers/nvmem/rmem.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - You have marked a patch with a "Fixes:" tag for a commit that is in an older released kernel, yet you do not have a cc: stable line in the signed-off-by area at all, which means that the patch will not be applied to any older kernel releases. To properly fix this, please follow the documented rules in the Documentation/process/stable-kernel-rules.rst file for how to resolve this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot