]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390/pai_crypto: Rename variable cfm_dbg
authorThomas Richter <tmricht@linux.ibm.com>
Wed, 5 Nov 2025 14:38:40 +0000 (15:38 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 14 Nov 2025 10:30:04 +0000 (11:30 +0100)
The global variable cfm_dbg points to the s390dbf debug buffer.
Rename it to paidbg to better reflect its purpose.
No functional change.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Jan Polensky <japo@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/perf_pai_crypto.c

index 9b06b8a83342db1db4723d5d7223753cc13f8420..ff0be76e44411b24c3739a99d5198d1d37069a86 100644 (file)
@@ -19,7 +19,7 @@
 #include <asm/pai.h>
 #include <asm/debug.h>
 
-static debug_info_t *cfm_dbg;
+static debug_info_t *paidbg;
 static unsigned int paicrypt_cnt;      /* Size of the mapped counter sets */
                                        /* extracted with QPACI instruction */
 
@@ -55,7 +55,7 @@ static void paicrypt_root_free(void)
                free_percpu(paicrypt_root.mapptr);
                paicrypt_root.mapptr = NULL;
        }
-       debug_sprintf_event(cfm_dbg, 5, "%s root.refcount %d\n", __func__,
+       debug_sprintf_event(paidbg, 5, "%s root.refcount %d\n", __func__,
                            refcount_read(&paicrypt_root.refcnt));
 }
 
@@ -98,7 +98,7 @@ static void paicrypt_event_destroy_cpu(struct perf_event *event, int cpu)
        struct paicrypt_map *cpump = mp->mapptr;
 
        mutex_lock(&pai_reserve_mutex);
-       debug_sprintf_event(cfm_dbg, 5, "%s event %#llx cpu %d users %d "
+       debug_sprintf_event(paidbg, 5, "%s event %#llx cpu %d users %d "
                            "refcnt %u\n", __func__, event->attr.config,
                            event->cpu, cpump->active_events,
                            refcount_read(&cpump->refcnt));
@@ -822,19 +822,19 @@ static int __init paicrypt_init(void)
        }
 
        /* Setup s390dbf facility */
-       cfm_dbg = debug_register(KMSG_COMPONENT, 2, 256, 128);
-       if (!cfm_dbg) {
+       paidbg = debug_register(KMSG_COMPONENT, 2, 256, 128);
+       if (!paidbg) {
                pr_err("Registration of s390dbf pai_crypto failed\n");
                return -ENOMEM;
        }
-       debug_register_view(cfm_dbg, &debug_sprintf_view);
+       debug_register_view(paidbg, &debug_sprintf_view);
 
        rc = perf_pmu_register(&paicrypt, "pai_crypto", -1);
        if (rc) {
                pr_err("Registering the pai_crypto PMU failed with rc=%i\n",
                       rc);
-               debug_unregister_view(cfm_dbg, &debug_sprintf_view);
-               debug_unregister(cfm_dbg);
+               debug_unregister_view(paidbg, &debug_sprintf_view);
+               debug_unregister(paidbg);
                return rc;
        }
        return 0;