mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
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 <mbhardwaj@nvidia.com> Change-Id: I30e4b153fef14dbe4849359a03e7ba4a1bc48f2f Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2863103 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
25095addad
commit
9eb468d2b6
@@ -333,8 +333,8 @@ static __poll_t tegra_hv_pm_ctl_poll(struct file *filp,
|
|||||||
{
|
{
|
||||||
struct tegra_hv_pm_ctl *data = filp->private_data;
|
struct tegra_hv_pm_ctl *data = filp->private_data;
|
||||||
__poll_t req_events = poll_requested_events(table);
|
__poll_t req_events = poll_requested_events(table);
|
||||||
__poll_t read_mask = POLLIN | POLLRDNORM;
|
__poll_t read_mask = ((__force __poll_t)POLLIN) | ((__force __poll_t)POLLRDNORM);
|
||||||
__poll_t write_mask = POLLOUT | POLLWRNORM;
|
__poll_t write_mask = ((__force __poll_t)POLLOUT) | ((__force __poll_t)POLLWRNORM);
|
||||||
__poll_t mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
mutex_lock(&data->mutex_lock);
|
mutex_lock(&data->mutex_lock);
|
||||||
|
|||||||
Reference in New Issue
Block a user