From nobody Sun Jul 24 15:34:22 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LrRzy49Fqz4WrMM; Sun, 24 Jul 2022 15:34:22 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LrRzy3Zltz46PQ; Sun, 24 Jul 2022 15:34:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658676862; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zFWsgX/BlfiikdNHe0QQ3T3b7EGkMOg5UhofV8tB5tE=; b=ThRRSaraz5z/JT4v7iV0wHforoNRyoJ5umFwzGUsvItmIg3u4yG0baQTkprPg1h6YdTcpN p0paOM0/XiiHs7sHcPcPz1vbezAZX5PBIwMLq31MsSfCObP9rwMIqKTdZXlsNqSPKIkhgb 2PSCCbdbprrty1i2iu1TNCJnI3pUpjK/Ri5UWxQOfiy0jFcFbjWVdgg9vI0XTVNl+DHxBT wHbngLPxslDd3ALrcZr1O8VdjaxwrL8911Au23UsOtl7cOjFdn4MOLeoANP9Q7Jht/f2Re ntn2XPUOdPkNRzUw3av4c+fdLUb5UpLP+ye80jm9yl6MIesRwSNqzCCZwkQGGQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LrRzy2b8yzNX9; Sun, 24 Jul 2022 15:34:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26OFYMsp007189; Sun, 24 Jul 2022 15:34:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OFYMKw007188; Sun, 24 Jul 2022 15:34:22 GMT (envelope-from git) Date: Sun, 24 Jul 2022 15:34:22 GMT Message-Id: <202207241534.26OFYMKw007188@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alan Somers Subject: git: f10dd8af4b4f - main - Reap dead code in lio_kqueue_test and aio_kqueue_test List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: asomers X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f10dd8af4b4fb17173321fac13b3221bf096555a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658676862; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zFWsgX/BlfiikdNHe0QQ3T3b7EGkMOg5UhofV8tB5tE=; b=Rgcn3XAZX28EvY1Fe90k2J61y1CCgLVRXAaBjpP69ulEzsvEz9UJV4SabJ3rcAqjipG/gU D87gl0EHR/wtuF6XRdgRmCaKJbYyUD7dtsy5hHbuWFNMdA5i3+voJe9Sb75jIjB2QLFr+I pS5hSs0IOclhm8jxIsAcqJUFbMvieBcDekgi7szKbraAjj8TGTCein9hViKC+r9MsaxMZB IznbwpAvmbXEUxHqKOOLAoSdBJq3Hc/Elxxonf2GAJ6OQEZKPGxmfTbcPq3iGTqMLQS5zA 4r7Sr62G7GFizQElNagahFeGJ14zIPNQnDG5MeRutfqPL0i7z0lat6CTivsz9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658676862; a=rsa-sha256; cv=none; b=FWk8n6BWRstBxUzy2Egc6USmvY2wjjT21/FFNsKhTTCNmdfZK2et0j9tihQtQOwe30TUDV SQ1zgL7ok3lUA6X0aZ4L6hUCB6SRnwZWX1gbUrRVHrptDcmdwdd1ZjRfplzgPfHKIayOhs fQwnYfc6zXBbWg3dJNKbIS9dkgvpeuJBj2QMnYHq9eBKZA9l3iilxRmDzgwVEGSJWkPH1f 8DS1wY09uYJVbs4Nf7d9QzgAaTtn9aTmonT/zJFGY2XVQYB569MVaz3W3x0LW2lOWwFVG2 e/NYvtpJ5Kv8FHhCfNLSleCzOC2KSXlC4kT5LgGZudHFSS0HgYR30PXN2d1SWQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=f10dd8af4b4fb17173321fac13b3221bf096555a commit f10dd8af4b4fb17173321fac13b3221bf096555a Author: Alan Somers AuthorDate: 2022-05-30 18:34:49 +0000 Commit: Alan Somers CommitDate: 2022-07-24 15:31:40 +0000 Reap dead code in lio_kqueue_test and aio_kqueue_test MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D35358 --- tests/sys/aio/aio_kqueue_test.c | 5 ++--- tests/sys/aio/lio_kqueue_test.c | 7 ++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/sys/aio/aio_kqueue_test.c b/tests/sys/aio/aio_kqueue_test.c index f3e63376eb1b..ac246310f8bc 100644 --- a/tests/sys/aio/aio_kqueue_test.c +++ b/tests/sys/aio/aio_kqueue_test.c @@ -59,7 +59,7 @@ main (int argc, char *argv[]) { struct aiocb **iocb, *kq_iocb; char *file, pathname[sizeof(PATH_TEMPLATE)+1]; - struct kevent ke, kq_returned; + struct kevent kq_returned; struct timespec ts; char buffer[32768]; int max_queue_per_proc; @@ -156,8 +156,7 @@ main (int argc, char *argv[]) for (;;) { - bzero(&ke, sizeof(ke)); - bzero(&kq_returned, sizeof(ke)); + bzero(&kq_returned, sizeof(kq_returned)); ts.tv_sec = 0; ts.tv_nsec = 1; result = kevent(kq, NULL, 0, diff --git a/tests/sys/aio/lio_kqueue_test.c b/tests/sys/aio/lio_kqueue_test.c index 3226573721c6..b85e3630b9b8 100644 --- a/tests/sys/aio/lio_kqueue_test.c +++ b/tests/sys/aio/lio_kqueue_test.c @@ -63,7 +63,7 @@ main(int argc, char *argv[]) size_t max_queue_per_proc_size; char buffer[32768]; int kq; - struct kevent ke, kq_returned; + struct kevent kq_returned; struct timespec ts; struct sigevent sig; time_t time1, time2; @@ -153,15 +153,12 @@ main(int argc, char *argv[]) } for (;;) { - bzero(&ke, sizeof(ke)); - bzero(&kq_returned, sizeof(ke)); + bzero(&kq_returned, sizeof(kq_returned)); ts.tv_sec = 0; ts.tv_nsec = 1; #ifdef DEBUG printf("FOO lio %d -> %p\n", j, lio[j]); #endif - EV_SET(&ke, (uintptr_t)lio[j], - EVFILT_LIO, EV_ONESHOT, 0, 0, iocb[j]); result = kevent(kq, NULL, 0, &kq_returned, 1, &ts); error = errno;