From: Emoly Liu Date: Thu, 5 Jun 2014 22:35:54 +0000 (+0800) Subject: LU-5160 build: warn on deprecated CFS_LIST_HEAD uses X-Git-Tag: 2.6.0-RC1~95 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=65c712fe4db0042baea01fce55bb33cd750a56c6;p=fs%2Flustre-release.git LU-5160 build: warn on deprecated CFS_LIST_HEAD uses Change checkpatch.pl script to report: CFS_LIST_HEAD() is deprecated, use "struct list_head foo = LIST_HEAD_INIT(foo);" instead. Signed-off-by: Emoly Liu Change-Id: Ic667d4598c0740e2802416dd3800dacdaf378e73 Reviewed-on: http://review.whamcloud.com/10649 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: John L. Hammond --- diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index 893619f..b91310a 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -404,7 +404,7 @@ my %dep_functions = ( 'cfs_inode_t', 'struct inode', 'CFS_INIT_LIST_HEAD', 'INIT_LIST_HEAD', - 'CFS_LIST_HEAD', 'LIST_HEAD', + 'CFS_LIST_HEAD', 'struct list_head foo = LIST_HEAD_INIT(foo);', 'CFS_LIST_HEAD_INIT', 'LIST_HEAD_INIT', 'cfs_list_add', 'list_add', 'cfs_list_add_tail', 'list_add_tail',