From nobody Wed Jul 27 19:18:06 2022 X-Original-To: dev-commits-src-branches@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 4LtNpl0mX9z4XSCS; Wed, 27 Jul 2022 19:18:07 +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 4LtNpk5KT4z3GbV; Wed, 27 Jul 2022 19:18:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949486; 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=mYdU37Z+ZL/jLCuY3WrA1HnChgzpoc5zK8CmMQJJO/o=; b=T0ZYgKD7QOiagjNPUJ9uwCMSIR+nn3ALRh1yXcWx+evUEh01sddVkXulr3MOo3YzYv3y9D zf9tbGeB4m7Z5xLCYn6XW2BLzpmttg4ZvsSmyBohwRfYPmXjE7qiYRWhR1zil9LPMlrJyp KdeLeTJuu+qx7f7LEtjfLIfn+XQ6vuXP7kLla6B0Qh81hH66xKOOthz2Xv1xyy8thAeqMN Pc3Vp6rzA3Qt3ywuF7jdXMOVsA6p68MbwIpQt8p2dJCTtyOFd9srIR8ZN/XYk3SjOWu4Vy rutCnwrK52sTiR7uk5XTCO2Foa8GBKUc2xmk0pvg9zz+AfgdRD9THyPVOI2dog== 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 4LtNpk4DKqzSPl; Wed, 27 Jul 2022 19:18:06 +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 26RJI6ct058756; Wed, 27 Jul 2022 19:18:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26RJI6GA058755; Wed, 27 Jul 2022 19:18:06 GMT (envelope-from git) Date: Wed, 27 Jul 2022 19:18:06 GMT Message-Id: <202207271918.26RJI6GA058755@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: 6a2fb0df3b79 - stable/13 - Adjust linux_get_char_devices() definition to avoid clang 15 warning List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/13 X-Git-Reftype: branch X-Git-Commit: 6a2fb0df3b79f52dc1b455e53c74118645d4b178 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658949486; 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=mYdU37Z+ZL/jLCuY3WrA1HnChgzpoc5zK8CmMQJJO/o=; b=WqFc6i/bIOlNM3ba1lR/jySqXerlhAc2DiklzPuUXRqEE4WagzEu7BxND5NDzmlJSIr1EO ZoXN3FK6XAZbvQCbmZhyijMXsCAS3eZwrikeruVXljZR+5d3XSlb1rpAEbHhXuW/NH+qK1 2STXbadZyzweqj5HkkvbkYWEq071H4RLOqh33IclZxMFSb+KKPPAtDwCL/1Tg7nyNE7TGN aemjt8RAOJ+LJxrxNChGEBhJub4vJEpPk5DwbLQDS7y3eZgkdfNUIedGWHZk24nzId4EQH DVAdBzqpsc4ZnTBqKDwAqbMqcMFTRnIe7Cmu43ZGDneaptCphT9wXmtwR3iz4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658949486; a=rsa-sha256; cv=none; b=tY88tkYq8ZSK6BG9tGctT25iLmgsc+AhxMzR2l/ub48jyQl04AjBnDCNHB7ZKztBZ0A2h3 W7u94+r8DTBcJ+wiTVr9s9etIuxTUS82DhMd50rFcRiZ1cb61dc5PKVm8Qk5TAXr23Zvm3 Q85Ernqq1TDexZYJ4BfJZrBK6ALBZ6pflmewxHMD83gmUKPtvaJ8aKtR1ABSC8B6tIqc+F NnNSkaOdrH+83rGioG3n/f8fi3ZQ27mKPK3OFxP6TSw853rkU9/K+zor8/tsGZK7vB6N4r MM2PvJXoNSj7ODdichKt78T1CIcywYvkN41dpzWXE01AAkU+Q7kjyjHKvjqrfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=6a2fb0df3b79f52dc1b455e53c74118645d4b178 commit 6a2fb0df3b79f52dc1b455e53c74118645d4b178 Author: Dimitry Andric AuthorDate: 2022-07-24 21:46:54 +0000 Commit: Dimitry Andric CommitDate: 2022-07-27 19:17:22 +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 f1d33faa628d..e41c505425ee 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;