Skip to content

Commit 8e7f899

Browse files
committed
x86/mm/pat: drop duplicate variable in cpa_flush()
jira LE-4694 Rebuild_History Non-Buildable kernel-6.12.0-55.43.1.el10_0 commit-author Mike Rapoport (Microsoft) <rppt@kernel.org> commit 4ee788e 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 (cherry picked from commit 4ee788e) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 72d85d9 commit 8e7f899

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/x86/mm/pat/set_memory.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,8 @@ static void __cpa_flush_tlb(void *data)
396396
flush_tlb_one_kernel(fix_addr(__cpa_addr(cpa, i)));
397397
}
398398

399-
static void cpa_flush(struct cpa_data *data, int cache)
399+
static void cpa_flush(struct cpa_data *cpa, int cache)
400400
{
401-
struct cpa_data *cpa = data;
402401
unsigned int i;
403402

404403
BUG_ON(irqs_disabled() && !early_boot_irqs_disabled);

0 commit comments

Comments
 (0)