mirror of
https://github.com/ipxe/ipxe
synced 2026-01-03 02:13:23 +03:00
[build] Provide common ARRAY_SIZE() definition
Several files define the ARRAY_SIZE() macro as used in Linux. Provide a common definition for this in include/compiler.h. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -3284,8 +3284,6 @@ struct tg3 {
|
||||
u16 subsystem_device;
|
||||
};
|
||||
|
||||
#define ARRAY_SIZE(x) ( sizeof(x) / sizeof((x)[0]) )
|
||||
|
||||
#define TG3_TX_RING_SIZE 512
|
||||
#define TG3_DEF_TX_RING_PENDING (TG3_TX_RING_SIZE - 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user