mips: cavium: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 24 Feb 2021 08:10:06 +0000 (16:10 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sat, 6 Mar 2021 07:43:40 +0000 (08:43 +0100)
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>
arch/mips/cavium-octeon/oct_ilm.c

index 99e2715..6a46945 100644 (file)
@@ -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)
 {