Whamcloud - gitweb
LU-13485 libcfs: FIELD_SIZEOF macro removed 10/39710/6
authorShaun Tancheff <shaun.tancheff@hpe.com>
Sun, 30 Aug 2020 18:53:09 +0000 (13:53 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 22:12:13 +0000 (22:12 +0000)
commit03b7befcc0a9308cbac91370046f6c00e5cf1005
treed2d9a61bf4357c506ec548797e097ed2fa41c6be
parentc66668387a11492ef95482add340321cb646c961
LU-13485 libcfs: FIELD_SIZEOF macro removed

Linux v4.15-rc2-5-g4229a470175b introduced sizeof_field() macro
Linux v5.5-rc4-1-g1f07dcc459d5 removed FIELD_SIZEOF() macro

Provide a sizeof_field() macro in terms of FIELD_SIZEOF()
when sizeof_field() is not provided.

Test-Parameters: trivial
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I48ca9abb931d58919d788199e5089984c9e854dd
Reviewed-on: https://review.whamcloud.com/39710
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
libcfs/include/libcfs/linux/linux-misc.h
libcfs/libcfs/crypto/keyring.c
lustre/utils/lstddef.h