sys/filedesc.h: New home for extern cwdi0.

This commit is contained in:
riastradh 2022-10-26 23:39:10 +00:00
parent ff22bcd2ec
commit c0216ccf58
4 changed files with 9 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: firmload.c,v 1.23 2021/06/29 22:40:53 dholland Exp $ */
/* $NetBSD: firmload.c,v 1.24 2022/10/26 23:39:10 riastradh Exp $ */
/*-
* Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: firmload.c,v 1.23 2021/06/29 22:40:53 dholland Exp $");
__KERNEL_RCSID(0, "$NetBSD: firmload.c,v 1.24 2022/10/26 23:39:10 riastradh Exp $");
/*
* The firmload API provides an interface for device drivers to access
@ -209,7 +209,6 @@ firmware_open(const char *drvname, const char *imgname, firmware_handle_t *fhp)
firmware_handle_t fh;
struct vnode *vp;
int error;
extern struct cwdinfo cwdi0;
if (drvname == NULL || imgname == NULL)
return (EINVAL);

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_mount.c,v 1.97 2022/09/13 09:35:31 riastradh Exp $ */
/* $NetBSD: vfs_mount.c,v 1.98 2022/10/26 23:39:10 riastradh Exp $ */
/*-
* Copyright (c) 1997-2020 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.97 2022/09/13 09:35:31 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.98 2022/10/26 23:39:10 riastradh Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -1273,7 +1273,6 @@ done:
if (error == 0) {
mount_iterator_t *iter;
struct mount *mp;
extern struct cwdinfo cwdi0;
mountlist_iterator_init(&iter);
mp = mountlist_iterator_next(iter);

View File

@ -1,4 +1,4 @@
/* $NetBSD: rump_vfs.c,v 1.93 2020/04/25 15:42:15 bouyer Exp $ */
/* $NetBSD: rump_vfs.c,v 1.94 2022/10/26 23:39:10 riastradh Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.93 2020/04/25 15:42:15 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.94 2022/10/26 23:39:10 riastradh Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@ -57,7 +57,6 @@ __KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.93 2020/04/25 15:42:15 bouyer Exp $")
#include <rump/rump.h>
#include <rump/rumpuser.h>
extern struct cwdinfo cwdi0;
const char *rootfstype = ROOT_FSTYPE_ANY;
static void

View File

@ -1,4 +1,4 @@
/* $NetBSD: filedesc.h,v 1.69 2021/06/29 22:40:53 dholland Exp $ */
/* $NetBSD: filedesc.h,v 1.70 2022/10/26 23:39:10 riastradh Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -187,6 +187,8 @@ struct fileops;
struct socket;
struct proc;
extern struct cwdinfo cwdi0;
/*
* Kernel global variables and routines.
*/