Commit 06588afe authored by Nishanth Menon's avatar Nishanth Menon

[LINUX][MEM] Remove inline from global functions

inline with a static variable causes gcc 5.2 to croak and die

Fixes:
linux/linux_mem.h:51:14: warning: inline function ‘lmem_phys2virt’ declared but never defined
 inline void *lmem_phys2virt(void *addr);
              ^
linux/linux_mem.c:239:34: warning: ‘mem_map_base’ is static but used in inline function ‘lmem_phys2virt’ which is not static
  return (void *) ((unsigned int) mem_map_base +
                                  ^
/bin/sh: 1: git: not found
common/mem.o: In function `mem_phys2virt':
mem.c:(.text+0x34): undefined reference to `lmem_phys2virt'
collect2: error: ld returned 1 exit status
Reported-by: default avatarRobert C Nelson <robertcnelson@gmail.com>
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
parent 50631878
......@@ -230,7 +230,7 @@ void lmem_unmap_address(void *vaddr)
* @param[in] addr: memory physical address
* @DESCRIPTION convert memory physical address to virtual address.
*//*------------------------------------------------------------------------ */
inline void *lmem_phys2virt(void *addr)
void *lmem_phys2virt(void *addr)
{
dprintf("%s(0x%08X)=0x%08X\n", __func__,
(unsigned int) addr,
......
......@@ -48,7 +48,7 @@
int lmem_map(unsigned int addr);
void lmem_unmap(void);
inline void *lmem_phys2virt(void *addr);
void *lmem_phys2virt(void *addr);
void *lmem_map_address(unsigned int addr);
void lmem_unmap_address(void *vaddr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment