File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
arch/mips/cavium-octeon/executive Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,6 @@ static struct cvmx_bootmem_desc *cvmx_bootmem_desc;
44
44
45
45
/* See header file for descriptions of functions */
46
46
47
- /**
48
- * This macro returns the size of a member of a structure.
49
- * Logically it is the same as "sizeof(s::field)" in C++, but
50
- * C lacks the "::" operator.
51
- */
52
- #define SIZEOF_FIELD (s , field ) sizeof(((s *)NULL)->field)
53
-
54
47
/**
55
48
* This macro returns a member of the
56
49
* cvmx_bootmem_named_block_desc_t structure. These members can't
@@ -65,7 +58,7 @@ static struct cvmx_bootmem_desc *cvmx_bootmem_desc;
65
58
#define CVMX_BOOTMEM_NAMED_GET_FIELD (addr , field ) \
66
59
__cvmx_bootmem_desc_get(addr, \
67
60
offsetof(struct cvmx_bootmem_named_block_desc, field), \
68
- SIZEOF_FIELD (struct cvmx_bootmem_named_block_desc, field))
61
+ sizeof_field (struct cvmx_bootmem_named_block_desc, field))
69
62
70
63
/**
71
64
* This function is the implementation of the get macros defined
You can’t perform that action at this time.
0 commit comments