summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: be6e98d)
raw | patch | inline | side by side (parent: be6e98d)
author | Volodymyr Mieshkov <volodymyr.mieshkov@ti.com> | |
Tue, 29 Jan 2013 16:15:39 +0000 (18:15 +0200) | ||
committer | Praneeth Bajjuri <praneeth@ti.com> | |
Fri, 12 Jul 2013 22:45:14 +0000 (17:45 -0500) |
Next build warnings are fixed:
--
drivers/video/omap2/omaplfb/omaplfb_linux.c:407: warning: 'OMAPLFBToUpdateMode' defined but not used
drivers/video/omap2/omaplfb/omaplfb_linux.c: In function 'OMAPLFBSetUpdateMode':
drivers/video/omap2/omaplfb/omaplfb_linux.c:609: warning: 'eUpdateMode' may be used uninitialized in this function
--
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: Ica98081e3ecf362bbf4ae10b5aa2ac9cd29a5b0f
Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
Signed-off-by: Sundar Raman <sunds@ti.com>
--
drivers/video/omap2/omaplfb/omaplfb_linux.c:407: warning: 'OMAPLFBToUpdateMode' defined but not used
drivers/video/omap2/omaplfb/omaplfb_linux.c: In function 'OMAPLFBSetUpdateMode':
drivers/video/omap2/omaplfb/omaplfb_linux.c:609: warning: 'eUpdateMode' may be used uninitialized in this function
--
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: Ica98081e3ecf362bbf4ae10b5aa2ac9cd29a5b0f
Signed-off-by: Volodymyr Mieshkov <volodymyr.mieshkov@ti.com>
Signed-off-by: Sundar Raman <sunds@ti.com>
drivers/misc/gcx/gccore/gcmain.c | patch | blob | history | |
drivers/misc/gcx/gccore/gcmmu.c | patch | blob | history | |
drivers/video/omap2/omaplfb/omaplfb_linux.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;
diff --git a/drivers/video/omap2/omaplfb/omaplfb_linux.c b/drivers/video/omap2/omaplfb/omaplfb_linux.c
index 7b674bdce1eecb49baafc83ad42e49396d1e9f25..d1643926e4500fa373b2afd231bfe1e9b611d4a7 100644 (file)
@@ -609,6 +609,7 @@ OMAPLFB_BOOL OMAPLFBSetUpdateMode(OMAPLFB_DEVINFO *psDevInfo, OMAPLFB_UPDATE_MOD
return OMAPLFB_FALSE;
}
+ eUpdateMode = OMAPLFBToUpdateMode(eMode);
res = omapfb_set_update_mode(psDevInfo->psLINFBInfo, eUpdateMode);
if (res != 0)