aboutsummaryrefslogtreecommitdiffstats
path: root/arch/hexagon
diff options
context:
space:
mode:
authorChen Gang <gang.chen.5i5j@gmail.com>2013-11-28 03:51:45 -0500
committerRichard Kuo <rkuo@codeaurora.org>2014-04-04 19:20:00 -0400
commit6becd400f8450062b891dee7e68b14f203e792a5 (patch)
treecff30f26df6170e41b443d558de520cf1ea90537 /arch/hexagon
parent568210f042dc143c93851a3a5bb2f854916396c9 (diff)
arch: hexagon: include: asm: add prefix "hvm[ci]_" for all enum members in "hexagon_vm.h"
Append "hvmc_" or "hvmi_" to all related enum members (which are too common to make conflict with another sub-systems). The related error with allmodconfig: CC [M] drivers/md/raid1.o drivers/md/raid1.c:1440:13: error: 'status' redeclared as different kind of symbol arch/hexagon/include/asm/hexagon_vm.h:76:2: note: previous definition of 'status' was here Also use 'affinity' instead of 'locdis' for __vmintop_affinity(). Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
Diffstat (limited to 'arch/hexagon')
-rw-r--r--arch/hexagon/include/asm/hexagon_vm.h72
1 files changed, 36 insertions, 36 deletions
diff --git a/arch/hexagon/include/asm/hexagon_vm.h b/arch/hexagon/include/asm/hexagon_vm.h
index 67bb6d6f3337..1f6918b428de 100644
--- a/arch/hexagon/include/asm/hexagon_vm.h
+++ b/arch/hexagon/include/asm/hexagon_vm.h
@@ -55,27 +55,27 @@
55#ifndef __ASSEMBLY__ 55#ifndef __ASSEMBLY__
56 56
57enum VM_CACHE_OPS { 57enum VM_CACHE_OPS {
58 ickill, 58 hvmc_ickill,
59 dckill, 59 hvmc_dckill,
60 l2kill, 60 hvmc_l2kill,
61 dccleaninva, 61 hvmc_dccleaninva,
62 icinva, 62 hvmc_icinva,
63 idsync, 63 hvmc_idsync,
64 fetch_cfg 64 hvmc_fetch_cfg
65}; 65};
66 66
67enum VM_INT_OPS { 67enum VM_INT_OPS {
68 nop, 68 hvmi_nop,
69 globen, 69 hvmi_globen,
70 globdis, 70 hvmi_globdis,
71 locen, 71 hvmi_locen,
72 locdis, 72 hvmi_locdis,
73 affinity, 73 hvmi_affinity,
74 get, 74 hvmi_get,
75 peek, 75 hvmi_peek,
76 status, 76 hvmi_status,
77 post, 77 hvmi_post,
78 clear 78 hvmi_clear
79}; 79};
80 80
81extern void _K_VM_event_vector(void); 81extern void _K_VM_event_vector(void);
@@ -98,95 +98,95 @@ long __vmvpid(void);
98 98
99static inline long __vmcache_ickill(void) 99static inline long __vmcache_ickill(void)
100{ 100{
101 return __vmcache(ickill, 0, 0); 101 return __vmcache(hvmc_ickill, 0, 0);
102} 102}
103 103
104static inline long __vmcache_dckill(void) 104static inline long __vmcache_dckill(void)
105{ 105{
106 return __vmcache(dckill, 0, 0); 106 return __vmcache(hvmc_dckill, 0, 0);
107} 107}
108 108
109static inline long __vmcache_l2kill(void) 109static inline long __vmcache_l2kill(void)
110{ 110{
111 return __vmcache(l2kill, 0, 0); 111 return __vmcache(hvmc_l2kill, 0, 0);
112} 112}
113 113
114static inline long __vmcache_dccleaninva(unsigned long addr, unsigned long len) 114static inline long __vmcache_dccleaninva(unsigned long addr, unsigned long len)
115{ 115{
116 return __vmcache(dccleaninva, addr, len); 116 return __vmcache(hvmc_dccleaninva, addr, len);
117} 117}
118 118
119static inline long __vmcache_icinva(unsigned long addr, unsigned long len) 119static inline long __vmcache_icinva(unsigned long addr, unsigned long len)
120{ 120{
121 return __vmcache(icinva, addr, len); 121 return __vmcache(hvmc_icinva, addr, len);
122} 122}
123 123
124static inline long __vmcache_idsync(unsigned long addr, 124static inline long __vmcache_idsync(unsigned long addr,
125 unsigned long len) 125 unsigned long len)
126{ 126{
127 return __vmcache(idsync, addr, len); 127 return __vmcache(hvmc_idsync, addr, len);
128} 128}
129 129
130static inline long __vmcache_fetch_cfg(unsigned long val) 130static inline long __vmcache_fetch_cfg(unsigned long val)
131{ 131{
132 return __vmcache(fetch_cfg, val, 0); 132 return __vmcache(hvmc_fetch_cfg, val, 0);
133} 133}
134 134
135/* interrupt operations */ 135/* interrupt operations */
136 136
137static inline long __vmintop_nop(void) 137static inline long __vmintop_nop(void)
138{ 138{
139 return __vmintop(nop, 0, 0, 0, 0); 139 return __vmintop(hvmi_nop, 0, 0, 0, 0);
140} 140}
141 141
142static inline long __vmintop_globen(long i) 142static inline long __vmintop_globen(long i)
143{ 143{
144 return __vmintop(globen, i, 0, 0, 0); 144 return __vmintop(hvmi_globen, i, 0, 0, 0);
145} 145}
146 146
147static inline long __vmintop_globdis(long i) 147static inline long __vmintop_globdis(long i)
148{ 148{
149 return __vmintop(globdis, i, 0, 0, 0); 149 return __vmintop(hvmi_globdis, i, 0, 0, 0);
150} 150}
151 151
152static inline long __vmintop_locen(long i) 152static inline long __vmintop_locen(long i)
153{ 153{
154 return __vmintop(locen, i, 0, 0, 0); 154 return __vmintop(hvmi_locen, i, 0, 0, 0);
155} 155}
156 156
157static inline long __vmintop_locdis(long i) 157static inline long __vmintop_locdis(long i)
158{ 158{
159 return __vmintop(locdis, i, 0, 0, 0); 159 return __vmintop(hvmi_locdis, i, 0, 0, 0);
160} 160}
161 161
162static inline long __vmintop_affinity(long i, long cpu) 162static inline long __vmintop_affinity(long i, long cpu)
163{ 163{
164 return __vmintop(locdis, i, cpu, 0, 0); 164 return __vmintop(hvmi_affinity, i, cpu, 0, 0);
165} 165}
166 166
167static inline long __vmintop_get(void) 167static inline long __vmintop_get(void)
168{ 168{
169 return __vmintop(get, 0, 0, 0, 0); 169 return __vmintop(hvmi_get, 0, 0, 0, 0);
170} 170}
171 171
172static inline long __vmintop_peek(void) 172static inline long __vmintop_peek(void)
173{ 173{
174 return __vmintop(peek, 0, 0, 0, 0); 174 return __vmintop(hvmi_peek, 0, 0, 0, 0);
175} 175}
176 176
177static inline long __vmintop_status(long i) 177static inline long __vmintop_status(long i)
178{ 178{
179 return __vmintop(status, i, 0, 0, 0); 179 return __vmintop(hvmi_status, i, 0, 0, 0);
180} 180}
181 181
182static inline long __vmintop_post(long i) 182static inline long __vmintop_post(long i)
183{ 183{
184 return __vmintop(post, i, 0, 0, 0); 184 return __vmintop(hvmi_post, i, 0, 0, 0);
185} 185}
186 186
187static inline long __vmintop_clear(long i) 187static inline long __vmintop_clear(long i)
188{ 188{
189 return __vmintop(clear, i, 0, 0, 0); 189 return __vmintop(hvmi_clear, i, 0, 0, 0);
190} 190}
191 191
192#else /* Only assembly code should reference these */ 192#else /* Only assembly code should reference these */