|
@@ -13,16 +13,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
13
|
13
|
#include <ipxe/uaccess.h>
|
14
|
14
|
#include <ipxe/init.h>
|
15
|
15
|
|
16
|
|
-/**
|
17
|
|
- * Free embedded image
|
18
|
|
- *
|
19
|
|
- * @v refcnt Reference counter
|
20
|
|
- */
|
21
|
|
-static void __attribute__ (( unused ))
|
22
|
|
-embedded_image_free ( struct refcnt *refcnt __unused ) {
|
23
|
|
- /* Do nothing */
|
24
|
|
-}
|
25
|
|
-
|
26
|
16
|
/* Raw image data for all embedded images */
|
27
|
17
|
#undef EMBED
|
28
|
18
|
#define EMBED( _index, _path, _name ) \
|
|
@@ -41,7 +31,7 @@ EMBED_ALL
|
41
|
31
|
/* Image structures for all embedded images */
|
42
|
32
|
#undef EMBED
|
43
|
33
|
#define EMBED( _index, _path, _name ) { \
|
44
|
|
- .refcnt = REF_INIT ( embedded_image_free ), \
|
|
34
|
+ .refcnt = REF_INIT ( ref_no_free ), \
|
45
|
35
|
.name = _name, \
|
46
|
36
|
.data = ( userptr_t ) ( embedded_image_ ## _index ## _data ), \
|
47
|
37
|
.len = ( size_t ) embedded_image_ ## _index ## _len, \
|