From nobody Mon Aug 22 09:12:18 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 4MB67l235dz4Z5Lc; Mon, 22 Aug 2022 09:12:19 +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 4MB67l03kFz3fgr; Mon, 22 Aug 2022 09:12:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661159539; 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=Wjn4LF54C6Lz1MEFtFguPHFFGmTwd8IEkCy4FpAFs9I=; b=wSdhzTE7G/TCeyjj4vQ1J0GU6M8C1ZOK0TiqSUSVgjzTcq9/k5TBfKv7lGFHRyhnnp0vga bKbpt9ByeooLK0cxQmuGe13mbUjwICyF8rRqLAmHZXVm7QPthhl4GxyL+z6ohj4CbB0SLN fzASAKijImM7lp8o2WX7KgjqVWR1a725uRI8voUjF8uGSOE+cxsN8S/vhET12GnIAeQdPY 54V8IogdzyhF0gl8KxHEoBW8n6ZBdVSx0Y/A2hO4XaGdEvs/yiAVrbUIB01+vii3e0Z3wh 0T+eXtE124LVOKyqndojlbE9UdQR+X3w4efmMOU1/Q+G/5N9D4IAoSATqBa+Uw== 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 4MB67k6GPqzl03; Mon, 22 Aug 2022 09:12:18 +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 27M9CIBw046979; Mon, 22 Aug 2022 09:12:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27M9CINx046978; Mon, 22 Aug 2022 09:12:18 GMT (envelope-from git) Date: Mon, 22 Aug 2022 09:12:18 GMT Message-Id: <202208220912.27M9CINx046978@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: d86e51e9956c - stable/13 - Adjust function definition in subr_devmap.c 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: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d86e51e9956c2bf74d5570033053f2b51a15a8e4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661159539; 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=Wjn4LF54C6Lz1MEFtFguPHFFGmTwd8IEkCy4FpAFs9I=; b=DvcGNrQ1Sr7HvADrFinhR2IB7pzwkvEO66VmKl6UUl4VObboEqc5UGx2stPUBklPk+k230 SL0wJT2il5QdoFAGj1VhEFJlRCeL2sCGwTi5iGhyf7HGn0qlna+QfMdbt9RVfh22flsHqO DKjuPMKOSdcO9J2fEhmWHJ3a9oJ1ukQlq95fYxQWjSJcMfw3I7DYbYFVH9sEsRrIdr2bAM b6kd0qVOGYI7rZlJOcRpnzv9REZUJBwnq3DBFJFKmeZ9w5OSBwyJVUhIHpy0Dk9HwoWz4D 6LG3bb0154k6INxLWP9vQqlLU+yk5cZrZivsc3ESSJ7KwI7zZxkWxztsdf322Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661159539; a=rsa-sha256; cv=none; b=SeZbmX7KMe3wvlqAeoPGAY0HYZj92yArtb8NhUJatfA7Zp7pAhBzj3Q2gOoJHtbE86ICSd O4WST264BRr3tSj0Z2R//u+WaKrnc+YPuD94eV5mb3SWQB6OVzSagjNu/YQG+AdzRulRo7 iNx0MSIgOtQOqQ2CujQ7BHaZZ+hRV/cEnKSkA10vysiFKo5m55Lo7AyTK+Pjaqu3eJOOyO Cju8FHkzb/7pNbwm3Rx9+NQzDhc8+ngtLk8HG33mLDZMcZKLvE0iYpvCdXHUfgaqw3Mc6u 7J9PoB5Kl2VdaumUvKAxD5n/HXx/9W5EkLP4xGpSgRW5G4xz8wH5MgX/GxOkNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=d86e51e9956c2bf74d5570033053f2b51a15a8e4 commit d86e51e9956c2bf74d5570033053f2b51a15a8e4 Author: Andrew Turner AuthorDate: 2022-08-11 12:04:58 +0000 Commit: Andrew Turner CommitDate: 2022-08-22 09:11:29 +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 (cherry picked from commit 8e9ca1379edad98a957570a2339a9236910e61c1) --- 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 1c9b192cc4c8..3d935791aea7 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;