[build] Provide common ARRAY_SIZE() definition
authorMichael Brown <mcb30@ipxe.org>
Fri, 10 Mar 2017 15:40:17 +0000 (15:40 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 10 Mar 2017 15:44:11 +0000 (15:44 +0000)
commitafdebdc163268bfc31d927cdfbbf92ed1aa93a6f
tree20ed64d9db9b9f356137daf73a87538edebc3b7a
parent4524cc11bfc5628e620cf4b42785ee6aee16ccb0
[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>
src/drivers/net/ath/ath.h
src/drivers/net/ath/ath5k/ath5k.h
src/drivers/net/forcedeth.h
src/drivers/net/pcnet32.h
src/drivers/net/rtl818x/rtl8185_rtl8225.c
src/drivers/net/skge.h
src/drivers/net/tg3/tg3.h
src/drivers/net/vxge/vxge_config.h
src/include/compiler.h