Skip to content

Commit 62bd665

Browse files
committed
x86/sgx: Fix a W=1 build warning in function comment
JIRA: https://issues.redhat.com/browse/RHEL-22826 Upstream Status: merged into the linux.git commit c6e6a3c Author: Kai Huang <kai.huang@intel.com> Date: Sun Aug 25 20:06:49 2024 +1200 x86/sgx: Fix a W=1 build warning in function comment Building the SGX code with W=1 generates below warning: arch/x86/kernel/cpu/sgx/main.c:741: warning: Function parameter or struct member 'low' not described in 'sgx_calc_section_metric' arch/x86/kernel/cpu/sgx/main.c:741: warning: Function parameter or struct member 'high' not described in 'sgx_calc_section_metric' ... The function sgx_calc_section_metric() is a simple helper which is only used in sgx/main.c. There's no need to use kernel-doc style comment for it. Downgrade to a normal comment. Signed-off-by: Kai Huang <kai.huang@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20240825080649.145250-1-kai.huang@intel.com Signed-off-by: Vladis Dronov <vdronov@redhat.com>
1 parent 640d109 commit 62bd665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/cpu/sgx/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ int arch_memory_failure(unsigned long pfn, int flags)
732732
return 0;
733733
}
734734

735-
/**
735+
/*
736736
* A section metric is concatenated in a way that @low bits 12-31 define the
737737
* bits 12-31 of the metric and @high bits 0-19 define the bits 32-51 of the
738738
* metric.

0 commit comments

Comments
 (0)