1

This includes the following changes related to sparc for v6.12:

- Remove an unused variable for sparc32
 -----BEGIN PGP SIGNATURE-----
 
 iIoEABYIADIWIQQfqfbgobF48oKMeq81AykqDLayywUCZvPE4hQcYW5kcmVhc0Bn
 YWlzbGVyLmNvbQAKCRA1AykqDLayy85TAP94zlZ0Ggy3y/lwfo6Z10s8pZz91DL4
 yQqTETw/2FPM2QEAyUN8B7IgJpJVcZaOJnZFZLziQlqESrU+6GAzW3RZdgU=
 =pK/R
 -----END PGP SIGNATURE-----

Merge tag 'sparc-for-6.12-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/alarsson/linux-sparc

Pull sparc32 update from Andreas Larsson:

 - Remove an unused variable for sparc32

* tag 'sparc-for-6.12-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/alarsson/linux-sparc:
  arch/sparc: remove unused varible paddrbase in function leon_swprobe()
This commit is contained in:
Linus Torvalds 2024-09-25 11:21:06 -07:00
commit eb5b0f9812

View File

@ -39,12 +39,10 @@ unsigned long leon_swprobe(unsigned long vaddr, unsigned long *paddr)
unsigned int ctxtbl; unsigned int ctxtbl;
unsigned int pgd, pmd, ped; unsigned int pgd, pmd, ped;
unsigned int ptr; unsigned int ptr;
unsigned int lvl, pte, paddrbase; unsigned int lvl, pte;
unsigned int ctx; unsigned int ctx;
unsigned int paddr_calc; unsigned int paddr_calc;
paddrbase = 0;
if (srmmu_swprobe_trace) if (srmmu_swprobe_trace)
printk(KERN_INFO "swprobe: trace on\n"); printk(KERN_INFO "swprobe: trace on\n");
@ -73,7 +71,6 @@ unsigned long leon_swprobe(unsigned long vaddr, unsigned long *paddr)
printk(KERN_INFO "swprobe: pgd is entry level 3\n"); printk(KERN_INFO "swprobe: pgd is entry level 3\n");
lvl = 3; lvl = 3;
pte = pgd; pte = pgd;
paddrbase = pgd & _SRMMU_PTE_PMASK_LEON;
goto ready; goto ready;
} }
if (((pgd & SRMMU_ET_MASK) != SRMMU_ET_PTD)) { if (((pgd & SRMMU_ET_MASK) != SRMMU_ET_PTD)) {
@ -96,7 +93,6 @@ unsigned long leon_swprobe(unsigned long vaddr, unsigned long *paddr)
printk(KERN_INFO "swprobe: pmd is entry level 2\n"); printk(KERN_INFO "swprobe: pmd is entry level 2\n");
lvl = 2; lvl = 2;
pte = pmd; pte = pmd;
paddrbase = pmd & _SRMMU_PTE_PMASK_LEON;
goto ready; goto ready;
} }
if (((pmd & SRMMU_ET_MASK) != SRMMU_ET_PTD)) { if (((pmd & SRMMU_ET_MASK) != SRMMU_ET_PTD)) {
@ -124,7 +120,6 @@ unsigned long leon_swprobe(unsigned long vaddr, unsigned long *paddr)
printk(KERN_INFO "swprobe: ped is entry level 1\n"); printk(KERN_INFO "swprobe: ped is entry level 1\n");
lvl = 1; lvl = 1;
pte = ped; pte = ped;
paddrbase = ped & _SRMMU_PTE_PMASK_LEON;
goto ready; goto ready;
} }
if (((ped & SRMMU_ET_MASK) != SRMMU_ET_PTD)) { if (((ped & SRMMU_ET_MASK) != SRMMU_ET_PTD)) {
@ -147,7 +142,6 @@ unsigned long leon_swprobe(unsigned long vaddr, unsigned long *paddr)
printk(KERN_INFO "swprobe: ptr is entry level 0\n"); printk(KERN_INFO "swprobe: ptr is entry level 0\n");
lvl = 0; lvl = 0;
pte = ptr; pte = ptr;
paddrbase = ptr & _SRMMU_PTE_PMASK_LEON;
goto ready; goto ready;
} }
if (srmmu_swprobe_trace) if (srmmu_swprobe_trace)