From ef7772605e0724e692b30d4781cd745a1a948a53 Mon Sep 17 00:00:00 2001 From: Manish Bhardwaj Date: Fri, 24 Feb 2023 15:06:28 +0530 Subject: [PATCH] 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 Change-Id: I7ac696b0f4c7eef684bebdf7543022d666edb3d0 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2863104 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-cert Reviewed-by: Suresh Venkatachalam Reviewed-by: Sachin Nikam GVS: Gerrit_Virtual_Submit --- drivers/virt/tegra/tegra_hv_vcpu_yield.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virt/tegra/tegra_hv_vcpu_yield.c b/drivers/virt/tegra/tegra_hv_vcpu_yield.c index 06c1fc57..98c25f1d 100644 --- a/drivers/virt/tegra/tegra_hv_vcpu_yield.c +++ b/drivers/virt/tegra/tegra_hv_vcpu_yield.c @@ -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,