From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (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 6CA7C379C2F; Fri, 15 May 2026 14:20:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.79.88.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778854803; cv=none; b=dicetUHgVnm3e7wko7g9ILMhseQHMiCl2Ye3ye/lvhH2Wyf+BmuuGeHREIVVNwSJs6zxTIyGEjOmQnZZg12buTw6vGw0cSI0Knt+BCPbFruIoXWWusZ7R+nlSSsbJ5mKkaH9r0lux6CASE7oCu6nXMLMHZbgfx6O5MEx9iudels= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778854803; c=relaxed/simple; bh=uMceqlqzXRfw43iICLsAETRTDVV2kZXA7tfSMDH1QEA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=jhF+oIJt6CXSUKrK5HxOoQSD7ygzT/RCAgwzI3ia+5uLDLrZV6HbUX/a8uG35HkNS+gooCXjhsqFq0ZsAPakcUX/y9SDhMedhLwxjYNXrAz7jQLxB5Apc00+yGJUydnQ5+BMwQAJBhsviBalz/xLsTVgs02CKQnuAx+TC4GICIY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net; spf=pass smtp.mailfrom=lwn.net; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b=gLawDrjR; arc=none smtp.client-ip=45.79.88.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="gLawDrjR" DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net BF075410B5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1778854801; bh=6EG6To5SzJcuaqVMx4a5b0561ufDvBSm2WycfWGusZM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=gLawDrjRV7iKcTJpIiethGPjFQrqd1mKGp70oXutFxyaDQNaMDlkk9x3zg2VAY75O DBVM6OU1awoHTl/YVovW7W1siq9WL4KdAuPT4yiDBSv67rJy6Dfeg0k4UUn1WFSaPF wENNcJoRHc07/5Bmbbm8HH2djVOYCLgA4sZQ00AoQQa4674OT94JkVaWuvqMrFZAwH Cm3Uw35Wz6hawf18WUZIMn7h/51gQ6T6885em8wrW38w+DwjQwKt+wi0mpDDD0SdYO 3Muf/HKMyQBf4BZmH8onUBJkpcVASTDrY6M/rLal5Hy36vg5UIiiS87OCk6Z6ch0t1 NvKbMHjVLeGXw== Received: from localhost (unknown [IPv6:2601:280:4600:27b:67c:16ff:fe81:5f9b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id BF075410B5; Fri, 15 May 2026 14:20:01 +0000 (UTC) From: Jonathan Corbet To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: Randy Dunlap , Shuah Khan , linux-doc@vger.kernel.org, Mauro Carvalho Chehab Subject: Re: [PATCH] kdoc: xforms: move context attrs to function_xforms list In-Reply-To: <20260505221548.163751-1-rdunlap@infradead.org> References: <20260505221548.163751-1-rdunlap@infradead.org> Date: Fri, 15 May 2026 08:20:00 -0600 Message-ID: <87mry0rbzj.fsf@trenco.lwn.net> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Randy Dunlap writes: > The context analysis macros are function attributes that should be > in the function_xforms list. Somewhere along the way they were > inserted into the struct_xforms list instead. This causes docs build > warnings to continue to be emitted for context macros. > > Move the context analysis macros to the function_xforms list where > they should be to eliminate these warnings. > > Documentation/core-api/kref:328: ../include/linux/kref.h:72: WARNING: Invalid C declaration: Expected end of definition. [error at 96] > int kref_put_mutex (struct kref *kref, void (*release)(struct kref *kref), struct mutex *mutex) __cond_acquires(true# mutex) > Documentation/core-api/kref:328: ../include/linux/kref.h:94: WARNING: Invalid C declaration: Expected end of definition. [error at 92] > int kref_put_lock (struct kref *kref, void (*release)(struct kref *kref), spinlock_t *lock) __cond_acquires(true# lock) > > Signed-off-by: Randy Dunlap > --- > Cc: Jonathan Corbet > Cc: Shuah Khan > Cc: linux-doc@vger.kernel.org > Cc: Mauro Carvalho Chehab > > tools/lib/python/kdoc/xforms_lists.py | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) Applied, thanks. jon