Whamcloud - gitweb
LU-9859 libcfs: prepare for switch to container_of_safe() 36/37736/6
authorMr NeilBrown <neilb@suse.de>
Thu, 27 Feb 2020 02:21:07 +0000 (13:21 +1100)
committerOleg Drokin <green@whamcloud.com>
Tue, 17 Mar 2020 03:40:52 +0000 (03:40 +0000)
commitda63a46c51e86953dc62db76b8fa4d1a0f1aef4d
tree0215b0e80c85da4221913af2e2f1d79219aed5e1
parente4d63c854d774792f8a77b8d1e575ccc2d8c3c8b
LU-9859 libcfs: prepare for switch to container_of_safe()

Upstream Linux uses container_of_safe() rather than
container_of0().

So provide container_of_safe() for all kernels, and use spelling.txt
to suggest new code uses it.  We can then start switching code
over gradually.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ie938b76d569de6bb10b51fb0b12d79fcd0f43e7e
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Reviewed-on: https://review.whamcloud.com/37736
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/scripts/spelling.txt
libcfs/include/libcfs/libcfs.h
libcfs/include/libcfs/linux/linux-misc.h
lustre/llite/llite_nfs.c