From c645b2d706208e5a5faa4e4364840f58cf869183 Mon Sep 17 00:00:00 2001 From: miod Date: Sat, 7 Jan 2023 17:29:37 +0000 Subject: [PATCH] Bring back a local copystr() declaration, as copy{in,out} still make us of it but its body is in locore. --- sys/arch/powerpc64/powerpc64/machdep.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/arch/powerpc64/powerpc64/machdep.c b/sys/arch/powerpc64/powerpc64/machdep.c index df73b09ee64..7602bbd5787 100644 --- a/sys/arch/powerpc64/powerpc64/machdep.c +++ b/sys/arch/powerpc64/powerpc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.73 2022/10/30 17:43:39 guenther Exp $ */ +/* $OpenBSD: machdep.c,v 1.74 2023/01/07 17:29:37 miod Exp $ */ /* * Copyright (c) 2020 Mark Kettenis @@ -623,6 +623,10 @@ copyout(const void *kaddr, void *uaddr, size_t len) return 0; } +/* in locore.S */ +extern int copystr(const void *, void *, size_t, size_t *) + __attribute__ ((__bounded__(__string__,2,3))); + int copyinstr(const void *uaddr, void *kaddr, size_t len, size_t *done) { -- 2.20.1