From nobody Sun Jul 24 22:40:42 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 4LrdRt5hxCz3ysMc; 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 4LrdRt5F7jz3vsd; Sun, 24 Jul 2022 22:40:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658702442; 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=O05CRT5akSYuiOKjtkquvLOktPRfuItjoWy7hPjmH6c=; b=j7Gm48nfFZuVZdjvgj0RbLWyrJndVCkwr5kDktCVbxYboBSNBNhtt7CTZYpLfo5thtn5bp w6EE9x4bMzVW8ZVjsk4bluwazz9c/luGl4strFaZG2A4XVsouuOCTg2kME3+Xz4Tzrq/xt e/BzBy5/yyxPm8C3hiA2d1NWm5tA4cV+JlnEOFFEqUHc4wvzqyPsIbsAE3vaSKyfdt21Bj 4hJ2txs0KNrHWlYE22pZB0/H0M48DauoMbwPw7tIXXSP9t87tKxRI+nqphInWUPS2CQtHY zfCLFtQSSllqk6NltkQ/hzlMUFzBvcfiiL9sENvGibTvYXg+fqthWyR4weKM3w== 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 4LrdRt4Gn4zb6n; Sun, 24 Jul 2022 22:40:42 +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 26OMegFt086367; Sun, 24 Jul 2022 22:40:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OMegpe086366; Sun, 24 Jul 2022 22:40:42 GMT (envelope-from git) Date: Sun, 24 Jul 2022 22:40:42 GMT Message-Id: <202207242240.26OMegpe086366@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: eadef926b059 - main - Adjust linux_vdso_{cpu,tsc}_selector_idx() definitions 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/main X-Git-Reftype: branch X-Git-Commit: eadef926b0593f18beb225f46b3d8a8d4fb44c8e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658702442; 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=O05CRT5akSYuiOKjtkquvLOktPRfuItjoWy7hPjmH6c=; b=Y5aOMWVsF6ZC6MoIRSRmMXe4ZJIoSikObbhYxTanny/l6udGicFbFLW1HNK8YQevJCeDQ2 qO4nQ26SJSMNNipIocTiyfSsX2/x5d9b1Z1eMPTuAXMZRhiQtvpb5f2wwaxFKGX8CJYjUn 7gL4zYbmFF73gWtUKJWJphL5aiTYfVbkQXVjULox0qNkvk8z3mjHf/bJ5b0L9pR7IuXsHF +1XQtwDPKTr1LrFaIiplW0MT04x78qWKOTt7u+YObpJOtER7CAyQqcdgIKYWKhOVqlippH iP4QeX6to2FuwTSmTu5M2zV7tjZKMVx6NfJsVUoSgGMjcmNVeaWxabpzipsOzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658702442; a=rsa-sha256; cv=none; b=tiuREc4ran0mRCB1hOB8D/s3DqrpFdZU480tM9Z1AE0zsDl31ORxLosOHUc9+nwOxkV/r8 5iQ7yZIArNMoiLrdbliiM+q/VbE/wxXKQqHw5Jx7++gb5idDD7zK/zZVigr+ISTCc+WKvh 38ySGDriZaaVrXXOV+j/UXFiF2IgCKnZiOVOxFBzQZtZRyNUhLrVe+KIzYpFpEbY8l7+sO pTAZsg+iO9uXEgZhGakwDNQUQScV/YcndqwC2QVwey5xWSNqJzdbRsq7VvHqnuuE5i2WCM Go12VILV1IwmHo01nZqqQhrFNUnSUQShgMoX2eSw+NhpvAYwQUR5e3kjTOH4PQ== 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=eadef926b0593f18beb225f46b3d8a8d4fb44c8e commit eadef926b0593f18beb225f46b3d8a8d4fb44c8e Author: Dimitry Andric AuthorDate: 2022-07-24 21:53:22 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 22:40:13 +0000 Adjust linux_vdso_{cpu,tsc}_selector_idx() definitions to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/x86/linux/linux_vdso_selector_x86.c:44:28: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] linux_vdso_tsc_selector_idx() ^ void sys/x86/linux/linux_vdso_selector_x86.c:62:28: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] linux_vdso_cpu_selector_idx() ^ void This is because linux_vdso_tsc_selector_idx() and linux_vdso_cpu_selector_idx are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days --- sys/x86/linux/linux_vdso_selector_x86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/x86/linux/linux_vdso_selector_x86.c b/sys/x86/linux/linux_vdso_selector_x86.c index bd8ae333801b..93da98420f17 100644 --- a/sys/x86/linux/linux_vdso_selector_x86.c +++ b/sys/x86/linux/linux_vdso_selector_x86.c @@ -41,7 +41,7 @@ __FBSDID("$FreeBSD$"); #include int -linux_vdso_tsc_selector_idx() +linux_vdso_tsc_selector_idx(void) { bool amd_cpu; @@ -59,7 +59,7 @@ linux_vdso_tsc_selector_idx() } int -linux_vdso_cpu_selector_idx() +linux_vdso_cpu_selector_idx(void) { if ((cpu_stdext_feature2 & CPUID_STDEXT2_RDPID) != 0)