diff --git a/arch/arm/src/armv7-a/arm_addrenv.c b/arch/arm/src/armv7-a/arm_addrenv.c index 45cf60882ea..de5df1473ab 100644 --- a/arch/arm/src/armv7-a/arm_addrenv.c +++ b/arch/arm/src/armv7-a/arm_addrenv.c @@ -150,13 +150,13 @@ static void set_l2_entry(FAR uint32_t *l2table, uintptr_t paddr, * Name: up_addrenv_create_region * * Description: - * Destroy one memory region. + * Create one memory region. * ****************************************************************************/ -int up_addrenv_create_region(FAR uintptr_t **list, unsigned int listlen, - uintptr_t vaddr, size_t regionsize, - uint32_t mmuflags) +static int up_addrenv_create_region(FAR uintptr_t **list, + unsigned int listlen, uintptr_t vaddr, + size_t regionsize, uint32_t mmuflags) { irqstate_t flags; uintptr_t paddr; @@ -258,8 +258,8 @@ int up_addrenv_create_region(FAR uintptr_t **list, unsigned int listlen, * ****************************************************************************/ -void up_addrenv_destroy_region(FAR uintptr_t **list, unsigned int listlen, - uintptr_t vaddr) +static void up_addrenv_destroy_region(FAR uintptr_t **list, + unsigned int listlen, uintptr_t vaddr) { irqstate_t flags; uintptr_t paddr; diff --git a/include/nuttx/arch.h b/include/nuttx/arch.h index a3ca577c82d..bb876ed850a 100644 --- a/include/nuttx/arch.h +++ b/include/nuttx/arch.h @@ -676,10 +676,10 @@ void up_allocate_pgheap(FAR void **heap_start, size_t *heap_size); * * Description: * If there is a page allocator in the configuration and if and MMU is - * available to map physcal addresses to virtual address, then function + * available to map physical addresses to virtual address, then function * must be provided by the platform-specific code. This is part of the * implementation of sbrk(). This function will allocate the requested - * number of pages using the page allocator and map them into consecuive + * number of pages using the page allocator and map them into consecutive * virtual addresses beginning with 'brkaddr' * * NOTE: This function does not use the up_ naming standard because it