Skip to content

Commit

Permalink
stddef: Fix kerndoc for sizeof_field() and offsetofend()
Browse files Browse the repository at this point in the history
Adjust the comment styles so these are correctly identified as valid
kern-doc.

Signed-off-by: Kees Cook <[email protected]>
  • Loading branch information
kees committed Sep 25, 2021
1 parent 0e17ad8 commit e7f18c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/stddef.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ enum {
#endif

/**
* sizeof_field(TYPE, MEMBER)
* sizeof_field() - Report the size of a struct field in bytes
*
* @TYPE: The structure containing the field of interest
* @MEMBER: The field to return the size of
*/
#define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER))

/**
* offsetofend(TYPE, MEMBER)
* offsetofend() - Report the offset of a struct field within the struct
*
* @TYPE: The type of the structure
* @MEMBER: The member within the structure to get the end offset of
Expand Down

0 comments on commit e7f18c2

Please sign in to comment.