Remove unused dot_conv() function.

This commit is contained in:
thorpej 2021-05-05 15:36:17 +00:00
parent f19bd5bd6d
commit 8c0088cdb7
2 changed files with 3 additions and 25 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.370 2021/05/05 15:34:54 thorpej Exp $ */ /* $NetBSD: machdep.c,v 1.371 2021/05/05 15:36:17 thorpej Exp $ */
/*- /*-
* Copyright (c) 1998, 1999, 2000, 2019, 2020 The NetBSD Foundation, Inc. * Copyright (c) 1998, 1999, 2000, 2019, 2020 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.370 2021/05/05 15:34:54 thorpej Exp $"); __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.371 2021/05/05 15:36:17 thorpej Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -1810,27 +1810,6 @@ mm_md_direct_mapped_phys(paddr_t paddr, vaddr_t *vaddr)
return true; return true;
} }
char *
dot_conv(unsigned long x)
{
int i;
char *xc;
static int next;
static char space[2][20];
xc = space[next ^= 1] + sizeof space[0];
*--xc = '\0';
for (i = 0;; ++i) {
if (i && (i & 3) == 0)
*--xc = '.';
*--xc = hexdigits[x & 0xf];
x >>= 4;
if (x == 0)
break;
}
return xc;
}
void void
cpu_getmcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flags) cpu_getmcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flags)
{ {

View File

@ -1,4 +1,4 @@
/* $NetBSD: alpha.h,v 1.44 2020/10/14 00:59:50 thorpej Exp $ */ /* $NetBSD: alpha.h,v 1.45 2021/05/05 15:36:17 thorpej Exp $ */
/* /*
* Copyright (c) 1988 University of Utah. * Copyright (c) 1988 University of Utah.
@ -108,7 +108,6 @@ void trap(unsigned long, unsigned long, unsigned long, unsigned long,
struct trapframe *); struct trapframe *);
void trap_init(void); void trap_init(void);
void enable_nsio_ide(bus_space_tag_t); void enable_nsio_ide(bus_space_tag_t);
char * dot_conv(unsigned long);
extern const pcu_ops_t fpu_ops; extern const pcu_ops_t fpu_ops;