From 9eb468d2b6133ffed64eaa28ef8e0d579c9870c8 Mon Sep 17 00:00:00 2001 From: Manish Bhardwaj Date: Fri, 24 Feb 2023 15:05:50 +0530 Subject: [PATCH] nvidia-oot: fix sparse issue in hv pm ctrl driver Using this patch we are fixing below sparse errors :- 1. drivers/virt/tegra/tegra_hv_pm_ctl.c:336:37: warning: incorrect type in initializer (different base types) 2. drivers/virt/tegra/tegra_hv_pm_ctl.c:337:39: warning: incorrect type in initializer (different base types) Bug 3954363 Signed-off-by: Manish Bhardwaj Change-Id: I30e4b153fef14dbe4849359a03e7ba4a1bc48f2f Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2863103 Reviewed-by: Sachin Nikam Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-cert GVS: Gerrit_Virtual_Submit --- drivers/virt/tegra/tegra_hv_pm_ctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/virt/tegra/tegra_hv_pm_ctl.c b/drivers/virt/tegra/tegra_hv_pm_ctl.c index f695331a..94f2100c 100644 --- a/drivers/virt/tegra/tegra_hv_pm_ctl.c +++ b/drivers/virt/tegra/tegra_hv_pm_ctl.c @@ -333,8 +333,8 @@ static __poll_t tegra_hv_pm_ctl_poll(struct file *filp, { struct tegra_hv_pm_ctl *data = filp->private_data; __poll_t req_events = poll_requested_events(table); - __poll_t read_mask = POLLIN | POLLRDNORM; - __poll_t write_mask = POLLOUT | POLLWRNORM; + __poll_t read_mask = ((__force __poll_t)POLLIN) | ((__force __poll_t)POLLRDNORM); + __poll_t write_mask = ((__force __poll_t)POLLOUT) | ((__force __poll_t)POLLWRNORM); __poll_t mask = 0; mutex_lock(&data->mutex_lock);