Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp3070721lqz; Wed, 3 Apr 2024 18:23:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2arWtL4ZfVTYN0B4FciZ9jQPDIfAReGYXmP9WAYEWhCorjfzTCS/NctqMamCYHfBcl1Sh9yohnkW2I9iRQHYyDYzD8jfs2pytrWk8OA== X-Google-Smtp-Source: AGHT+IHacI4Ate43AF9UjvLtUuUTvP8C3FXlQn2AUJxCXHusqtevHoVCioZ4g1FkTDUnjzReI6HD X-Received: by 2002:a17:906:1b02:b0:a4e:eab:a8c1 with SMTP id o2-20020a1709061b0200b00a4e0eaba8c1mr541022ejg.33.1712193809311; Wed, 03 Apr 2024 18:23:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712193809; cv=pass; d=google.com; s=arc-20160816; b=L2HvCeY6r7F+xcHkHzV7QGukyDEPhgcKhbSkzkxdmiKaQKB2TZ/I2IjHesQKV5xGxM GC8qL+QUXJPXmtqU3pszzRMwGTvu3fzqFdQ4nZ4al1t7F3MpPU7bg5zeUkeRoT203jwW xo85Lhxd8gcyI9QVhBhS0qCh4TstBjCnCsnkUSY1o6kJJxHYDt1REtpKmmjzGSo+03w1 2zaL3DusVGjI57BCMf0/ndhQakWXfw4ZuRBi9Um4vkuuL42b7eAgYNh+sYISFbK+hMnp WRnlSVhRQixfit5WpE8xd8F6Dfp6/seXupe5KpPm3xgQJT68I5aLSaS5KrLI5Y/DHxky iw3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=SvlDr2y+Ob7kmjmPwSpuKpySQO/bH1vGiHXxqMbrUh8=; fh=W0SczJOZql0VQUyzXak+iBkJGsfYouf00m1k8K1Fi1s=; b=PbIw17r+VZ+RPgePhr7/dRDemgD3aBOh7W5Gdrdms1huCAS5fozPrRJ/yxbhwcQLqD g+Xv1J9G7W7+2hab58PJe7UZSI7o+CBEtv1mulA/ap8d5I6KJGNFN8nCk68eZDg1nyvF n44MMjGlLOkoB/4U6MKIX6Hz5JrYgDTTE8jgHgMTeNH/RmnCPYJImYTdnH7OmlafVn7r YU5SUGuAiSs1xKlVhfEro0D2PXajbPHTAWNvEgfE4ph9zeBCa4n/srqz8KCG6+nDErwx ZBBzHrgOHdQQgEo+dDZuDV84f3O6OxLT+XG7G6o42CqgzLHx3c5dntHKsqxI/EPwCxTq zkUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=x+BYGjbY; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-130812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130812-linux.lists.archive=gmail.com@vger.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 hq21-20020a1709073f1500b00a50d6be3f19si962693ejc.612.2024.04.03.18.23.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 18:23:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130812-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=@linux-foundation.org header.s=korg header.b=x+BYGjbY; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-130812-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130812-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 07A611F27A20 for ; Thu, 4 Apr 2024 01:23:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6296F101DB; Thu, 4 Apr 2024 01:23:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="x+BYGjbY" 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 86562D52F for ; Thu, 4 Apr 2024 01:23:22 +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=1712193802; cv=none; b=b38CkaJSc81neaaOywmnLyNjJridcTpBcIsoOE1QLhsqR+DHT5UYR8M/nD2104M96Hez1HBxqvL+2kpNB5rI7Es5bb1EiFYHKh3lwXEI2pORw6tv9jBlJEKxelzHpDMB/a5YmSA98jD2MotqBlpxAp+7iuV8sxmOTVbl8O72n20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712193802; c=relaxed/simple; bh=9URrAD4orwea2h0JUDYqZmyPdfENFD+fErFvc2LrXQk=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=m2OgKLNRaw1YvCVz2FeBEpoAjWiIuh/MjfJzGHxV85gt/CF2fciATjwVjXpg382i7sjAWc1TV+mprMPZojvqKyDN8Af34pt0uJkkU/h4W5HHbit5P43Fp7YW7CEiI5Y49q5Vw1yZktc/XdPmH9IoNK2kBH3G5rK3r/avG8yn35s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=x+BYGjbY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CCE4C433F1; Thu, 4 Apr 2024 01:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1712193802; bh=9URrAD4orwea2h0JUDYqZmyPdfENFD+fErFvc2LrXQk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=x+BYGjbY91XJTlptfwwpdhOxujYVJoHL83l7liK4etCRE4+klynk2MQ4AVH118p1z PXCKTuU5+3PMd5iEQGfMJXoueP76m9i1+jb2EWzPBEUoPqtc5DRKvtXNyUqFiydAF6 8Y2t0d2vZlLwJC3MW3pgjAgpLIylLJv1mtHb3NVg= Date: Wed, 3 Apr 2024 18:23:20 -0700 From: Andrew Morton To: Jiapeng Chong Cc: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, vbabka@suse.cz, roman.gushchin@linux.dev, 42.hyeyoo@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Abaci Robot , Suren Baghdasaryan , Kent Overstreet Subject: Re: [PATCH] mm/slab_common: Modify mismatched function name Message-Id: <20240403182320.93491c23ed5ae19e94158ceb@linux-foundation.org> In-Reply-To: <20240328020711.125070-1-jiapeng.chong@linux.alibaba.com> References: <20240328020711.125070-1-jiapeng.chong@linux.alibaba.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Thu, 28 Mar 2024 10:07:11 +0800 Jiapeng Chong wrote: > No functional modification involved. > > mm/slab_common.c:1215: warning: expecting prototype for krealloc(). Prototype was for krealloc_noprof() instead. > > ... > > --- a/mm/slab_common.c > +++ b/mm/slab_common.c > @@ -1199,7 +1199,7 @@ __do_krealloc(const void *p, size_t new_size, gfp_t flags) > } > > /** > - * krealloc - reallocate memory. The contents will remain unchanged. > + * krealloc_noprof - reallocate memory. The contents will remain unchanged. > * @p: object to reallocate memory for. > * @new_size: how many bytes of memory are required. > * @flags: the type of memory to allocate. Well ok, but krealloc_noprof() is just an internal implementation detail. I suggest this documentation be moved to the new krealloc() wrapper site. Because krealloc() remains the thing which people actually call. Presumably the same applies to more of the new _noprof functions.