mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
audio: tegra: nvadsp: Fixed typecast warnings
- Fixed typecast warning - Updated datatypes to make it compliant with kernel version > 5.10.0 Bug 3528414 Change-Id: Ief5cac399c35786e3f53dbe3199f70881e730df3 Signed-off-by: Akash Kollipara <akollipara@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2682497 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Viswanath L <viswanathl@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Ketan Patil <ketanp@nvidia.com> Reviewed-by: Sharad Gupta <sharadg@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Laxman Dewangan
parent
3fa96a4417
commit
11c878a96e
@@ -420,7 +420,7 @@ static int __init nvadsp_probe(struct platform_device *pdev)
|
||||
goto out;
|
||||
}
|
||||
drv_data->base_regs[iter] = base;
|
||||
nvadsp_add_load_mappings(res->start, base,
|
||||
nvadsp_add_load_mappings(res->start, (void __force *)base,
|
||||
resource_size(res));
|
||||
}
|
||||
|
||||
|
||||
@@ -545,8 +545,8 @@ static void copy_io_in_l(void *to, const void *from, int sz)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < sz; i += 4) {
|
||||
int val = *(int *)(from + i);
|
||||
*(int *)(to + i) = val;
|
||||
u32 val = *(u32 *)(from + i);
|
||||
writel(val, (void __iomem *)(to + i));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2224,8 +2224,13 @@ static int adsp_create_os_version(struct dentry *adsp_debugfs_root)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if KERNEL_VERSION(5, 10, 0) > LINUX_VERSION_CODE
|
||||
static unsigned int adsp_health_poll(struct file *file,
|
||||
poll_table *wait)
|
||||
#else
|
||||
static __poll_t adsp_health_poll(struct file *file,
|
||||
poll_table *wait)
|
||||
#endif
|
||||
{
|
||||
struct nvadsp_drv_data *drv_data = platform_get_drvdata(priv.pdev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user