summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5258f3b)
raw | patch | inline | side by side (parent: 5258f3b)
author | Volodymyr Mieshkov <volodymyr.mieshkov@ti.com> | |
Tue, 29 Jan 2013 16:15:39 +0000 (18:15 +0200) | ||
committer | Pradeep Venkatasubbarao <pradeepv@ti.com> | |
Fri, 13 Sep 2013 06:03:46 +0000 (11:33 +0530) |
Next build warnings are fixed:
drivers/misc/gcx/gccore/gcmain.c: In function 'gc_map':
drivers/misc/gcx/gccore/gcmain.c:690: warning: assignment from incompatible pointer type
drivers/misc/gcx/gccore/gcmmu.c: In function 'virt2phys':
drivers/misc/gcx/gccore/gcmmu.c:255: warning: passing argument 1 of 'pmd_offset' from incompatible pointer type
omap/arch/arm/include/asm/pgtable-2level.h:156: note: expected 'struct pud_t *' but argument is of type 'pmdval_t (*)[2]'
Change-Id: Ifd90c99f248fe66e0cfe887a4ec535b07637adef
Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
drivers/misc/gcx/gccore/gcmain.c: In function 'gc_map':
drivers/misc/gcx/gccore/gcmain.c:690: warning: assignment from incompatible pointer type
drivers/misc/gcx/gccore/gcmmu.c: In function 'virt2phys':
drivers/misc/gcx/gccore/gcmmu.c:255: warning: passing argument 1 of 'pmd_offset' from incompatible pointer type
omap/arch/arm/include/asm/pgtable-2level.h:156: note: expected 'struct pud_t *' but argument is of type 'pmdval_t (*)[2]'
Change-Id: Ifd90c99f248fe66e0cfe887a4ec535b07637adef
Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
drivers/misc/gcx/gccore/gcmain.c | patch | blob | history | |
drivers/misc/gcx/gccore/gcmmu.c | patch | blob | history |
index 0e9d4b8f8ec5b4ac59364726f3be8f64ce5d18a1..26939ed0e0ddac5d942cb8021bf0f5ce7ee6c56c 100644 (file)
} else {
mem.base = 0;
mem.offset = gcimap->buf.offset;
- mem.pages = gcimap->pagearray;
+ mem.pages = (pte_t *)gcimap->pagearray;
GCDBG(GCZONE_MAPPING, " pagearray = 0x%08X\n",
(unsigned int) gcimap->pagearray);
index 42e68e465333c7bc43e99be501755794c5d5cf1f..31a873a09ac1abeb487ee244eec9563f344a05e4 100644 (file)
return GCERR_MMU_PAGE_BAD;
/* Get the pointer to the entry in PMD for the address. */
- pmd = pmd_offset(pgd, logical);
+ pmd = pmd_offset((pud_t *)pgd, logical);
if (pmd_none(*pmd) || pmd_bad(*pmd))
return GCERR_MMU_PAGE_BAD;