Skip to content

Commit

Permalink
kernel.h: Remove unused FIELD_SIZEOF()
Browse files Browse the repository at this point in the history
Now that all callers of FIELD_SIZEOF() have been converted to
sizeof_field(), remove the unused prior macro.

Signed-off-by: Kees Cook <[email protected]>
  • Loading branch information
kees committed Dec 30, 2019
1 parent fd69884 commit 1f07dcc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,6 @@
*/
#define round_down(x, y) ((x) & ~__round_mask(x, y))

/**
* FIELD_SIZEOF - get the size of a struct's field
* @t: the target struct
* @f: the target struct's field
* Return: the size of @f in the struct definition without having a
* declared instance of @t.
*/
#define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f))

#define typeof_member(T, m) typeof(((T*)0)->m)

#define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP
Expand Down

0 comments on commit 1f07dcc

Please sign in to comment.