1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Generic SRAM Driver Interface */ 3 #ifndef __LINUX_SRAM_H__ 4 #define __LINUX_SRAM_H__ 5 6 struct gen_pool; 7 8 #ifdef CONFIG_SRAM_EXEC 9 void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, size_t size); 10 #else sram_exec_copy(struct gen_pool * pool,void * dst,void * src,size_t size)11static inline void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, 12 size_t size) 13 { 14 return NULL; 15 } 16 #endif /* CONFIG_SRAM_EXEC */ 17 #endif /* __LINUX_SRAM_H__ */ 18