Skip to contentSkip to conversation

mm/ptdump: fix a -Wold-style-declaration warning

PATCH New Qian Cai 1 participant 1 message Nov 4, 2019

Subsystems (2)
lore
Share & tools
lore

Qian Cai

author
#0 lore raw

PATCH 1/1 mm/ptdump: fix a -Wold-style-declaration warning

The -next commit "mm: add generic ptdump" [1] introduced a GCC compilation warning,

mm/ptdump.c:123:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
const static struct mm_walk_ops ptdump_ops = {
^~~~~

[1] http://lkml.kernel.org/r/[email protected]

---
 mm/ptdump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/ptdump.c +1 -1
index 5d349311e77e..a30ea0cf6c5f 100644
@@ -120,7 +120,7 @@ static int ptdump_hole(unsigned long addr, unsigned long next,
 	return 0;
 }
 
-const static struct mm_walk_ops ptdump_ops = {
+static const struct mm_walk_ops ptdump_ops = {
 	.pgd_entry	= ptdump_pgd_entry,
 	.p4d_entry	= ptdump_p4d_entry,
 	.pud_entry	= ptdump_pud_entry,
Signature · 1 line
1.8.3.1