diff options
author | Peng Hao <flyingpeng@tencent.com> | 2023-10-13 14:30:20 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-10-17 20:29:10 +0300 |
commit | 26951ec8623e915823985e86d2c428213f110659 (patch) | |
tree | 71816178a4987f6b166c21df074c13d18db467bd /arch/x86/kvm/svm/svm.c | |
parent | bf328e22e47242695445a33da6887ba2ef9aec19 (diff) | |
download | linux-26951ec8623e915823985e86d2c428213f110659.tar.xz |
KVM: x86: Use octal for file permission
Convert all module params to octal permissions to improve code readability
and to make checkpatch happy:
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using
octal permissions '0444'.
Signed-off-by: Peng Hao <flyingpeng@tencent.com>
Link: https://lore.kernel.org/r/20231013113020.77523-1-flyingpeng@tencent.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/x86/kvm/svm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 9507df93f410..3872c4f3689c 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -199,7 +199,7 @@ module_param_named(npt, npt_enabled, bool, 0444); /* allow nested virtualization in KVM/SVM */ static int nested = true; -module_param(nested, int, S_IRUGO); +module_param(nested, int, 0444); /* enable/disable Next RIP Save */ int nrips = true; |