]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb23f95322c4cddcecfe51891f59b9ad07127814e
tree69878c6649e5136315f7c8b09aff0c075df446a7
parentd9b7308b1fb78b34d8230ce2ccb04456c2fa2daa
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