@@ -131,6 +131,7 @@ mod tests_mmap_artificial {
131
131
132
132
const BASE : MemoryDescriptor = MemoryDescriptor {
133
133
ty : TY ,
134
+ _pad0 : 0 ,
134
135
phys_start : 0 ,
135
136
virt_start : 0 ,
136
137
page_count : 0 ,
@@ -169,6 +170,7 @@ mod tests_mmap_artificial {
169
170
170
171
const BASE : MemoryDescriptor = MemoryDescriptor {
171
172
ty : TY ,
173
+ _pad0 : 0 ,
172
174
phys_start : 0 ,
173
175
virt_start : 0 ,
174
176
page_count : 0 ,
@@ -278,6 +280,7 @@ mod tests_mmap_real {
278
280
| MemoryAttribute :: WRITE_COMBINE
279
281
| MemoryAttribute :: WRITE_THROUGH
280
282
| MemoryAttribute :: WRITE_BACK ,
283
+ ..Default :: default ( )
281
284
} ,
282
285
MemoryDescriptor {
283
286
ty : MemoryType :: CONVENTIONAL ,
@@ -288,6 +291,7 @@ mod tests_mmap_real {
288
291
| MemoryAttribute :: WRITE_COMBINE
289
292
| MemoryAttribute :: WRITE_THROUGH
290
293
| MemoryAttribute :: WRITE_BACK ,
294
+ ..Default :: default ( )
291
295
} ,
292
296
MemoryDescriptor {
293
297
ty : MemoryType :: BOOT_SERVICES_DATA ,
@@ -298,6 +302,7 @@ mod tests_mmap_real {
298
302
| MemoryAttribute :: WRITE_COMBINE
299
303
| MemoryAttribute :: WRITE_THROUGH
300
304
| MemoryAttribute :: WRITE_BACK ,
305
+ ..Default :: default ( )
301
306
} ,
302
307
MemoryDescriptor {
303
308
ty : MemoryType :: CONVENTIONAL ,
@@ -308,6 +313,7 @@ mod tests_mmap_real {
308
313
| MemoryAttribute :: WRITE_COMBINE
309
314
| MemoryAttribute :: WRITE_THROUGH
310
315
| MemoryAttribute :: WRITE_BACK ,
316
+ ..Default :: default ( )
311
317
} ,
312
318
MemoryDescriptor {
313
319
ty : MemoryType :: CONVENTIONAL ,
@@ -318,6 +324,7 @@ mod tests_mmap_real {
318
324
| MemoryAttribute :: WRITE_COMBINE
319
325
| MemoryAttribute :: WRITE_THROUGH
320
326
| MemoryAttribute :: WRITE_BACK ,
327
+ ..Default :: default ( )
321
328
} ,
322
329
MemoryDescriptor {
323
330
ty : MemoryType :: ACPI_NON_VOLATILE ,
@@ -328,6 +335,7 @@ mod tests_mmap_real {
328
335
| MemoryAttribute :: WRITE_COMBINE
329
336
| MemoryAttribute :: WRITE_THROUGH
330
337
| MemoryAttribute :: WRITE_BACK ,
338
+ ..Default :: default ( )
331
339
} ,
332
340
MemoryDescriptor {
333
341
ty : MemoryType :: CONVENTIONAL ,
@@ -338,6 +346,7 @@ mod tests_mmap_real {
338
346
| MemoryAttribute :: WRITE_COMBINE
339
347
| MemoryAttribute :: WRITE_THROUGH
340
348
| MemoryAttribute :: WRITE_BACK ,
349
+ ..Default :: default ( )
341
350
} ,
342
351
MemoryDescriptor {
343
352
ty : MemoryType :: ACPI_NON_VOLATILE ,
@@ -348,6 +357,7 @@ mod tests_mmap_real {
348
357
| MemoryAttribute :: WRITE_COMBINE
349
358
| MemoryAttribute :: WRITE_THROUGH
350
359
| MemoryAttribute :: WRITE_BACK ,
360
+ ..Default :: default ( )
351
361
} ,
352
362
MemoryDescriptor {
353
363
ty : MemoryType :: CONVENTIONAL ,
@@ -358,6 +368,7 @@ mod tests_mmap_real {
358
368
| MemoryAttribute :: WRITE_COMBINE
359
369
| MemoryAttribute :: WRITE_THROUGH
360
370
| MemoryAttribute :: WRITE_BACK ,
371
+ ..Default :: default ( )
361
372
} ,
362
373
MemoryDescriptor {
363
374
ty : MemoryType :: ACPI_NON_VOLATILE ,
@@ -368,6 +379,7 @@ mod tests_mmap_real {
368
379
| MemoryAttribute :: WRITE_COMBINE
369
380
| MemoryAttribute :: WRITE_THROUGH
370
381
| MemoryAttribute :: WRITE_BACK ,
382
+ ..Default :: default ( )
371
383
} ,
372
384
] ;
373
385
assert_eq ! ( entries. as_slice( ) , & expected) ;
0 commit comments