forked from nuttx/nuttx-update
kmm/kmm_map: Add missing FAR qualifiers
This commit is contained in:
parent
add569d0e5
commit
a41f752ecc
3 changed files with 7 additions and 7 deletions
|
@ -59,7 +59,7 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
uintptr_t up_addrenv_find_page(FAR arch_addrenv_t *addrenv, uintptr_t vaddr)
|
||||
uintptr_t up_addrenv_find_page(arch_addrenv_t *addrenv, uintptr_t vaddr)
|
||||
{
|
||||
uintptr_t pgdir;
|
||||
uintptr_t lnvaddr;
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __INCLUDE_NUTTX_MM_KMAP_H_
|
||||
#define __INCLUDE_NUTTX_MM_KMAP_H_
|
||||
#ifndef __INCLUDE_NUTTX_MM_KMAP_H
|
||||
#define __INCLUDE_NUTTX_MM_KMAP_H
|
||||
|
||||
/****************************************************************************
|
||||
* Name: kmm_map_initialize
|
||||
|
@ -106,4 +106,4 @@ FAR void *kmm_user_map(FAR void *uaddr, size_t size);
|
|||
|
||||
FAR void *kmm_map_user_page(FAR void *uaddr);
|
||||
|
||||
#endif /* __INCLUDE_NUTTX_MM_KMAP_H_ */
|
||||
#endif /* __INCLUDE_NUTTX_MM_KMAP_H */
|
||||
|
|
|
@ -112,7 +112,7 @@ static int get_user_pages(FAR void **pages, size_t npages, uintptr_t vaddr)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void *map_pages(FAR void **pages, size_t npages, int prot)
|
||||
static FAR void *map_pages(FAR void **pages, size_t npages, int prot)
|
||||
{
|
||||
struct mm_map_entry_s entry;
|
||||
FAR void *vaddr;
|
||||
|
@ -175,7 +175,7 @@ errout_with_vaddr:
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void *map_single_user_page(uintptr_t vaddr)
|
||||
static FAR void *map_single_user_page(uintptr_t vaddr)
|
||||
{
|
||||
FAR struct tcb_s *tcb = nxsched_self();
|
||||
uintptr_t page;
|
||||
|
@ -385,7 +385,7 @@ FAR void *kmm_user_map(FAR void *uaddr, size_t size)
|
|||
|
||||
/* No, the area must be mapped into kernel virtual address space */
|
||||
|
||||
pages = kmm_zalloc(npages * sizeof(void *));
|
||||
pages = kmm_zalloc(npages * sizeof(FAR void *));
|
||||
if (!pages)
|
||||
{
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue