mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
a783454143
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>
22 lines
489 B
C
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
|