]> Gentwo Git Trees - linux/.git/commit
x86/resctrl: Fix types in resctrl_arch_mon_ctx_{alloc,free}() stubs
authorJames Morse <james.morse@arm.com>
Thu, 15 May 2025 16:58:48 +0000 (16:58 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 16 May 2025 10:10:51 +0000 (12:10 +0200)
commit272ed1c28c9db60b9bd50d49feae463df50b3ef6
treea999369b5179ac134234103d022af10347372b53
parent7bdb619c7f9f0a7264b2d69ad0472bf2c785e52a
x86/resctrl: Fix types in resctrl_arch_mon_ctx_{alloc,free}() stubs

resctrl_arch_mon_ctx_alloc() and resctrl_arch_mon_ctx_free() take an enum
resctrl_event_id that is already defined in resctrl_types.h to be
accessible to asm/resctrl.h.

The x86 stubs take an int. Fix that.

Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Reviewed-by: Fenghua Yu <fenghuay@nvidia.com>
Tested-by: Fenghua Yu <fenghuay@nvidia.com>
Tested-by: Babu Moger <babu.moger@amd.com>
Tested-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/20250515165855.31452-19-james.morse@arm.com
arch/x86/include/asm/resctrl.h