[PATCH] cgroup/misc: fix misc_res_type kernel-doc warning

Randy Dunlap posted 1 patch 3 months, 3 weeks ago
include/linux/misc_cgroup.h |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] cgroup/misc: fix misc_res_type kernel-doc warning
Posted by Randy Dunlap 3 months, 3 weeks ago
Format the kernel-doc for SCALE_HW_CALIB_INVALID correctly to
avoid a kernel-doc warning:

Warning: include/linux/misc_cgroup.h:26 Enum value
 'MISC_CG_RES_TDX' not described in enum 'misc_res_type'

Fixes: 7c035bea9407 ("KVM: TDX: Register TDX host key IDs to cgroup misc controller")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Zhiming Hu <zhiming.hu@intel.com>
Cc: Isaku Yamahata <isaku.yamahata@intel.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Koutný <mkoutny@suse.com>
Cc: cgroups@vger.kernel.org
---
 include/linux/misc_cgroup.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20251016.orig/include/linux/misc_cgroup.h
+++ linux-next-20251016/include/linux/misc_cgroup.h
@@ -19,7 +19,7 @@ enum misc_res_type {
 	MISC_CG_RES_SEV_ES,
 #endif
 #ifdef CONFIG_INTEL_TDX_HOST
-	/* Intel TDX HKIDs resource */
+	/** @MISC_CG_RES_TDX: Intel TDX HKIDs resource */
 	MISC_CG_RES_TDX,
 #endif
 	/** @MISC_CG_RES_TYPES: count of enum misc_res_type constants */
Re: [PATCH] cgroup/misc: fix misc_res_type kernel-doc warning
Posted by Tejun Heo 3 months, 3 weeks ago
On Fri, Oct 17, 2025 at 12:07:42AM -0700, Randy Dunlap wrote:
> Format the kernel-doc for SCALE_HW_CALIB_INVALID correctly to
> avoid a kernel-doc warning:
> 
> Warning: include/linux/misc_cgroup.h:26 Enum value
>  'MISC_CG_RES_TDX' not described in enum 'misc_res_type'
> 
> Fixes: 7c035bea9407 ("KVM: TDX: Register TDX host key IDs to cgroup misc controller")
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>

Applied to cgroup/for-6.18-fixes.

Thanks.

-- 
tejun