From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796370102; b=r7uYBS+w2yCKBeFNO/kr0jeMD587bdaGuPQYEvvygOzJR+mr64gPVDoRVmpBz/7zUujc KsOqSmBGkUM1R9sAkecdyIoSKvWs+4qy8HM88hrS65pdkujv6pB5ZqWnJqvRxHqfqJXJr 0BFmtbd1+RXonSiJmJZ1chtifmydFt34s9dsKjMApd6AYZO0bWNnnJt12UDXrfN4jkvs1 cmHGq6yfgLw29ETEPvB8RSwKNVseLTFwrE7hP0NMc/Q7YsMXwP8iHBdq16JYvfBDbm/FL 99WOq+kZBhVn0ZGXXWjJ4aJOhn+4IeKm0MicTDW39SzbzyD7uQO0FH+zbB1Pfz5CEeQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796370102; h=Received:DKIM-Signature:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=DNy4I6lTOqHeh7WXMwvNe3t36HtijjrI8ZyvV1hssPk=; b=N4Q7CmG0jiXrDVhlnpYE2To0Pme5rFpC1cPt9oax6RpElkMo9DHtx2vkf6s+Wlo/zTBF rhN+svKeEf+XWYnfbpMPiR3SiUTZEGUr0pKJtbbnZCXUV9yn3xFLLNYxiZf6BTH5BvjYt CIOwdpUUWZ8uW8opLexDkSc526U7TlIpl3N0RGBBPaR0cxyGkS8U9i0RsumD1BJ9GTmdd 4r+MKqWla3husRoZ3RiZQtuxEENXjMUw3ypflA8/i1my3fCS8cdzNawccnj486El3g+bS Fhcj68VRQe4LLpzsTA28o+sl8ncWbLCF8r1DjwhqG6OHWf8EVMcCOWeCHn7wSCJsW2Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fAThsvbp; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B39A606A322 for ; Fri, 4 Dec 2026 07:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fAThsvbp Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21EAC1F000CE; Fri, 4 Dec 2026 07:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796370102; bh=DNy4I6lTOqHeh7WXMwvNe3t36HtijjrI8ZyvV1hssPk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=fAThsvbpvM4f3irU7gIONXAdOq8groIykn30JQdf2ue26SgdUMcJCTOnAMRgHefzJ uyyN/ciadT/swGprn99wILWHYm53fcMQRg6BHGiC4vR+/qUKiu/cM4HngyumXdHRGb Ywsip/SYt60K3pqLw6dCu8aoVNGUJl+YaFaVRFsN+QfRel62zUSU84hAuP8PPXB1gS 6n7REr/+ZfrAKXND3fhvJr1yFvzpA8iPReYlUjuDndJIrdh+vmQnEksj7CcZjOKS7b a59gIJqKnj0y25ciJ8quCX9NlMN8yr3CpXfM3DWPMrrA+qXImUYa2G/Jc1+mQSukqB 4oRhuo+0FmBQQ== Received: from johan by xi.lan with local (Exim 4.100.2) (envelope-from ) id 1xZNvH-000000060hY-3QpZ; Fri, 04 Dec 2026 08:41:39 +0100 Date: Fri, 4 Dec 2026 08:41:39 +0100 From: Johan Hovold To: bobmcd@tuta.io Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Randy Dunlap , driver-core@lists.linux.dev Subject: Re: [PATCH v2] devres: fix kernel-doc of the variadic devm_kmalloc_obj*() macros Message-ID: References: <20261203-fix-h3-devres-kmalloc-obj-doc-v2-1-af447f976374@tuta.io> X-Mailing-List: driver-core@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261203-fix-h3-devres-kmalloc-obj-doc-v2-1-af447f976374@tuta.io> On Thu, Dec 03, 2026 at 07:42:39PM +0530, Yashvardhan Saraf via B4 Relay wrote: > From: Yashvardhan Saraf > > devm_kmalloc_obj(), devm_kmalloc_objs() and devm_kmalloc_flex() take > their optional GFP flags through a variadic "..." parameter, but their > kernel-doc comments document it as "@GFP". scripts/kernel-doc therefore > warns: > > Excess function parameter 'GFP' description in 'devm_kmalloc_obj' > Excess function parameter 'GFP' description in 'devm_kmalloc_objs' > Excess function parameter 'GFP' description in 'devm_kmalloc_flex' > > and the optional argument is missing from the generated documentation. > Use "@...:" as include/linux/slab.h already does for kmalloc_obj() and > friends. > > Documentation only, no functional change. > This issue was found with scripts/kernel-doc by an AI coding assistant > (Claude Opus 5.5), which also drafted this patch. It has been checked > with scripts/kernel-doc -none -Wall (the three warnings are gone), and > drivers/base/devres.o, which includes the header, was compile-tested > with W=1 and smatch on x86_64 allmodconfig without new warnings. Not > runtime-tested (documentation-only change). I dropped this paragraph when applying (such information can go below the --- line). > Fixes: 29a86e8818a8 ("devres: Provide kmalloc_obj*-style API for devm_kmalloc") > Acked-by: Randy Dunlap > Tested-by: Randy Dunlap > Signed-off-by: Yashvardhan Saraf > --- > Changes in v2: > - Use my full name in the Signed-off-by line (Randy). > - Add Randy's Acked-by and Tested-by. No code change. > - Link to v1: https://patch.msgid.link/20261203-fix-h3-devres-kmalloc-obj-doc-v1-1-7a9e351811df@tuta.io Applied to driver-core-testing for 7.5, thanks. Johan