Skip to contentSkip to conversation

arch:powerpc:platforms:powernv: 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:platforms:powernv: cleanup __FUNCTION__ usage

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

---
 arch/powerpc/platforms/powernv/opal-imc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/powernv/opal-imc.c +1 -1
index 7824cc364bc4..5bafbf34e820 100644
@@ -211,7 +211,7 @@ static void disable_core_pmu_counters(void)
 					    get_hard_smp_processor_id(cpu));
 		if (rc)
 			pr_err("%s: Failed to stop Core (cpu = %d)\n",
-				__FUNCTION__, cpu);
+				__func__, cpu);
 	}
 	put_online_cpus();
 }
Signature · 1 line
2.28.0