Whamcloud - gitweb
LU-13485 libcfs: FIELD_SIZEOF macro removed
authorShaun Tancheff <shaun.tancheff@hpe.com>
Tue, 11 May 2021 03:59:41 +0000 (20:59 -0700)
committerLi Xi <lixi@ddn.com>
Tue, 18 May 2021 01:46:36 +0000 (01:46 +0000)
commitc4ec598b501179ce97bc6cd591e26e7c883092db
treea6aea453d75264f166e3c0c2f6b0819a1f57f7ba
parentcf74b3413a24f3b2d6947b096464a7b6d5ee017f
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.

Lustre-change: https://review.whamcloud.com/39710
Lustre-commit: 03b7befcc0a9308cbac91370046f6c00e5cf1005

Test-Parameters: trivial
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I48ca9abb931d58919d788199e5089984c9e854dd
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/43640
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