diff options
author | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2025-01-26 10:47:26 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2025-02-03 13:46:01 +0300 |
commit | 4ee788eb0781ba082709c1ac1d5146ebcc40b967 (patch) | |
tree | 18f10c495aaf6a09d792dfd5723b36a1d667c525 /arch/x86/mm/pat/set_memory.c | |
parent | 33ea120582a638b2f2e380a50686c2b1d7cce795 (diff) | |
download | linux-4ee788eb0781ba082709c1ac1d5146ebcc40b967.tar.xz |
x86/mm/pat: drop duplicate variable in cpa_flush()
There is a 'struct cpa_data *data' parameter in cpa_flush() that is
assigned to a local 'struct cpa_data *cpa' variable.
Rename the parameter from 'data' to 'cpa' and drop declaration of the
local 'cpa' variable.
Signed-off-by: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250126074733.1384926-3-rppt@kernel.org
Diffstat (limited to 'arch/x86/mm/pat/set_memory.c')
-rw-r--r-- | arch/x86/mm/pat/set_memory.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c index ef4514d64c05..1f7698caa6f7 100644 --- a/arch/x86/mm/pat/set_memory.c +++ b/arch/x86/mm/pat/set_memory.c @@ -394,9 +394,8 @@ static void __cpa_flush_tlb(void *data) flush_tlb_one_kernel(fix_addr(__cpa_addr(cpa, i))); } -static void cpa_flush(struct cpa_data *data, int cache) +static void cpa_flush(struct cpa_data *cpa, int cache) { - struct cpa_data *cpa = data; unsigned int i; BUG_ON(irqs_disabled() && !early_boot_irqs_disabled); |