From nobody Fri Jul 29 18:48:34 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 4Lvc3k5BbGz4Y21h; Fri, 29 Jul 2022 18:48:34 +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 4Lvc3k4Nvdz3syk; Fri, 29 Jul 2022 18:48:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120514; 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=vIhQRUfUKTgcEK4Wj2PCURmQI87yuKkySEuPkA+KcVQ=; b=P9leOFDbtC+H2u2akzNG97n+munR6GoxX1/evIF8VLMwxgtQoD0nqY8kdGXRqC6lGzPHrP aboTx5NjSDcuaeMXxCGdjSA91LLI3P3sR3iYAbkUQIA814+/KJ0cDHOy8FkjhGm/246Qa6 UszoBHrhHhdIf6DhaS99HY+D5nLnqNYZg7Zlp5hqVMldBcUmCoKT9iu9PXgX/lht2boGbQ NuyGS8X5qAYiVOVnqZwd71FgF+YC3QQCNoLKU7tuvlz39hU2/68A5AidJDNH9TsuBTjE/c ryHM5/CwkytbxyzdijxS/DasKsTI1sXI0DEs2wFWZHcXug8IX1hX9mtki92yeQ== 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 4Lvc3k3P19zlvq; Fri, 29 Jul 2022 18:48:34 +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 26TImYOB025550; Fri, 29 Jul 2022 18:48:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TImYj8025549; Fri, 29 Jul 2022 18:48:34 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:48:34 GMT Message-Id: <202207291848.26TImYj8025549@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: 656fcede6c71 - stable/12 - Adjust function definition in subr_autoconf.c to avoid clang 15 warnings 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/12 X-Git-Reftype: branch X-Git-Commit: 656fcede6c7121a5dba850d99ad54102364d76f3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120514; 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=vIhQRUfUKTgcEK4Wj2PCURmQI87yuKkySEuPkA+KcVQ=; b=O78L1kmA22feMexxMmwm2ZaIDpQQXRE3Zj8/pZRpWKMf1FkjkSiT/MCwCH7sdlme2HIecy fEaTkJOV7il537jcs12RUOMCtMCM9atU6uZtCOoMprVctH/jxVS8k41WG3zzen8Dg4rMnJ tK3lxdTIXe4RupjiTnuIv+cXj0lwaE7VuftKf6pVfgIrVHbaL5oo2A1jBwVUT0HbOBe6UP nfjbh3NdyBZMG6bt+2L96YR2Un/A8JgoponLQEV806zKhBc1mozKo0vvLSkke7p5qSpSym T+tfIqRGyvd8hS3eSkPkD7GO5TMhfZZx8l0Ab/OzwElecmXdpFpL4JV2dZlOsw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120514; a=rsa-sha256; cv=none; b=V9hKgXDOVhF2VXB9DKRuQHMFX50XbRynOJmua+cSaKC7p6zapv7JfYmK3m9qWKpsbooWyE tAzEytz3AXP7ZRKVslh/I3igktzNf/vzjg3TtjyYsT+ieasB6CUQDX9BcUw47bfD+Ay1J8 LbZDzvaHuL96RihhdhFbCzBLPiPcrMcc7382an50uxcbxvzlI9NbpJOLlCnf2eLn72XFbB IQW6JhWngY8thJCevc/j0utQOqXC4WC0yygGbL00ucJIcqcmhCH1u0JDQ/iMMxE8Mz8Fe4 fN16qaHx/dUjevhmtPsKQVmfkZjuzvJSqEYAUykp3ZM2wpLe//mQZiy7GXFxMg== 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=656fcede6c7121a5dba850d99ad54102364d76f3 commit 656fcede6c7121a5dba850d99ad54102364d76f3 Author: Dimitry Andric AuthorDate: 2022-07-26 15:27:54 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:37:15 +0000 Adjust function definition in subr_autoconf.c to avoid clang 15 warnings With clang 15, the following -Werror warning is produced: sys/kern/subr_autoconf.c:119:34: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] run_interrupt_driven_config_hooks() ^ void This is because run_interrupt_driven_config_hooks() 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 3c8f0790dd038ce646f140b7aad23b4e698c0522) --- sys/kern/subr_autoconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c index 77c48485e1da..ee77b794b116 100644 --- a/sys/kern/subr_autoconf.c +++ b/sys/kern/subr_autoconf.c @@ -116,7 +116,7 @@ run_interrupt_driven_config_hooks_warning(int warned) } static void -run_interrupt_driven_config_hooks() +run_interrupt_driven_config_hooks(void) { static int running; struct intr_config_hook *hook_entry;