fs/reiserfs/journal.c: change return type of dirty_one_transaction
[linux/fpc-iii.git] / arch / sh / include / asm / sram.h
blobc125cf2198683e4aedd94de781551f4b338ff600
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_SRAM_H
3 #define __ASM_SRAM_H
5 #ifdef CONFIG_HAVE_SRAM_POOL
7 #include <linux/spinlock.h>
8 #include <linux/genalloc.h>
10 /* arch/sh/mm/sram.c */
11 extern struct gen_pool *sram_pool;
13 static inline unsigned long sram_alloc(size_t len)
15 if (!sram_pool)
16 return 0UL;
18 return gen_pool_alloc(sram_pool, len);
21 static inline void sram_free(unsigned long addr, size_t len)
23 return gen_pool_free(sram_pool, addr, len);
26 #else
28 static inline unsigned long sram_alloc(size_t len)
30 return 0;
33 static inline void sram_free(unsigned long addr, size_t len)
37 #endif /* CONFIG_HAVE_SRAM_POOL */
39 #endif /* __ASM_SRAM_H */