mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
Move include/nuttx/mm.h to include/nuttx/mm/mm.h
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
# include <signal.h>
|
||||
# include <nuttx/mm.h>
|
||||
# include <nuttx/mm/mm.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ARCH_ADDRENV
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <nuttx/mm.h>
|
||||
#include <nuttx/mm/mm.h>
|
||||
#include <nuttx/userspace.h>
|
||||
|
||||
#if !defined(CONFIG_BUILD_PROTECTED) || defined(__KERNEL__)
|
||||
@@ -151,7 +151,7 @@ extern "C"
|
||||
# define kmm_free(p) umm_free(p)
|
||||
|
||||
#else
|
||||
/* Otherwise, the kernel-space allocators are declared in include/nuttx/mm.h
|
||||
/* Otherwise, the kernel-space allocators are declared in include/nuttx/mm/mm.h
|
||||
* and we can call them directly.
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* include/nuttx/mm.h
|
||||
* include/nuttx/mm/mm.h
|
||||
*
|
||||
* Copyright (C) 2007-2009, 2013-2014 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@@ -33,8 +33,8 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __INCLUDE_NUTTX_MM_H
|
||||
#define __INCLUDE_NUTTX_MM_H
|
||||
#ifndef __INCLUDE_NUTTX_MM_MM_H
|
||||
#define __INCLUDE_NUTTX_MM_MM_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
@@ -488,4 +488,4 @@ int mm_size2ndx(size_t size);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __INCLUDE_NUTTX_MM_H */
|
||||
#endif /* __INCLUDE_NUTTX_MM_MM_H */
|
||||
Reference in New Issue
Block a user