Silent some warnings for i386 kernel build
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
408334df5e
commit
3c94280825
@ -162,7 +162,7 @@ cpu_minidumpsys(struct dumperinfo *di, const struct minidumpstate *state)
|
||||
uint64_t pa;
|
||||
pd_entry_t *pd, pde;
|
||||
pt_entry_t *pt, pte;
|
||||
int j, k;
|
||||
int k;
|
||||
struct minidumphdr mdhdr;
|
||||
struct msgbuf *mbp;
|
||||
|
||||
@ -184,7 +184,6 @@ cpu_minidumpsys(struct dumperinfo *di, const struct minidumpstate *state)
|
||||
*/
|
||||
ptesize += PAGE_SIZE;
|
||||
pd = IdlePTD; /* always mapped! */
|
||||
j = va >> PDRSHIFT;
|
||||
pde = pte_load(&pd[va >> PDRSHIFT]);
|
||||
if ((pde & (PG_PS | PG_V)) == (PG_PS | PG_V)) {
|
||||
/* This is an entire 2M page. */
|
||||
|
@ -619,7 +619,7 @@ static void
|
||||
__CONCAT(PMTYPE, bootstrap)(vm_paddr_t firstaddr)
|
||||
{
|
||||
vm_offset_t va;
|
||||
pt_entry_t *pte, *unused;
|
||||
pt_entry_t *pte, *unused __unused;
|
||||
struct pcpu *pc;
|
||||
u_long res;
|
||||
int i;
|
||||
@ -3493,7 +3493,7 @@ pmap_promote_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t va)
|
||||
{
|
||||
pd_entry_t newpde;
|
||||
pt_entry_t *firstpte, oldpte, pa, *pte;
|
||||
vm_offset_t oldpteva;
|
||||
vm_offset_t oldpteva __diagused;
|
||||
vm_page_t mpte;
|
||||
|
||||
PMAP_LOCK_ASSERT(pmap, MA_OWNED);
|
||||
@ -6252,7 +6252,6 @@ __CONCAT(PMTYPE, sysctl_kmaps)(SYSCTL_HANDLER_ARGS)
|
||||
pd_entry_t pde;
|
||||
pt_entry_t *pt, pte;
|
||||
vm_offset_t sva;
|
||||
vm_paddr_t pa;
|
||||
int error;
|
||||
u_int i, k;
|
||||
|
||||
@ -6289,7 +6288,6 @@ __CONCAT(PMTYPE, sysctl_kmaps)(SYSCTL_HANDLER_ARGS)
|
||||
i += NPTEPG;
|
||||
continue;
|
||||
}
|
||||
pa = pde & PG_FRAME;
|
||||
if ((pde & PG_PS) != 0) {
|
||||
sysctl_kmaps_check(sb, &range, sva, pde, 0);
|
||||
range.pdes++;
|
||||
|
Loading…
Reference in New Issue
Block a user