summaryrefslogtreecommitdiffstats
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-06-17 13:53:17 -0500
committerDavid S. Miller <davem@davemloft.net>2020-06-18 20:36:07 -0700
commit1260e772dd184b29266b552d90cbf80f6ee4b066 (patch)
tree3e5791b2b80ecbee282b601bf230af6e4a6f0153 /include/linux/debugobjects.h
parent427d5838e99632e9218eae752009c873cade89ac (diff)
downloadcachepc-linux-1260e772dd184b29266b552d90cbf80f6ee4b066.tar.gz
cachepc-linux-1260e772dd184b29266b552d90cbf80f6ee4b066.zip
enetc: Use struct_size() helper in kzalloc()
Make use of the struct_size() helper instead of an open-coded version in order to avoid any potential type mistakes. This code was detected with the help of Coccinelle and, audited and fixed manually. Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions