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/forcedeth.h | |
| 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/forcedeth.h')
| -rw-r--r-- | src/drivers/net/forcedeth.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/drivers/net/forcedeth.h b/src/drivers/net/forcedeth.h index e1cf6f71a..3a372dc1b 100644 --- a/src/drivers/net/forcedeth.h +++ b/src/drivers/net/forcedeth.h @@ -36,8 +36,6 @@ FILE_LICENCE ( GPL2_OR_LATER ); #ifndef _FORCEDETH_H_ #define _FORCEDETH_H_ -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) - struct ring_desc { u32 buf; u32 flaglen; |
