From: Thomas Richter Date: Wed, 5 Nov 2025 14:38:58 +0000 (+0100) Subject: s390/pai_crypto: Rename paicrypt_copy() to pai_copy() X-Git-Tag: v6.19-rc1~206^2~21^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f12473541356f5765e4130a7b5af77862a872a51;p=thirdparty%2Flinux.git s390/pai_crypto: Rename paicrypt_copy() to pai_copy() To support one common PAI PMU device driver which handles both PMUs pai_crypto and pai_ext, use a common naming scheme for structures and variables suitable for both device drivers. Rename paicrypt_copy() to pai_copy() to indicate its common usage. No functional change. Signed-off-by: Thomas Richter Reviewed-by: Jan Polensky Signed-off-by: Heiko Carstens --- diff --git a/arch/s390/kernel/perf_pai_crypto.c b/arch/s390/kernel/perf_pai_crypto.c index a014f4a1b4433..870b84b0ce5f7 100644 --- a/arch/s390/kernel/perf_pai_crypto.c +++ b/arch/s390/kernel/perf_pai_crypto.c @@ -485,9 +485,9 @@ static void paicrypt_del(struct perf_event *event, int flags) * 2 bytes: Number of counter * 8 bytes: Value of counter */ -static size_t paicrypt_copy(struct pai_userdata *userdata, unsigned long *page, - struct pai_pmu *pp, unsigned long *page_old, - bool exclude_user, bool exclude_kernel) +static size_t pai_copy(struct pai_userdata *userdata, unsigned long *page, + struct pai_pmu *pp, unsigned long *page_old, + bool exclude_user, bool exclude_kernel) { int i, outidx = 0; @@ -578,10 +578,10 @@ static void pai_have_sample(struct perf_event *event, struct pai_map *cpump) if (!event) /* No event active */ return; pp = &pai_pmu[PAI_PMU_IDX(event)]; - rawsize = paicrypt_copy(cpump->save, cpump->area, pp, - (unsigned long *)PAI_SAVE_AREA(event), - event->attr.exclude_user, - event->attr.exclude_kernel); + rawsize = pai_copy(cpump->save, cpump->area, pp, + (unsigned long *)PAI_SAVE_AREA(event), + event->attr.exclude_user, + event->attr.exclude_kernel); if (rawsize) /* No incremented counters */ pai_push_sample(rawsize, cpump, event); }