summaryrefslogtreecommitdiff
path: root/arch/mips/cavium-octeon
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2021-02-24 16:10:06 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-03-06 08:43:40 +0100
commit1f4e5f0341d831e50a91b4db6a5cb50a8ca76d97 (patch)
tree6d070d934fad9c896f24555a1c7436a3bfd5dab1 /arch/mips/cavium-octeon
parentbab1dde31db5413d4c75c99cf3f08c4a2e1c1b9d (diff)
downloadlinux-rpi-1f4e5f0341d831e50a91b4db6a5cb50a8ca76d97.tar.gz
linux-rpi-1f4e5f0341d831e50a91b4db6a5cb50a8ca76d97.tar.bz2
linux-rpi-1f4e5f0341d831e50a91b4db6a5cb50a8ca76d97.zip
mips: cavium: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE
Fix the following coccicheck warning: ./arch/mips/cavium-octeon/oct_ilm.c:65:0-23: WARNING: reset_statistics_ops should be defined with DEFINE_DEBUGFS_ATTRIBUTE Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/cavium-octeon')
-rw-r--r--arch/mips/cavium-octeon/oct_ilm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/cavium-octeon/oct_ilm.c b/arch/mips/cavium-octeon/oct_ilm.c
index 99e27155b399..6a4694538bb6 100644
--- a/arch/mips/cavium-octeon/oct_ilm.c
+++ b/arch/mips/cavium-octeon/oct_ilm.c
@@ -62,7 +62,7 @@ static int reset_statistics(void *data, u64 value)
return 0;
}
-DEFINE_SIMPLE_ATTRIBUTE(reset_statistics_ops, NULL, reset_statistics, "%llu\n");
+DEFINE_DEBUGFS_ATTRIBUTE(reset_statistics_ops, NULL, reset_statistics, "%llu\n");
static void init_debugfs(void)
{