mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
Fix BOOT_DRIVER to assign unique and meaningful name to structure.
This commit is contained in:
@@ -66,11 +66,11 @@ struct boot_driver {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define BOOT_DRIVER( _name, _find_bus_boot_device, _bus_driver, _probe ) \
|
#define BOOT_DRIVER( _name, _find_bus_boot_device, _bus_driver, _probe ) \
|
||||||
static struct boot_driver boot_driver_ ## probe_func \
|
static struct boot_driver boot_ ## _bus_driver \
|
||||||
__attribute__ ((used,__section__(".boot_drivers"))) = { \
|
__attribute__ ((used,__section__(".boot_drivers"))) = { \
|
||||||
.name = _name, \
|
.name = _name, \
|
||||||
.find_bus_boot_device = ( void * ) _find_bus_boot_device, \
|
.find_bus_boot_device = ( void * ) _find_bus_boot_device, \
|
||||||
.bus_driver = ( void * ) _bus_driver, \
|
.bus_driver = ( void * ) &_bus_driver, \
|
||||||
.probe = ( void * ) _probe, \
|
.probe = ( void * ) _probe, \
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user