mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
driver: platform: tegra: Fix typecast warnings
Sparse is reporting typecast warnings in tegra_bootloader_debug driver, fix them by forcing typecast. Bug 3528414 Change-Id: Iad12b917b9a36cfca328051e7cfb0e742681eb23 Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2718125 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2864630 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
c0e1a29863
commit
d831cd1882
@@ -365,9 +365,9 @@ static int __init tegra_bootloader_debuginit(void)
|
||||
pr_info("Remapped tegra_bl_debug_data_start(0x%llx)"
|
||||
" to address(0x%llx), size(0x%llx)\n",
|
||||
(u64)tegra_bl_debug_data_start,
|
||||
(u64)ptr_bl_debug_data_start,
|
||||
(__force u64)ptr_bl_debug_data_start,
|
||||
(u64)tegra_bl_debug_data_size);
|
||||
tegra_bl_mapped_debug_data_start = ptr_bl_debug_data_start;
|
||||
tegra_bl_mapped_debug_data_start = (__force void *)ptr_bl_debug_data_start;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -395,7 +395,7 @@ static int __init tegra_bootloader_debuginit(void)
|
||||
(unsigned int)tegra_bl_bcp_start);
|
||||
goto out_err;
|
||||
}
|
||||
tegra_bl_mapped_boot_cfg_start = ptr_bl_boot_cfg_start;
|
||||
tegra_bl_mapped_boot_cfg_start = (__force void *)ptr_bl_boot_cfg_start;
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_DEBUG_FS */
|
||||
@@ -441,10 +441,10 @@ static int __init tegra_bootloader_debuginit(void)
|
||||
pr_info("Remapped tegra_bl_full_carveout(0x%llx) "
|
||||
"to address 0x%llx, size(0x%llx)\n",
|
||||
(u64)tegra_bl_full_carveout,
|
||||
(u64)ptr_bl_full_carveout,
|
||||
(__force u64)ptr_bl_full_carveout,
|
||||
(u64)SIZE_OF_FULL_CARVEOUT);
|
||||
|
||||
tegra_bl_mapped_full_carveout = ptr_bl_full_carveout;
|
||||
tegra_bl_mapped_full_carveout = (__force void *)ptr_bl_full_carveout;
|
||||
}
|
||||
|
||||
tegra_bl_mapped_prof_start = tegra_bl_mapped_full_carveout +
|
||||
@@ -546,13 +546,13 @@ static void __exit tegra_bl_debuginit_module_exit(void)
|
||||
debugfs_remove_recursive(bl_debug_node);
|
||||
|
||||
if (tegra_bl_mapped_debug_data_start)
|
||||
iounmap(tegra_bl_mapped_debug_data_start);
|
||||
iounmap((void __iomem *)tegra_bl_mapped_debug_data_start);
|
||||
|
||||
if (tegra_bl_mapped_boot_cfg_start)
|
||||
iounmap(tegra_bl_mapped_boot_cfg_start);
|
||||
iounmap((void __iomem *)tegra_bl_mapped_boot_cfg_start);
|
||||
#endif
|
||||
if (tegra_bl_mapped_full_carveout)
|
||||
iounmap(tegra_bl_mapped_full_carveout);
|
||||
iounmap((void __iomem *)tegra_bl_mapped_full_carveout);
|
||||
|
||||
if (boot_profiler_kobj) {
|
||||
sysfs_remove_file(boot_profiler_kobj,
|
||||
|
||||
Reference in New Issue
Block a user