From nobody Fri Jul 29 18:48:45 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 4Lvc3z3kWbz4Y22B; Fri, 29 Jul 2022 18:48:47 +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 4Lvc3y0NvGz3tnc; Fri, 29 Jul 2022 18:48:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120526; 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=Fg0cE3YvxrBw2QGlXd2ubOmp57eH4VPXw20SyXrQxgQ=; b=wXXeXUMv9VOJqO9u4svd4gg0ycRRZzRybXP36DJV+InORfQxd75B9m3L6Lsn15mYIv8EEf Wu3vaE8GApxe/QsVXdL74q5YmQRXMY2HdDavSjZU/hHID/cLKsHVqEuDubmKi+pp3iCiwk G4+szFFEoGXjuXNQ2M0yTENSRDIaQO8MNNOtcUrSwzTbAzxYwpyH18mjQ5+R22WjQq4Smk SQdeQm0d7dlPlp52izcNw9BOsgWkjyYdgvkP6VHTStGR2u5vO/xb9+ZUrXnSlsa2WYf/67 i4B3QupUA3b5D50KyY1ly++cmxV3/9TKoemk8qN0rxwAfC82SKTIbeRd8vtI6w== 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 4Lvc3x6c0zzmBB; Fri, 29 Jul 2022 18:48:45 +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 26TImj23025802; Fri, 29 Jul 2022 18:48:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TImjgO025801; Fri, 29 Jul 2022 18:48:45 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:48:45 GMT Message-Id: <202207291848.26TImjgO025801@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 5768e2b759b2 - stable/12 - Adjust function definition in geom_io.c to avoid clang 15 warnings 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 5768e2b759b223baac8d66240dcdbbd3796d78bc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120526; 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=Fg0cE3YvxrBw2QGlXd2ubOmp57eH4VPXw20SyXrQxgQ=; b=o1uEmK3Dc6hOeV7cg/Uw2MXys9iaHwR07lUB7rlJ+tR2gKUiuqhyNj8W9NR7XjaugaFSCr KriUBX6P1/iobZJ4Ob67J3w09u3I3bS6ovFC2bReF5QQMqmTxyINLQwcrzTw8SHCRD80dt sOuz0pkxrStYtDfFdiWbwQw/Ub1O1gCx+I7WcyyHlyeIUSzQqM2xPEq7fyD9Oy34097y3J b64TkK+t6t9aOB4Zm6gijcy/rppJDEPK+zquc69ZrajP3UH+qyV6cShprcw7SS/5echWVW znajMtFYHcRpM2qMQYqk6jUhp526HS1KKJMUke1mpYncHWAJMm0eiSRp9Q4DNg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120526; a=rsa-sha256; cv=none; b=N40Xrh3QO4WXElERKL4ARSkuV8+5juMkgATk8v8rMcwrDOo4KnoVJvaFRKpx839dDb6Flt 8N9NNj9rBfUzvu6Oxhbrt3n5mUYCcNmpeYC1JSI30kUnSm1zxyKiYYbiHaJFtDJDZy6UVh bYlMDnFJmTwix52ZiGhjZcld7IGph2VD08EByz2UwwJorKb/mJVia1WydpItuFIW2v45gC xBgg34iM2sS3j/NkOvFxIkQI3rcFsi4jRGQvOt5c+t7H3HVKFzN1JYEOpiecMOv4tl4u2Z yV0anMT7ZDxJ1KtBsENvI6SFRkT5pF1mDc966mq0rGy2JsqeYkxT7nsogRLtrQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=5768e2b759b223baac8d66240dcdbbd3796d78bc commit 5768e2b759b223baac8d66240dcdbbd3796d78bc Author: Dimitry Andric AuthorDate: 2022-07-26 14:00:08 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:44:39 +0000 Adjust function definition in geom_io.c to avoid clang 15 warnings With clang 15, the following -Werror warning is produced: sys/geom/geom_io.c:272:10: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] g_io_init() ^ void This is because g_io_init() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days (cherry picked from commit 165a32121cc775719b55dc0f8b66259b0fbf8325) --- sys/geom/geom_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index c935b35dcc24..84a290dcc970 100644 --- a/sys/geom/geom_io.c +++ b/sys/geom/geom_io.c @@ -279,7 +279,7 @@ g_reset_bio(struct bio *bp) } void -g_io_init() +g_io_init(void) { g_bioq_init(&g_bio_run_down);