mips: cavium: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE
PATCH 1/1 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 <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- arch/mips/cavium-octeon/oct_ilm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/cavium-octeon/oct_ilm.c +1 -1
@@ -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 ) {
Signature · 1 line
1.8.3.1
Quoted 9 lines · Yang Li
Fix the following coccicheck warning:
./arch/mips/cavium-octeon/oct_ilm.c:65:0-23: WARNING:reset_statistics_opsshould be defined withDEFINE_DEBUGFS_ATTRIBUTEReported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>--- arch/mips/cavium-octeon/oct_ilm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
applied to mips-next.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]