From nobody Thu Aug 11 13:51: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 4M3SsB3rH3z4Z3bW; Thu, 11 Aug 2022 13:51: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 4M3SsB3CgLz3Dh4; Thu, 11 Aug 2022 13:51:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660225902; 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=CxnHIMFBdxI1pwEBBSoPnGWfoMKfUOUKt23xXduwLaY=; b=totIzDOCEe3ZpWsxsc7GIVyQeuYVZqcX9Y7F/Lx1x/4FTsErbdmauAJC3yBgOoNZ4q4osk jbvFfGCM0kE0b3g7d508t3mWJSyknMtewLErVre7wbl1DYdg/VXJE/+BvBHpA2Wj8exdNG a73Y9E2rsvYn901ZXOyt5831curdhpZiz33WqCdkBlf2vGFeP4t5wGYOGJiiBRIa15Pohf P67e3Lw7tC/ydLkguKYP4ZUoqY9g+CDABB2Z6wuH9nxp5DGJia/N/yjXLgVIdMQlG4OxZx GvEC66ViOdgXX6Xs+6v5zgSBPZRt9k7LIU+8YdU+eTR8QEKAxFyB4bFFyHFQog== 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 4M3SsB27tqzt7G; Thu, 11 Aug 2022 13:51: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 27BDpgxf048722; Thu, 11 Aug 2022 13:51:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27BDpgPd048721; Thu, 11 Aug 2022 13:51:42 GMT (envelope-from git) Date: Thu, 11 Aug 2022 13:51:42 GMT Message-Id: <202208111351.27BDpgPd048721@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 8e9ca1379eda - main - Adjust function definition in subr_devmap.c 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: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8e9ca1379edad98a957570a2339a9236910e61c1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660225902; 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=CxnHIMFBdxI1pwEBBSoPnGWfoMKfUOUKt23xXduwLaY=; b=TJqW8OLoh9uxqTnDzrl+c4m2phtihxUfVw8PPhhlcOtdyreYXfO86KqSFQDWWvrNBgsB6l qOPyjZ6RAlrhmHHfz8r2VIiK5jlI+mIpBEVrvX79huVBQ48UVtg/PeczXK07xjbJLd8Pwi OODYLX5vekTYGjZ4ulrVbAQq19dlacOdj4SoN0kQ23304u/4wKkVV2M0DGDIBEtkT3rlZP jbiVBhDrjbzy0fKe16dOZvZF7bZ2tDyoBShoWUE1DX3Uqk8s5sPx9nhek1JtFIddG4eNyq fvRysqkGMQoTJ+GPjU9yTUZYulTrsznBSYn9Do9CZufGBlQbkvTPgZTGRTg7gA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660225902; a=rsa-sha256; cv=none; b=geFqjvLFKcvTagsPvfK/P3ILbTiKulk8+VMxVxFI56sQF2OKpE1pZecWt/JLYY4rdkX+Qf g9MzbfFKyKenkqfosiXrGwaz7lkwF58HNV2tI6YeZgPr1aVxLfJMwJ0ZlyP75ncuL2sNmE QaHd8/qw2IVLilOlMkl4is5aVqTMwNSZAANX3n9o77dan5irV2s2E/pIUMqez/9wrqasK+ Ctooa2KBtG84ibhtt4TdZmO42Il4Py8Ba4+3RqX2bdblqrJYS5kSTg3CHEm3CDANq9KJSr GDGAUHNql8Y8B1XvQz9QQ9cHqDwS4wLapD4+KhXcwbmiOhYzyaLIEfIdla9Kdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=8e9ca1379edad98a957570a2339a9236910e61c1 commit 8e9ca1379edad98a957570a2339a9236910e61c1 Author: Andrew Turner AuthorDate: 2022-08-11 12:04:58 +0000 Commit: Andrew Turner CommitDate: 2022-08-11 13:30:32 +0000 Adjust function definition in subr_devmap.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/kern/subr_devmap.c:87:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] devmap_print_table() ^ void This is because devmap_print_table() and devmap_lastaddr() are declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. Sponsored by: The FreeBSD Foundation --- sys/kern/subr_devmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/subr_devmap.c b/sys/kern/subr_devmap.c index 2ca765878f38..fed9adcb9adb 100644 --- a/sys/kern/subr_devmap.c +++ b/sys/kern/subr_devmap.c @@ -84,7 +84,7 @@ devmap_dump_table(int (*prfunc)(const char *, ...)) * Print the contents of the static mapping table. Used for bootverbose. */ void -devmap_print_table() +devmap_print_table(void) { devmap_dump_table(printf); } @@ -95,7 +95,7 @@ devmap_print_table() * the first unusable byte of KVA. */ vm_offset_t -devmap_lastaddr() +devmap_lastaddr(void) { const struct devmap_entry *pd; vm_offset_t lowaddr;