Commit e38abda
committed
efi/runtime-wrappers: Remove duplicated macro for service returning void
__efi_call_virt() exists as an alternative for efi_call_virt() for the
sole reason that ResetSystem() returns void, and so we cannot use a call
to it in the RHS of an assignment.
Given that there is only a single user, let's drop the macro, and expand
it into the caller. That way, the remaining macro can be tightened
somewhat in terms of type safety too.
Note that the use of typeof() on the runtime service invocation does not
result in an actual call being made, but it does require a few pointer
types to be fixed up and converted into the proper function pointer
prototypes.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>1 parent c99ba6e commit e38abda
4 files changed
Lines changed: 14 additions & 24 deletions
File tree
- arch/x86/include/asm/uv
- drivers
- acpi
- firmware/efi
- include/linux
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
118 | | - | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
491 | 489 | | |
492 | 490 | | |
493 | 491 | | |
| 492 | + | |
| 493 | + | |
494 | 494 | | |
495 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
496 | 499 | | |
497 | 500 | | |
498 | 501 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
1173 | | - | |
1174 | | - | |
| 1173 | + | |
1175 | 1174 | | |
1176 | 1175 | | |
1177 | 1176 | | |
| |||
1180 | 1179 | | |
1181 | 1180 | | |
1182 | 1181 | | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
| 1182 | + | |
| 1183 | + | |
1186 | 1184 | | |
1187 | 1185 | | |
1188 | 1186 | | |
| |||
1191 | 1189 | | |
1192 | 1190 | | |
1193 | 1191 | | |
1194 | | - | |
| 1192 | + | |
1195 | 1193 | | |
1196 | 1194 | | |
1197 | 1195 | | |
| |||
1205 | 1203 | | |
1206 | 1204 | | |
1207 | 1205 | | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | 1206 | | |
1222 | 1207 | | |
1223 | 1208 | | |
| |||
0 commit comments