#ifndef __SRAM_H
#define __SRAM_H
struct sram_config { … };
struct sram_partition { … };
struct sram_dev { … };
struct sram_reserve { … };
#ifdef CONFIG_SRAM_EXEC
int sram_check_protect_exec(struct sram_dev *sram, struct sram_reserve *block,
struct sram_partition *part);
int sram_add_protect_exec(struct sram_partition *part);
#else
static inline int sram_check_protect_exec(struct sram_dev *sram,
struct sram_reserve *block,
struct sram_partition *part)
{ … }
static inline int sram_add_protect_exec(struct sram_partition *part)
{ … }
#endif
#endif