Skip to content

Commit

Permalink
x86/mm/pat: drop duplicate variable in cpa_flush()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Mike Rapoport (Microsoft) authored and Peter Zijlstra committed Feb 3, 2025
1 parent 33ea120 commit 4ee788e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/mm/pat/set_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4ee788e

Please sign in to comment.