Files
kernel_common_drivers/include/linux/amlogic/aml_free_reserved.h
T
Jianxiong Pan a783454143 mm: free reserved memory in ko. [1/1]
PD#SWPL-114938

Problem:
need free reserved memory in ko.

Solution:
export the free_reserved_mem func.

Verify:
t5m_ay301.

Change-Id: Ib086317c00ece3f6017bb3b3e0454915f924b28c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-03-14 04:16:28 -07:00

22 lines
489 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __AMLOGIC_FREE_RESERVED_H__
#define __AMLOGIC_FREE_RESERVED_H__
#include <linux/kconfig.h>
#if IS_ENABLED(CONFIG_AMLOGIC_MEMORY_DEBUG)
unsigned long aml_free_reserved_area(void *start, void *end, int poison, const char *s);
#else
static inline unsigned long aml_free_reserved_area(void *start,
void *end, int poison, const char *s)
{
return 0;
}
#endif
#endif