Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/ia64/ia64 Remove unused variables
details: https://anonhg.NetBSD.org/src/rev/ed0c1927ed12
branches: trunk
changeset: 327547:ed0c1927ed12
user: martin <martin%NetBSD.org@localhost>
date: Mon Mar 10 13:47:45 2014 +0000
description:
Remove unused variables
diffstat:
sys/arch/ia64/ia64/cpu.c | 10 +++++-----
sys/arch/ia64/ia64/pmap.c | 10 ++--------
sys/arch/ia64/ia64/trap.c | 7 ++-----
3 files changed, 9 insertions(+), 18 deletions(-)
diffs (125 lines):
diff -r 3a2b8c200b5f -r ed0c1927ed12 sys/arch/ia64/ia64/cpu.c
--- a/sys/arch/ia64/ia64/cpu.c Mon Mar 10 13:47:16 2014 +0000
+++ b/sys/arch/ia64/ia64/cpu.c Mon Mar 10 13:47:45 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.11 2013/02/17 06:46:23 kiyohara Exp $ */
+/* $NetBSD: cpu.c,v 1.12 2014/03/10 13:47:45 martin Exp $ */
/*
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.11 2013/02/17 06:46:23 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.12 2014/03/10 13:47:45 martin Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -117,7 +117,7 @@
uint64_t vendor[3];
const char *family_name, *model_name;
uint64_t features, tmp;
- int number, revision, model, family, archrev;
+ int revision, model, family;
char bitbuf[32];
extern uint64_t processor_frequency;
@@ -129,11 +129,11 @@
vendor[2] = '\0';
tmp = ia64_get_cpuid(3);
- number = (tmp >> 0) & 0xff;
+ /* number = (tmp >> 0) & 0xff; */
revision = (tmp >> 8) & 0xff;
model = (tmp >> 16) & 0xff;
family = (tmp >> 24) & 0xff;
- archrev = (tmp >> 32) & 0xff;
+ /* archrev = (tmp >> 32) & 0xff; */
family_name = model_name = "unknown";
switch (family) {
diff -r 3a2b8c200b5f -r ed0c1927ed12 sys/arch/ia64/ia64/pmap.c
--- a/sys/arch/ia64/ia64/pmap.c Mon Mar 10 13:47:16 2014 +0000
+++ b/sys/arch/ia64/ia64/pmap.c Mon Mar 10 13:47:45 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.31 2013/03/24 06:56:14 kiyohara Exp $ */
+/* $NetBSD: pmap.c,v 1.32 2014/03/10 13:47:45 martin Exp $ */
/*-
@@ -85,7 +85,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.31 2013/03/24 06:56:14 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.32 2014/03/10 13:47:45 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1097,8 +1097,6 @@
{
pmap_t oldpmap;
struct ia64_lpte *pte;
- vaddr_t pa;
- struct vm_page *pg;
if ((prot & VM_PROT_READ) == VM_PROT_NONE) {
pmap_remove(pmap, sva, eva);
@@ -1125,8 +1123,6 @@
if (pmap_prot(pte) != prot) {
if (pmap_managed(pte)) {
- pa = pmap_ppn(pte);
- pg = PHYS_TO_VM_PAGE(pa);
if (pmap_dirty(pte))
pmap_clear_dirty(pte);
if (pmap_accessed(pte)) {
@@ -1154,9 +1150,7 @@
{
struct ia64_lpte *pte;
pmap_t oldpmap;
- paddr_t pa;
- pa = 0;
mutex_enter(&pmap->pm_slock);
oldpmap = pmap_install(pmap); /*XXX: isn't this a little inefficient ?*/
pte = pmap_find_vhpt(va);
diff -r 3a2b8c200b5f -r ed0c1927ed12 sys/arch/ia64/ia64/trap.c
--- a/sys/arch/ia64/ia64/trap.c Mon Mar 10 13:47:16 2014 +0000
+++ b/sys/arch/ia64/ia64/trap.c Mon Mar 10 13:47:45 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.12 2013/01/12 08:42:53 kiyohara Exp $ */
+/* $NetBSD: trap.c,v 1.13 2014/03/10 13:47:45 martin Exp $ */
/*-
* Copyright (c) 2005 Marcel Moolenaar
@@ -61,7 +61,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.12 2013/01/12 08:42:53 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.13 2014/03/10 13:47:45 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -382,7 +382,6 @@
struct lwp *l;
uint64_t ucode;
int sig, user;
- u_int sticks;
ksiginfo_t ksi;
user = TRAPF_USERMODE(tf) ? 1 : 0;
@@ -397,11 +396,9 @@
if (user) {
ia64_set_fpsr(IA64_FPSR_DEFAULT);
p = l->l_proc;
- sticks = p->p_sticks;
l->l_md.md_tf = tf;
LWP_CACHE_CREDS(l, p);
} else {
- sticks = 0; /* XXX bogus -Wuninitialized warning */
p = NULL;
}
sig = 0;
Home |
Main Index |
Thread Index |
Old Index