+17
−0
Loading
This is a very basic test that will check that people don't do stuff like: struct spdk_foo foo; foo.size = sizeof(struct spdk_foo); in structures that should use SPDK_SIZEOF() to calculate their size. The check is very basic and it won't find stuff like: foo.size = sizeof(foo); but should be enough catch a lot, while not producing much false positives at the same time. Signed-off-by:Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: Ic32a12530c71ee12003ba884f4f5574467f232d8 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18603 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Michal Berger <michal.berger@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>