Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Mike Rapoport (Microsoft) and committed by
Peter Zijlstra
4ee788eb 33ea1205

+1 -2
+1 -2
arch/x86/mm/pat/set_memory.c
··· 394 394 flush_tlb_one_kernel(fix_addr(__cpa_addr(cpa, i))); 395 395 } 396 396 397 - static void cpa_flush(struct cpa_data *data, int cache) 397 + static void cpa_flush(struct cpa_data *cpa, int cache) 398 398 { 399 - struct cpa_data *cpa = data; 400 399 unsigned int i; 401 400 402 401 BUG_ON(irqs_disabled() && !early_boot_irqs_disabled);