powerpc/64s: Fix debugfs_simple_attr.cocci warnings
authorYueHaibing <yuehaibing@huawei.com>
Thu, 29 Nov 2018 13:35:18 +0000 (13:35 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 05:58:04 +0000 (16:58 +1100)
commit090d5ab93d0b8a079dd516c16649bd00ba4f7302
tree0230bc47009ed6cb261644737c4b235f171985b7
parentd273fa919c39223a1edd968e82ea88501b63d21a
powerpc/64s: Fix debugfs_simple_attr.cocci warnings

Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE
for debugfs files.

Semantic patch information:
Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file()
imposes some significant overhead as compared to
DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe().

Generated by: scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1543498518-107601-1-git-send-email-yuehaibing@huawei.com
arch/powerpc/kernel/security.c