From nobody Tue Jul 26 18:00:38 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 4Lsl7q17HCz4XgLq; Tue, 26 Jul 2022 18:00:39 +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 4Lsl7q0d3Rz3kTW; Tue, 26 Jul 2022 18:00:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658858439; 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=6/FCvzINm54zQQ8TQDJO6bvnGoKEJ7Jb5XTpfzU3W44=; b=KkG6Ukh3oGPWIKWRRHKy9u83cT+PLJTf35pvklNmUT2EQsjphVmGthsFrYgFO/olbAwxZm N4vJZ/yGOiLZLLp+H5rHAWF98CcIlfBK6IFaru8Cj+JMSfaraQ5rC9DvShDc4rXsdn9gg3 Mm2o6K+OH0pZMGkthymQWjlTF7NQv8oZ2DShqcZZBYSCHmaNMiRccm6S42Na+Fq7xZHvLK MgbRhPVCyHGkG+mbgU2+RMGBnS5u4KFbnINAb6shrmaqvs/w12xqLXyODqM7UDwhZr8ttS Sf6Z2VFBjeVgGbdXvOAQO3WWtmftxDqKR9ojP3UzBwM3JqqyPaNX19kfCc6ecg== 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 4Lsl7p6kcyzmCP; Tue, 26 Jul 2022 18:00:38 +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 26QI0chB005996; Tue, 26 Jul 2022 18:00:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QI0cPs005995; Tue, 26 Jul 2022 18:00:38 GMT (envelope-from git) Date: Tue, 26 Jul 2022 18:00:38 GMT Message-Id: <202207261800.26QI0cPs005995@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: 3c8f0790dd03 - main - Adjust function definition in subr_autoconf.c 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: 3c8f0790dd038ce646f140b7aad23b4e698c0522 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658858439; 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=6/FCvzINm54zQQ8TQDJO6bvnGoKEJ7Jb5XTpfzU3W44=; b=bz5Fl7OeoXaGtgIsE2Skyb1X8Y6DTNZ0ycYvupRZ3VaDWQIWEYSYQGG3bFItwLx3scwkKE TN9B1O+Ap2tmvl85N0nh76OQ5kDWMatQ7CpG4aOYawtfGkrmyG58JlXacHQD7Y7QdNp6c8 IaxhhYMlMtniZU0hrysXGKu8lUuF5wyWWrJjEQpvYBJG2kGzUdJXDaNImYnfsPKjsZYknq yNfiOpLleOW69FB+hK7eAtvyQi0/TrjYHYSAo87oIjRP1Chmvcve8C58mVra1zQN3ZBbYJ SOz0nWzoSdFnQA2g+QfFwzg0KrhZ5o+1tPcfkm95rfOxl9eskjtYqy8T1ugR8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658858439; a=rsa-sha256; cv=none; b=NkRPyoDSveazftlNxeSSFst7VYUbaFiGWDC3B3SaIiBBkFtHjUJOHMKU0PbNFlaGTGMZPd KPBG69VnmYQ7nNPGzLCtxGKgrLx5NGcQtzjWHCeVC23AZ1aHFHj9OQDqoQ66Vrw7110fyS G25d0+xDbKbcz2wBC2ehSS/QmnvpAuARFisOLjhLxef0vdkrlk/yxTB2/opE7kdOQSYhWD jEhc4S9mIbhexR9ktX8S2xc++HAjvyNFBfx/G7U/h7UOR4yVCSb9619gGKQIbL5ZWemINM F762oOhjXbtAi5IuwRf85VQ0vwzwSp6rdZRciv2AYxWe5ECwYcVrGmDimgCj+g== 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=3c8f0790dd038ce646f140b7aad23b4e698c0522 commit 3c8f0790dd038ce646f140b7aad23b4e698c0522 Author: Dimitry Andric AuthorDate: 2022-07-26 15:27:54 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 17:59:57 +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 --- 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 5c278afb61c2..0166258a534c 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;