drivers: platform: nvadsp: Fix sparse issues

Fix multiple instances of the following issues -
- warning: incorrect type in argument 2 (different address spaces)
- warning: symbol 'file_size' was not declared. Should it be static?

Bug 3528414

Change-Id: I2cbda8dbfc98b134f36ec3c291a5147d96c6ff82
Signed-off-by: Niranjan Dighe <ndighe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2684747
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Niranjan Dighe
2022-03-21 23:28:58 +05:30
committed by Laxman Dewangan
parent 19cf0a1232
commit 3fa96a4417
3 changed files with 17 additions and 14 deletions

View File

@@ -546,7 +546,7 @@ 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);
writel(val, to + i);
*(int *)(to + i) = val;
}
}
@@ -969,6 +969,7 @@ EXPORT_SYMBOL(nvadsp_os_load);
* 0 - min emc freq
* > 0 - expected emc freq at this adsp freq
*/
#ifdef CONFIG_TEGRA_ADSP_DFS
u32 adsp_to_emc_freq(u32 adspfreq)
{
/*
@@ -980,6 +981,7 @@ u32 adsp_to_emc_freq(u32 adspfreq)
else
return 0; /* emc min */
}
#endif
static int nvadsp_set_ape_emc_freq(struct nvadsp_drv_data *drv_data)
{