]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
powerpc/powernv: Switch from __FUNCTION__ to __func__
authorDwaipayan Ray <dwaipayanray1@gmail.com>
Sun, 11 Jul 2021 08:48:37 +0000 (14:18 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 May 2022 09:37:44 +0000 (19:37 +1000)
__FUNCTION__ exists only for backwards compatibility reasons with old
gcc versions. Replace it with __func__.

Signed-off-by: Dwaipayan Ray <dwaipayanray1@gmail.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210711084837.95577-1-dwaipayanray1@gmail.com
arch/powerpc/platforms/powernv/opal-imc.c

index 3fea5da6d1b363ed7e8118843e7651e4d818ec0f..348a8cdaecd6d0b359650251e5b8ee639581741a 100644 (file)
@@ -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);
        }
        cpus_read_unlock();
 }