OSDN Git Service

MIPS: OCTEON: Replace SIZEOF_FIELD() macro
authorPankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Tue, 24 Sep 2019 10:58:37 +0000 (16:28 +0530)
committerKees Cook <keescook@chromium.org>
Mon, 9 Dec 2019 18:33:50 +0000 (10:33 -0800)
commite43723292d6d7f217b572aab07f1f165189a1b56
tree46b543bb3809ff09267cea3d494fbe162e31a1af
parente42617b825f8073569da76dc4510bfa019b1c35a
MIPS: OCTEON: Replace SIZEOF_FIELD() macro

Switch to the standard sizeof_field() macro to find the size of a member
of a struct and remove the custom SIZEOF_FIELD() macro.

Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Link: https://lore.kernel.org/r/20190924105839.110713-4-pankaj.laxminarayan.bharadiya@intel.com
Co-developed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
arch/mips/cavium-octeon/executive/cvmx-bootmem.c