From 093a61346dbb36c05098a49f5a512634d42caa13 Mon Sep 17 00:00:00 2001 From: pgoyette Date: Mon, 8 Aug 2016 02:50:05 +0000 Subject: [PATCH] Don't try to set-up our sysctl sub-tree if we're built-in - this will happen automatically (via "registration" of the setup function in a link-set), and if we're not a module, the SYSCTL_SETUP_PROTO() will not have declared a function prototype! --- sys/net/if_pppoe.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/net/if_pppoe.c b/sys/net/if_pppoe.c index fe0303c0dbb2..25fd9303224a 100644 --- a/sys/net/if_pppoe.c +++ b/sys/net/if_pppoe.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_pppoe.c,v 1.114 2016/08/07 17:38:34 christos Exp $ */ +/* $NetBSD: if_pppoe.c,v 1.115 2016/08/08 02:50:05 pgoyette Exp $ */ /*- * Copyright (c) 2002, 2008 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.114 2016/08/07 17:38:34 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.115 2016/08/08 02:50:05 pgoyette Exp $"); #ifdef _KERNEL_OPT #include "pppoe.h" @@ -238,7 +238,9 @@ pppoeinit(void) pppoe_softintr = softint_establish(SOFTINT_NET, pppoe_softintr_handler, NULL); +#ifdef _MODULE sysctl_net_pppoe_setup(&pppoe_sysctl_clog); +#endif } static int