From nobody Sun Jul 24 22:40:41 2022 X-Original-To: dev-commits-src-main@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 4LrdRt1WwZz3ys8G; Sun, 24 Jul 2022 22:40:42 +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 4LrdRs3z3Cz3vfw; Sun, 24 Jul 2022 22:40:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658702441; 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=+ECbkn39FAes44ipwSYeBU6CYli4xeDlxQ75QsUeIns=; b=jGQc/Pcw8Wuykv8fddGfM9UhbkMm8nuw7DbFA7tEXeGqB3fVAlr9+mJLtIWy9m+BjhsWcW A0vkRcdM0VNHERNEEi+TgwSit/P9CmYdR5wtQuCkd2cvvQvi1UJYKco0ApdrnogcC70KTv Imw3/CMA1FS/Cjj6mztYR3M3V9yzuFZZIT93xfYyJXY3cJytz6IebLeIepgAxJsG8VMkXN iOiqH/Ff3QwJ7hg1zKAdFc7gOxVYWgvR47fTsOqEce/V++WUKuHG1lrgEWWnycCnmF7WxN IC5wEkjyRb2JRLa8kssa4ZroQumLTaXOg1Rx/3wjGzdpfHfmyHwyaTyTQUGFYA== 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 4LrdRs33t1zZw4; Sun, 24 Jul 2022 22:40:41 +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 26OMefnM086343; Sun, 24 Jul 2022 22:40:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OMef6o086342; Sun, 24 Jul 2022 22:40:41 GMT (envelope-from git) Date: Sun, 24 Jul 2022 22:40:41 GMT Message-Id: <202207242240.26OMef6o086342@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: e90d1b574877 - main - Adjust linux_get_char_devices() definition to avoid clang 15 warning List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: e90d1b57487759e076b16cd3903a7b69565452b9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658702441; 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=+ECbkn39FAes44ipwSYeBU6CYli4xeDlxQ75QsUeIns=; b=c7oFPnSk2mVcMnO2eZfI69FU1ZB9VNKgTfajyT9zKuvgca3dAE3pp43BF41NEb5oPj/GWr Or2+xf13TsozZa4+GUq+ESWgfIZrgI2COXWOg9ikbfySOyqLRM337KZg2az1KhripQ8luH 1lHdIWlXdXv7fPtEVqk46o7aROy13eRsWvZSHd2Aetzyzc7qkT/awhA56p4DI4A09JkqOL ooYTcXf0mq1a+zoZ29uNQM17qCOKFnG2eEisYWwB0QdAzAFdLH+kHLgNK53zNGKaTXcb2+ 0CjcvOfJG2izI1dOT6r+qW5ylpcmoZCNYRxT8jium3lrGEmeHt/lvMvlGSwoIA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658702441; a=rsa-sha256; cv=none; b=eruDxTD5kLnGJaVvBH0RcmsYD2i6c/0hyc0b1M9GkgibJwj3Dvl7Dn08xaGujL09xm5XJP VG6CUzKZgFW7yVTs7BElpGfM7wSm5Sm6L6zofZIU6RBNAatC32plXvVzEAh+n1Z8osmAJ6 1ecqsjN7YbJExJSdtOJPHdFnO2PihxJKDqtkYjoSBb1w7/Ep8M+HI6sbvO1vko6Zcz9C7T JE5s3Kgontn5p/3V1XqSR1KnU2aewcA0dovwgfIcpwuf/bbZLeWJc0pHG1vhTyMnPaVuRo S8+/scdCEBwe7csgI8DqLpd3M1uKE3a8QYoFcsjYQU8R6m2+Ip1nQYePgp8wHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=e90d1b57487759e076b16cd3903a7b69565452b9 commit e90d1b57487759e076b16cd3903a7b69565452b9 Author: Dimitry Andric AuthorDate: 2022-07-24 21:46:54 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 22:40:13 +0000 Adjust linux_get_char_devices() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/compat/linux/linux_util.c:243:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] linux_get_char_devices() ^ void This is because linux_get_char_devices() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days --- sys/compat/linux/linux_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_util.c b/sys/compat/linux/linux_util.c index 3fd88f291e11..4fa460078597 100644 --- a/sys/compat/linux/linux_util.c +++ b/sys/compat/linux/linux_util.c @@ -240,7 +240,7 @@ linux_vn_get_major_minor(const struct vnode *vp, int *major, int *minor) } char * -linux_get_char_devices() +linux_get_char_devices(void) { struct device_element *de; char *temp, *string, *last;