diff options
author | Michael Brown | 2017-03-10 16:40:17 +0100 |
---|---|---|
committer | Michael Brown | 2017-03-10 16:44:11 +0100 |
commit | afdebdc163268bfc31d927cdfbbf92ed1aa93a6f (patch) | |
tree | 20ed64d9db9b9f356137daf73a87538edebc3b7a /src/drivers/net/vxge | |
parent | [iscsi] Don't close when receiving NOP-In (diff) | |
download | ipxe-afdebdc163268bfc31d927cdfbbf92ed1aa93a6f.tar.gz ipxe-afdebdc163268bfc31d927cdfbbf92ed1aa93a6f.tar.xz ipxe-afdebdc163268bfc31d927cdfbbf92ed1aa93a6f.zip |
[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>
Diffstat (limited to 'src/drivers/net/vxge')
-rw-r--r-- | src/drivers/net/vxge/vxge_config.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/drivers/net/vxge/vxge_config.h b/src/drivers/net/vxge/vxge_config.h index bf25134a..59e8a796 100644 --- a/src/drivers/net/vxge/vxge_config.h +++ b/src/drivers/net/vxge/vxge_config.h @@ -27,10 +27,6 @@ FILE_LICENCE(GPL2_ONLY); #define WAIT_FACTOR 1 -#ifndef ARRAY_SIZE -#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) -#endif - #define VXGE_HW_MAC_MAX_WIRE_PORTS 2 #define VXGE_HW_MAC_MAX_AGGR_PORTS 2 #define VXGE_HW_MAC_MAX_PORTS 3 |