powerpc/powernv/npu: Fix debugfs_simple_attr.cocci warnings
authorYueHaibing <yuehaibing@huawei.com>
Tue, 25 Dec 2018 02:44:36 +0000 (02:44 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 05:58:05 +0000 (16:58 +1100)
commitbfa2325e5b8b800cc6720cad8d2f066cd0136bee
tree69878c6649e5136315f7c8b09aff0c075df446a7
parent090d5ab93d0b8a079dd516c16649bd00ba4f7302
powerpc/powernv/npu: 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/1545705876-63132-1-git-send-email-yuehaibing@huawei.com
arch/powerpc/platforms/powernv/pci-ioda.c