> -----Original Message-----
> From: Huang, Kai <kai.hu...@intel.com>
> Sent: Friday, August 15, 2025 1:31 AM
> To: Reshetova, Elena <elena.reshet...@intel.com>; Hansen, Dave
> <dave.han...@intel.com>
> Cc: linux-...@vger.kernel.org; mi...@kernel.org; Scarlata, Vincent R
> <vincent.r.scarl...@intel.com>; x...@kernel.org; jar...@kernel.org;
> Annapurve, Vishal <vannapu...@google.com>; linux-kernel@vger.kernel.org;
> Mallick, Asit K <asit.k.mall...@intel.com>; Aktas, Erdem
> <erdemak...@google.com>; Cai, Chong <cho...@google.com>; Bondarevska,
> Nataliia <bond...@google.com>; sea...@google.com; Raynor, Scott
> <scott.ray...@intel.com>
> Subject: Re: [PATCH v14 4/5] x86/sgx: Implement ENCLS[EUPDATESVN]
> 
> 
> > >
> > > >
> > > > + * Return:
> > > > + * * %0:               - Success or not supported
> > > > + * * %-EAGAIN:         - Can be safely retried, failure is due to lack 
> > > > of
> > > > + * *                   entropy in RNG
> > >
> > > Nit: if another version is ever needed, I think it would be better to make
> > > the text vertical aligned w/o the leading '-', i.e.,
> > >
> > >   * %-EAGAIN:     - Can be ....
> > >                     entropy in RNG.
> > >
> > > .. instead of
> > >
> > >   * %-EAGAIN:     - Can be ....
> > >                   entropy in RNG.
> >
> > OK, yes, this can be fixed, indeed.
> >
> 
> I downloaded those patches and checked locally.  I found there's an
> unnecessary 'tab' between the error codes and the descriptions, making the
> whitespace between them unnecessarily too long.
> 
> Please see below diff I came up with:
> 
> diff --git a/arch/x86/kernel/cpu/sgx/main.c
> b/arch/x86/kernel/cpu/sgx/main.c
> index cff5c4d22ac2..c6467628da04 100644
> --- a/arch/x86/kernel/cpu/sgx/main.c
> +++ b/arch/x86/kernel/cpu/sgx/main.c
> @@ -929,10 +929,10 @@ static int sgx_usage_count;
>   * cryptographic assets.
>   *
>   * Return:
> - * * %0:               - Success or not supported
> - * * %-EAGAIN:         - Can be safely retried, failure is due to lack of
> - * *                   entropy in RNG
> - * * %-EIO:            - Unexpected error, retries are not advisable
> + * * %0:       - Success or not supported
> + * * %-EAGAIN: - Can be safely retried, failure is due to lack of
> + * *             entropy in RNG
> + * * %-EIO:    - Unexpected error, retries are not advisable
>   */
>  static int sgx_update_svn(void)
>  {

Thank you, I will use will rendering!

Reply via email to