ASoC: max98090: Guard runtime PM callbacks
[pandora-kernel.git] / drivers / staging / zcache / ramster.h
1
2 /*
3  * zcache/ramster.h
4  *
5  * Placeholder to resolve ramster references when !CONFIG_RAMSTER
6  * Real ramster.h lives in ramster subdirectory.
7  *
8  * Copyright (c) 2009-2012, Dan Magenheimer, Oracle Corp.
9  */
10
11 #ifndef _ZCACHE_RAMSTER_H_
12 #define _ZCACHE_RAMSTER_H_
13
14 #ifdef CONFIG_RAMSTER_MODULE
15 #define CONFIG_RAMSTER
16 #endif
17
18 #ifdef CONFIG_RAMSTER
19 #include "ramster/ramster.h"
20 #else
21 static inline void ramster_init(bool x, bool y, bool z, bool w)
22 {
23 }
24
25 static inline void ramster_register_pamops(struct tmem_pamops *p)
26 {
27 }
28
29 static inline int ramster_remotify_pageframe(bool b)
30 {
31         return 0;
32 }
33
34 static inline void *ramster_pampd_free(void *v, struct tmem_pool *p,
35                         struct tmem_oid *o, uint32_t u, bool b)
36 {
37         return NULL;
38 }
39
40 static inline int ramster_do_preload_flnode(struct tmem_pool *p)
41 {
42         return -1;
43 }
44
45 static inline bool pampd_is_remote(void *v)
46 {
47         return false;
48 }
49
50 static inline void ramster_count_foreign_pages(bool b, int i)
51 {
52 }
53
54 static inline void ramster_cpu_up(int cpu)
55 {
56 }
57
58 static inline void ramster_cpu_down(int cpu)
59 {
60 }
61 #endif
62
63 #endif /* _ZCACHE_RAMSTER_H */