]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/mce/amd: Remove return value for mce_threshold_{create,remove}_device()
authorYazen Ghannam <yazen.ghannam@amd.com>
Tue, 24 Jun 2025 14:16:01 +0000 (14:16 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 5 Sep 2025 10:40:44 +0000 (12:40 +0200)
commit4d2161b9e8ba64076f520ec2f00eefb00722c15e
tree748c131cd88e053daaf301435681245a2b8eb4a6
parent9af8b441cf6953f683b825fbf241a979ea7521e8
x86/mce/amd: Remove return value for mce_threshold_{create,remove}_device()

The return values are not checked, so set return type to 'void'.

Also, move function declarations to internal.h, since these functions are
only used within the MCE subsystem.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>
Link: https://lore.kernel.org/20250624-wip-mca-updates-v4-6-236dd74f645f@amd.com
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mce/amd.c
arch/x86/kernel/cpu/mce/internal.h