From nobody Wed Jul 27 19:21:30 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 4LtNtg14dyz4XSlG; Wed, 27 Jul 2022 19:21:31 +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 4LtNtf5m45z3Kfm; Wed, 27 Jul 2022 19:21:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949690; 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=muBXvTUwtahXMVs1oGfKiyiSTin5duh9OwJ+nwuIUc4=; b=D76sYMs/Lu3AzoYTjT9GmKO7tM77Iu+s8J798yTGPyn2bhOOtB0mzNV7Aa3TU3Ga6Tjj7a Mxb5736DewLjTCjb+irQmwyHdy8nLQYrtcmwLBCbOXy10+w65g4+uanzcok32+5hJS5fve m5caZmTcwMZzyLPBcQrHsWp91pAN2xaM/9dzmFv6xeCi7zJnq9sl0WnTnjSKQJ1pCjZWGE rPaiotgAMOGlMBSr+qcyXlYGv6/XIbS+6MzyvfspNWjefGazEm2pJyvHlXck1GEbyadcjw jhHPeFIbLdEctTivpXC6U4taJCCXXexk3Br9boCNZW8mrmZ/uTyoQQcqjV/HNw== 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 4LtNtf4rDXzSYk; Wed, 27 Jul 2022 19:21:30 +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 26RJLUdW071734; Wed, 27 Jul 2022 19:21:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26RJLULk071733; Wed, 27 Jul 2022 19:21:30 GMT (envelope-from git) Date: Wed, 27 Jul 2022 19:21:30 GMT Message-Id: <202207271921.26RJLULk071733@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: c6d360ab6d54 - stable/12 - Adjust linux_get_char_devices() definition to avoid clang 15 warning 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: c6d360ab6d54b72dd2717dc55ffa75599f38cf88 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949690; 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=muBXvTUwtahXMVs1oGfKiyiSTin5duh9OwJ+nwuIUc4=; b=TWE77Hly+AmN6xBFgyDJ+emmDwtrgV2UNIbrQT3R3QpOqrl3Rq3Yi0xY9wPMWaceBvTQLG J3HdbHKnzyTqU3LPxjZdcUnPn6S1lsnQkG7VJaiZbMS50EDtKKUVKd6GAJVdtYWpMOo9p4 s2aWPrxVXqx8GVEUCHddVPCW/eUtbG+dpQgh85O7hBrHrCQ5ArYp2Zm4aysA4OGF7PXcFs ePPxPWDRDZoRRJRCbGYcVruyHK5ZN4VFVc4h3iFhJ+WeUpGEWV3lqsjPMBCHbsdZLeWlaq oHx4mewb1pMtPySeBqoi3n5VvgkgwLe0t1Txn44wFQsVoPFV2LgpE/rGSN02dQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658949690; a=rsa-sha256; cv=none; b=rWP9LYoMPzfJpY6wCvFMbU4LtezZ/qWr5p0ctKN68RUZzQKl5nbUb18WDXWcGIe4g5sWOy YU07yEM9ObDms0sU+15QkglOvnMMR93p3SuQQ7jcmStvwtCFybwdK5GzznWp2RhYVXNKK5 wLxAw0u8r6QsHC7+GGYkl8z1UQ2IdcvVZrP2JAvki0ugBLm5uLLxIGGAo5LUehLDNTrVny 9OjFnukzZ3HgHI7Q6ZX6s3fOuxoqzSQyq5F6WI3bqOVApLsHnMkFe9/6uVTHczae1V5CDU hGYR7i1DylB+K6Ry6Y4fxYU1O1f7NQBnT6x+HFmvM6r0z1lddeF17JleNAAi9g== 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=c6d360ab6d54b72dd2717dc55ffa75599f38cf88 commit c6d360ab6d54b72dd2717dc55ffa75599f38cf88 Author: Dimitry Andric AuthorDate: 2022-07-24 21:46:54 +0000 Commit: Dimitry Andric CommitDate: 2022-07-27 19:21:14 +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 (cherry picked from commit e90d1b57487759e076b16cd3903a7b69565452b9) --- 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 9b801b522a45..2538037da00b 100644 --- a/sys/compat/linux/linux_util.c +++ b/sys/compat/linux/linux_util.c @@ -214,7 +214,7 @@ linux_driver_get_major_minor(const char *node, int *major, int *minor) } char * -linux_get_char_devices() +linux_get_char_devices(void) { struct device_element *de; char *temp, *string, *last;