Skip to contentSkip to conversation

arch:powerpc:mm: cleanup __FUNCTION__ usage

PATCH New Dwaipayan Ray 1 participant 1 message Jul 11, 2021 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch:powerpc:mm: cleanup __FUNCTION__ usage

__FUNCTION__ exists only for backwards compatibility reasons with old gcc versions. Replace it with __func__.

---
 arch/powerpc/mm/numa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/mm/numa.c +1 -1
index f2bf98bdcea2..3d3f570c925c 100644
@@ -1236,7 +1236,7 @@ int find_and_online_cpu_nid(int cpu)
 #endif
 	}
 
-	pr_debug("%s:%d cpu %d nid %d\n", __FUNCTION__, __LINE__,
+	pr_debug("%s:%d cpu %d nid %d\n", __func__, __LINE__,
 		cpu, new_nid);
 	return new_nid;
 }
Signature · 1 line
2.28.0