]> git.baikalelectronics.ru Git - kernel.git/commit
resource: Fix resource_size.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Tue, 7 Nov 2017 19:18:01 +0000 (03:18 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 7 Nov 2017 19:44:56 +0000 (20:44 +0100)
commit498f631ff9729abad3ae0c8cb7d3a4d74add08a5
tree6e0359c2aea693749cc2e5509de232ef5dcc66b5
parentff7482cbd6f7e11d0a6013a1498124d922ef45ea
resource: Fix resource_size.cocci warnings

arch/x86/kernel/crash.c:627:34-37: ERROR: Missing resource_size with res
arch/x86/kernel/crash.c:528:16-19: ERROR: Missing resource_size with res

 Use resource_size function on resource object
 instead of explicit computation.

Generated by: scripts/coccinelle/api/resource_size.cocci

Fixes: 2b5ad8653fa4 ("resource: Provide resource struct in resource walk callback")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Juergen Gross <jgross@suse.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: kbuild-all@01.org
Cc: tipbuild@zytor.com
Cc: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20171107191801.GA91887@lkp-snb01
arch/x86/kernel/crash.c