]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/sgx: Fix a W=1 build warning in function comment
authorKai Huang <kai.huang@intel.com>
Sun, 25 Aug 2024 08:06:49 +0000 (20:06 +1200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 Aug 2024 12:29:38 +0000 (14:29 +0200)
commitc6e6a3c1698a86bacf7eac256b0f1215a3616dc7
treec77a72ab97495c79608b2ac39ad8fe0090f80570
parent80a4da05642c384bc6f5b602b865ebd7e3963902
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
arch/x86/kernel/cpu/sgx/main.c