From owner-svn-src-head@freebsd.org Wed Sep 2 09:17:30 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BF7003D1E36; Wed, 2 Sep 2020 09:17:30 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BhJHZ3cSrz4V3h; Wed, 2 Sep 2020 09:17:30 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5C5C227E7E; Wed, 2 Sep 2020 09:17:30 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0829HU53072146; Wed, 2 Sep 2020 09:17:30 GMT (envelope-from hselasky@FreeBSD.org) Received: (from hselasky@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0829HUpZ072145; Wed, 2 Sep 2020 09:17:30 GMT (envelope-from hselasky@FreeBSD.org) Message-Id: <202009020917.0829HUpZ072145@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: hselasky set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky Date: Wed, 2 Sep 2020 09:17:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365235 - in head/sys: modules/epoch_test tests/epoch X-SVN-Group: head X-SVN-Commit-Author: hselasky X-SVN-Commit-Paths: in head/sys: modules/epoch_test tests/epoch X-SVN-Commit-Revision: 365235 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2020 09:17:30 -0000 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 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);