Skip to content

Commit

Permalink
Fix compile issues when building a kernel without the VIMAGE option.
Browse files Browse the repository at this point in the history
Thanks to cem@ for discussing the issue which resulted in this patch.

Reviewed by:		cem@
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D22089
  • Loading branch information
tuexen committed Oct 19, 2019
1 parent 3073a2e commit 7122458
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions sys/net/debugnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$");
#include <sys/systm.h>
#include <sys/endian.h>
#include <sys/errno.h>
#include <sys/eventhandler.h>
#include <sys/socket.h>
#include <sys/sysctl.h>

Expand Down
11 changes: 2 additions & 9 deletions sys/netinet/netdump/netdump_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,20 +409,13 @@ static int
netdump_configure(struct diocskerneldump_arg *conf, struct thread *td)
{
struct ifnet *ifp;
struct vnet *vnet;

NETDUMP_ASSERT_WLOCKED();

if (conf->kda_iface[0] != 0) {
if (td != NULL)
vnet = TD_TO_VNET(td);
else
vnet = vnet0;
CURVNET_SET(vnet);
if (td != NULL && !IS_DEFAULT_VNET(curvnet)) {
CURVNET_RESTORE();
if (td != NULL && !IS_DEFAULT_VNET(TD_TO_VNET(td)))
return (EINVAL);
}
CURVNET_SET(vnet0);
ifp = ifunit_ref(conf->kda_iface);
CURVNET_RESTORE();
} else
Expand Down

0 comments on commit 7122458

Please sign in to comment.