Author: hselasky Date: Wed Sep 2 09:17:29 2020 New Revision: 365235 URL: https://svnweb.freebsd.org/changeset/base/365235
Log: Fix build of epoch_test module. While at it add missing epoch_free() call. MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking Modified: head/sys/modules/epoch_test/Makefile head/sys/tests/epoch/epoch_test.c Modified: head/sys/modules/epoch_test/Makefile ============================================================================== --- head/sys/modules/epoch_test/Makefile Wed Sep 2 09:04:08 2020 (r365234) +++ head/sys/modules/epoch_test/Makefile Wed Sep 2 09:17:29 2020 (r365235) @@ -2,6 +2,8 @@ .PATH: ${SRCTOP}/sys/tests/epoch KMOD= epoch_test -SRCS= epoch_test.c +SRCS= epoch_test.c \ + bus_if.h \ + device_if.h .include <bsd.kmod.mk> Modified: head/sys/tests/epoch/epoch_test.c ============================================================================== --- head/sys/tests/epoch/epoch_test.c Wed Sep 2 09:04:08 2020 (r365234) +++ head/sys/tests/epoch/epoch_test.c Wed Sep 2 09:17:29 2020 (r365235) @@ -141,7 +141,7 @@ test_modinit(void) int i, error, pri_range, pri_off; pri_range = PRI_MIN_TIMESHARE - PRI_MIN_REALTIME; - test_epoch = epoch_alloc(EPOCH_PREEMPT); + test_epoch = epoch_alloc("test_epoch", EPOCH_PREEMPT); for (i = 0; i < mp_ncpus*2; i++) { etilist[i].threadid = i; error = kthread_add(testloop, &etilist[i], NULL, &testthreads[i], @@ -209,6 +209,7 @@ epoch_test_module_event_handler(module_t mod, int what mtx_unlock(&state_mtx); /* yes --- gross */ pause("epoch unload", 3*hz); + epoch_free(test_epoch); break; default: return (EOPNOTSUPP); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"