diff options
author | Chen Gang <gang.chen.5i5j@gmail.com> | 2013-11-28 03:51:45 -0500 |
---|---|---|
committer | Richard Kuo <rkuo@codeaurora.org> | 2014-04-04 19:20:00 -0400 |
commit | 6becd400f8450062b891dee7e68b14f203e792a5 (patch) | |
tree | cff30f26df6170e41b443d558de520cf1ea90537 /arch/hexagon | |
parent | 568210f042dc143c93851a3a5bb2f854916396c9 (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.h | 72 |
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 | ||
57 | enum VM_CACHE_OPS { | 57 | enum 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 | ||
67 | enum VM_INT_OPS { | 67 | enum 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 | ||
81 | extern void _K_VM_event_vector(void); | 81 | extern void _K_VM_event_vector(void); |
@@ -98,95 +98,95 @@ long __vmvpid(void); | |||
98 | 98 | ||
99 | static inline long __vmcache_ickill(void) | 99 | static inline long __vmcache_ickill(void) |
100 | { | 100 | { |
101 | return __vmcache(ickill, 0, 0); | 101 | return __vmcache(hvmc_ickill, 0, 0); |
102 | } | 102 | } |
103 | 103 | ||
104 | static inline long __vmcache_dckill(void) | 104 | static inline long __vmcache_dckill(void) |
105 | { | 105 | { |
106 | return __vmcache(dckill, 0, 0); | 106 | return __vmcache(hvmc_dckill, 0, 0); |
107 | } | 107 | } |
108 | 108 | ||
109 | static inline long __vmcache_l2kill(void) | 109 | static inline long __vmcache_l2kill(void) |
110 | { | 110 | { |
111 | return __vmcache(l2kill, 0, 0); | 111 | return __vmcache(hvmc_l2kill, 0, 0); |
112 | } | 112 | } |
113 | 113 | ||
114 | static inline long __vmcache_dccleaninva(unsigned long addr, unsigned long len) | 114 | static 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 | ||
119 | static inline long __vmcache_icinva(unsigned long addr, unsigned long len) | 119 | static 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 | ||
124 | static inline long __vmcache_idsync(unsigned long addr, | 124 | static 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 | ||
130 | static inline long __vmcache_fetch_cfg(unsigned long val) | 130 | static 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 | ||
137 | static inline long __vmintop_nop(void) | 137 | static 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 | ||
142 | static inline long __vmintop_globen(long i) | 142 | static 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 | ||
147 | static inline long __vmintop_globdis(long i) | 147 | static 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 | ||
152 | static inline long __vmintop_locen(long i) | 152 | static 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 | ||
157 | static inline long __vmintop_locdis(long i) | 157 | static 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 | ||
162 | static inline long __vmintop_affinity(long i, long cpu) | 162 | static 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 | ||
167 | static inline long __vmintop_get(void) | 167 | static 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 | ||
172 | static inline long __vmintop_peek(void) | 172 | static 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 | ||
177 | static inline long __vmintop_status(long i) | 177 | static 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 | ||
182 | static inline long __vmintop_post(long i) | 182 | static 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 | ||
187 | static inline long __vmintop_clear(long i) | 187 | static 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 */ |