Re: [PATCH] KVM: X86: Use octal for file permission
From: Sean Christopherson
Date: Tue Sep 19 2023 - 11:06:13 EST
KVM: x86: (don't capitalize the 'x')
On Tue, Sep 19, 2023, Hao Peng wrote:
> From: Peng Hao <flyingpeng@xxxxxxxxxxx>
>
> Improve code readability and checkpatch warnings:
> WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider
> using octal permissions '0444'.
>
> Signed-off-by: Peng Hao <flyingpeng@xxxxxxxxxxx>
> ---
> arch/x86/kvm/x86.c | 18 +++++++++---------
If we're going to do this, let's do all of x86/kvm in one patch, i.e. clean up
VMX and SVM too.
I generally don't like checkpatch-initiated cleanups, but I vote to go ahead with
this one. I look at the params just often enough that not having to parse the
#defines would add real value for me.
Any objections?