nvidia-oot: fix sparse error in hv vcpu yield driver

Using this patch we are fixing below sparse
errors :-
1. drivers/virt/tegra/tegra_hv_vcpu_yield.c:218:30: warning:
   symbol 'fops' was not declared. Should it be static?

Bug 3954363

Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Change-Id: I7ac696b0f4c7eef684bebdf7543022d666edb3d0
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2863104
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Suresh Venkatachalam <skathirampat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Manish Bhardwaj
2023-02-24 15:06:28 +05:30
committed by mobile promotions
parent 9eb468d2b6
commit ef7772605e

View File

@@ -215,7 +215,7 @@ out:
return ret;
}
const struct file_operations fops = {
static const struct file_operations fops = {
.owner = THIS_MODULE,
.open = tegra_hv_vcpu_yield_open,
.release = tegra_hv_vcpu_yield_release,