From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 64BE081ACA for ; Mon, 23 Feb 2026 15:16:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771859816; cv=none; b=BYdMNHDYxYVl39xogXIFT77aW2WPTEn0bIAQ0D5mOfLskyZqo4LiO21JC33KOplKECUAW9o9b38sWrb/YI9zxkM8Rwb+jQMLlgSAHGcTe+8Ae0eOc78+oL8SejRrWxglK7kYKSqzmOcv0Ce/wodIkHm7m2fTrS19nh8rkNuzlSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771859816; c=relaxed/simple; bh=rs2yLYKmp6WOcwBpSa9ctD/UtuXI0aX7x83jfhX7aHM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PoHMX26JNIWEIZzW97TmB0UhaLNtiYc0qqAdtxRh3oT7PyVJgeOAmiwsEa9N3QvR+wd+SktQLp4izSTQ84eIdGC44e/ZLEQA1be459Cpfo/fY3k6OtvDPWBiJWu2g+HRYeFtA1nOIw2q1LxWbadvvg3F/P/+U1M1vZKSPGKORWw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=STvKH9+d; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="STvKH9+d" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=WOWWiSTBJ+8W+AutNJHrcWGiv44YuY0pgJy/NDewHkc=; b=STvKH9+dBZA8rkYJbk4S71s2ds y0bpFjipG1vxh8O2NDobLsCi4ZeC2cHBJKgp6o/s3G/m3GWXGN0ltMhIi1DUOTTqVVHJ1H8Eiz87y 3rY84yFsMRcDk8okA36c1cidN3+5oyKwlYJZ5rzoua9Kcl5AVFfU+N9sqLV9WYhAmqC6a03ANjiRv ynA8OJ/YxfjXNRjTMeizzJrfjiboLNsA3pvCpuCxEo1EDhQh6iRKhXx8IYMpPYDJm8Ln/APPGTOCn kOQPSxUX4jIzLAc/JK3K8I9K7568CyIqItWGlT9olfrcRUhJoADsM7riQVaYmoQHj0tbIrrYnhLQH wD6HJnng==; Received: from willy by casper.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1vuXfv-0000000Eeth-09hH; Mon, 23 Feb 2026 15:16:43 +0000 Date: Mon, 23 Feb 2026 15:16:42 +0000 From: Matthew Wilcox To: Sanjay Chitroda Cc: Vlastimil Babka , Andrew Morton , Christoph Lameter , David Rientjes , Roman Gushchin , Harry Yoo , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/slub: drop duplicate kernel-doc for ksize() Message-ID: References: <20260220124243.3264133-1-sanjayembedded@gmail.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: <20260220124243.3264133-1-sanjayembedded@gmail.com> On Fri, Feb 20, 2026 at 06:12:43PM +0530, Sanjay Chitroda wrote: > The ksize() API is already documented in the public header, and > Documentation/core-api/mm-api.rst pulls that canonical doc into the > book. The kernel-doc block added to mm/slub.c by commit > fab0694646d7 ("mm/slab: move [__]ksize and slab_ksize() to mm/slub.c") > introduced a second definition for the same symbol in the generated > docs, which makes Sphinx emit: > > WARNING: Duplicate C declaration, also defined at core-api/mm-api:521 > Declaration is '.. c:function:: size_t ksize(const void *objp)' > > Remove the redundant kernel-doc comment from slub.c so only the Usually we keep the kernel-doc comment with the implementation, not with the prototype.