From nobody Sun Aug 14 19:27:54 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 4M5S9k3nQhz4YvFs; Sun, 14 Aug 2022 19:27:54 +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 4M5S9k3BXFz3Lys; Sun, 14 Aug 2022 19:27:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505274; 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=WE8A+57+hwySVs6Qv9keBLlaMH/7RC7IXIwqrnjpI34=; b=au5rarfrePLKLVS0TZtgL2KlqS3TVY0bOGfVKi52SDOksomH7mpzDlntbI+cTqFAuvhHCv UCchpFuSy0zmueswhiBrmTicEBZSDP4ASD9YrUvRaWeY72L7FeU5EQKskwRlOSIm4FTF4f 6kW6iuaD0S8xNhbstGjdM+BLN2aKjSImCF9bs6/ZTdZlvfSEqUqLenTA0eCwyRhuL5g374 u38ymVwLMTW7nxmQeIZiKCeKbPE9coQ4nUXV6F3jK1DLIz0tSYAsQL9n/V2kTYjn61VtHN +AeekohLQ8Q2+Cv+W/SZ5gqtYtA/I1Q9733nt/pjuRGJoIe6YY7l+1mhr5ESTg== 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 4M5S9k2HHJz12Zx; Sun, 14 Aug 2022 19:27:54 +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 27EJRs1S044281; Sun, 14 Aug 2022 19:27:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27EJRs7b044280; Sun, 14 Aug 2022 19:27:54 GMT (envelope-from git) Date: Sun, 14 Aug 2022 19:27:54 GMT Message-Id: <202208141927.27EJRs7b044280@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: 7a7bbe10216e - main - Adjust function definition in drm_fb_helper.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: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7a7bbe10216e0fbcf3af7a122d249cb000d517c7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505274; 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=WE8A+57+hwySVs6Qv9keBLlaMH/7RC7IXIwqrnjpI34=; b=lcAer4fEx+X/lani1sGHBj8iiwY6CBfAUDnUa3aWcZVszEZx2hUQAQ66L/AiEuaLFvHRP4 v3LLL8lyxlITS3JSYPe9bzBXGbhEgXfV4elzVWR7ZTQuFtPQeve2vPF7KqT39nqisNuoA+ KJgdgMN79/4FP4QpmCE1kMTqOJ1PeGxRhnIhCz07TYnnd6ic7iDMlixXAzzMBU8qbi9L22 /lP85G76Zf8ZVhyR2vn4pcwTh57N+w3NfpkWeaDCERbdosJtvr3Cr6NF5nLLiNExYg6L/U 6M7OSZf+JQyPqvQ+nd1iN6F6TspK7PJWQj3XXhyIHvMPK0Wlf7B3CkAyQ4BR7w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660505274; a=rsa-sha256; cv=none; b=kCZf1m4afTWUE+IczPiSHQC0h7jIMww/GB0tKGWlHX4CAIt+3ccBiiS85d0B3pWYrUqE73 EfGt3RwFo5QAONVUbFHVl9jg6/qeW5FSgO6ABO3ynQF4zA7xZwHx3KAslxoYSVQzXoYjk8 N9DEB14aGatTD9XN3a4tQcxxGWp9NB1ZAkPR07e92jF517+Oa/qeBqOVTTj03XCu2q4G6c zRsxgWHS+DRCysJo67ZOHFv3XYjwVKwe7PDrCXFkJmBOXIy6rSk8+4z/3TT+b7ttvCwVTL GA5VFZnig5VAI+MuECRsTvMe8Zu5VK0WeLrzuJFw+HpUissAz+W9GYHOh3aRIA== 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=7a7bbe10216e0fbcf3af7a122d249cb000d517c7 commit 7a7bbe10216e0fbcf3af7a122d249cb000d517c7 Author: Dimitry Andric AuthorDate: 2022-08-14 19:01:31 +0000 Commit: Dimitry Andric CommitDate: 2022-08-14 19:27:34 +0000 Adjust function definition in drm_fb_helper.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/dev/drm2/drm_fb_helper.c:86:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] framebuffer_alloc() ^ void This is because framebuffer_alloc() 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/dev/drm2/drm_fb_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/drm2/drm_fb_helper.c b/sys/dev/drm2/drm_fb_helper.c index c5ec36724a35..0405ca68bfa6 100644 --- a/sys/dev/drm2/drm_fb_helper.c +++ b/sys/dev/drm2/drm_fb_helper.c @@ -83,7 +83,7 @@ vt_kms_postswitch(void *arg) } struct fb_info * -framebuffer_alloc() +framebuffer_alloc(void) { struct fb_info *info; struct vt_kms_softc *sc;