Re: [PATCH v15 01/13] x86/sev: Carve out and export SNP guest messaging init routines

From: Borislav Petkov
Date: Tue Dec 03 2024 - 12:33:51 EST


On Tue, Dec 03, 2024 at 08:05:32PM +0530, Nikunj A. Dadhania wrote:
> This is what I use with checkpatch, that didnt catch the wrong spelling.

Not surprised.

> Do you suggest using something else ?

You can enable spellchecking in your editor with which you write the commit
messages. For example:

https://www.linux.com/training-tutorials/using-spell-checking-vim/

Or, you can use my tool:

https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git/log/?h=vp

You'd need to fish it out of the repo.

It doesn't completely replace checkpatch yet but I am extending it with
features as I go. But it does spellcheck:

$ ~/dev/vp/.tip/bin/vp.py ~/tmp/review/new
prepratation for adding Secure TSC guest support, carve out APIs to
Unknown word [prepratation] in commit message.
Suggestions: ['preparation', 'preparations', 'reparation', 'perpetration', 'reputation', 'perpetuation', 'peroration', 'presentation', 'repatriation', 'propagation', "preparation's"]

Class patch:
original subject: [[PATCH v15 01/13] x86/sev: Carve out and export SNP guest messaging init routines]
subject: [x86/sev: Carve out and export SNP guest messaging init routines]
sender: [Nikunj A Dadhania <nikunj@xxxxxxx>]
author: [Nikunj A Dadhania <nikunj@xxxxxxx>]
version: [15]
number: [1]
name: [x86-sev-carve_out_and_export_snp_guest_messaging_init_routines]
date: [Tue, 03 Dec 2024 14:30:33 +0530]
message-id: [20241203090045.942078-2-nikunj@xxxxxxx]

I'm sure there are gazillion other ways to automate it, ofc.

HTH.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette