mm: Move kasan.h from mm/kasan to include/nuttx/mm

so other parts of the system can use it.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2024-03-10 23:20:46 +08:00 committed by Xiang Xiao
parent 47ffb9019f
commit 9c6bed4b00
10 changed files with 13 additions and 17 deletions

View File

@ -1,5 +1,5 @@
/****************************************************************************
* mm/kasan/kasan.h
* include/nuttx/mm/kasan.h
*
* SPDX-License-Identifier: Apache-2.0
*
@ -20,8 +20,8 @@
*
****************************************************************************/
#ifndef __MM_KASAN_KASAN_H
#define __MM_KASAN_KASAN_H
#ifndef __INCLUDE_NUTTX_MM_KASAN_H
#define __INCLUDE_NUTTX_MM_KASAN_H
/****************************************************************************
* Included Files
@ -150,4 +150,4 @@ void kasan_init_early(void);
#endif /* CONFIG_MM_KASAN */
#endif /* __MM_KASAN_KASAN_H */
#endif /* __INCLUDE_NUTTX_MM_KASAN_H */

View File

@ -24,13 +24,12 @@
* Included Files
****************************************************************************/
#include <nuttx/mm/kasan.h>
#include <nuttx/spinlock.h>
#include <assert.h>
#include <stdint.h>
#include "kasan.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -22,6 +22,7 @@
* Included Files
****************************************************************************/
#include <nuttx/mm/kasan.h>
#include <nuttx/irq.h>
#include <assert.h>
@ -30,8 +31,6 @@
#include <stdint.h>
#include <stdio.h>
#include "kasan.h"
/****************************************************************************
* Private Functions
****************************************************************************/

View File

@ -31,11 +31,10 @@
#include <syslog.h>
#include <nuttx/kmalloc.h>
#include <nuttx/mm/kasan.h>
#include <nuttx/mm/mempool.h>
#include <nuttx/sched.h>
#include "kasan/kasan.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -32,9 +32,9 @@
#include <nuttx/arch.h>
#include <nuttx/sched.h>
#include <nuttx/mm/mm.h>
#include <nuttx/mm/kasan.h>
#include "mm_heap/mm.h"
#include "kasan/kasan.h"
/****************************************************************************
* Private Functions

View File

@ -31,9 +31,9 @@
#include <debug.h>
#include <nuttx/mm/mm.h>
#include <nuttx/mm/kasan.h>
#include "mm_heap/mm.h"
#include "kasan/kasan.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -32,10 +32,10 @@
#include <nuttx/arch.h>
#include <nuttx/mm/mm.h>
#include <nuttx/mm/kasan.h>
#include <nuttx/sched.h>
#include "mm_heap/mm.h"
#include "kasan/kasan.h"
/****************************************************************************
* Private Functions

View File

@ -29,9 +29,9 @@
#include <assert.h>
#include <nuttx/mm/mm.h>
#include <nuttx/mm/kasan.h>
#include "mm_heap/mm.h"
#include "kasan/kasan.h"
/****************************************************************************
* Public Functions

View File

@ -33,9 +33,9 @@
#include <assert.h>
#include <nuttx/mm/mm.h>
#include <nuttx/mm/kasan.h>
#include "mm_heap/mm.h"
#include "kasan/kasan.h"
/****************************************************************************
* Public Functions

View File

@ -40,11 +40,10 @@
#include <nuttx/fs/procfs.h>
#include <nuttx/mutex.h>
#include <nuttx/mm/mm.h>
#include <nuttx/sched.h>
#include <nuttx/mm/kasan.h>
#include <nuttx/mm/mempool.h>
#include "tlsf/tlsf.h"
#include "kasan/kasan.h"
/****************************************************************************
* Pre-processor Definitions