mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
misc: mods: fix compilation with k5.4
Clean up configuration in mods_config.h and make mods_config.h identical to the official copy in Perforce. Bug 200587200 Change-Id: I035119eb44025f45d8272729ebc5a918dd8da6fe Signed-off-by: Chris Dragan <kdragan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2302436 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
b5b2def304
commit
a85680cbc5
@@ -381,7 +381,7 @@ static struct MODS_DMA_MAP *find_dma_map(struct MODS_MEM_INFO *p_mem_info,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if !defined(MODS_TEGRA) || defined(CONFIG_CPA)
|
||||
#if !defined(CONFIG_ARCH_TEGRA) || defined(CONFIG_CPA)
|
||||
static int mods_set_mem_type(u64 virt_addr, u64 pages, u8 type)
|
||||
{
|
||||
if (type == MODS_ALLOC_UNCACHED)
|
||||
@@ -2059,7 +2059,7 @@ int esc_mods_dma_unmap_memory(struct mods_client *client,
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef MODS_TEGRA
|
||||
#ifdef CONFIG_ARCH_TEGRA
|
||||
|
||||
static void clear_contiguous_cache(struct mods_client *client,
|
||||
u64 virt_start,
|
||||
@@ -2236,7 +2236,7 @@ static int mods_post_alloc(struct mods_client *client,
|
||||
cl_error("kmap failed\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
#if defined(MODS_TEGRA) && !defined(CONFIG_CPA)
|
||||
#if defined(CONFIG_ARCH_TEGRA) && !defined(CONFIG_CPA)
|
||||
clear_contiguous_cache(client,
|
||||
ptr,
|
||||
phys_addr + (i << PAGE_SHIFT),
|
||||
|
||||
Reference in New Issue
Block a user