From nobody Sun Aug 21 11:29:03 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 4M9YCz6Gqxz4ZYWM; Sun, 21 Aug 2022 11:29:03 +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 4M9YCz5qRjz3wdg; Sun, 21 Aug 2022 11:29:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081343; 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=ToDaAIbX9qQIqzn4NbzP48CGAcESP1j22j/y5EYWLbk=; b=T8SNVuV54RO6sPKbKhK5eee3cNVGQw8wnEeus6cpdsyaulP84jgZWdhCzhfxAWxhVgT01e vqQQgtwzrj1fs/rs6E6S6hxH32Cu1kCy+TVXp4VZHrXan9DyNNzf04Rrl7NWnkcnRIfY6d 1IXfiFpmzGHV/f/ErAjIXCHR09tgdjU+jJBU/4jRITGfzoseC8SUF64r2TSLvN/SktSzJJ 18ihGJkyKyuiqvQrhpl27aqZkoXj8Tf2Ubv2tFcuZMRXqt/a9gtahQVvUH3yARkDIHpJXM tC2QOfS0KPWWzmlhx4quP4EQk4963WZOoFDt/uosQXIOTpv6g5j+8yZ/9Pm/hQ== 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 4M9YCz4tJ0z18KQ; Sun, 21 Aug 2022 11:29:03 +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 27LBT3xm004284; Sun, 21 Aug 2022 11:29:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBT31u004283; Sun, 21 Aug 2022 11:29:03 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:03 GMT Message-Id: <202208211129.27LBT31u004283@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: 71554ce0cdd1 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 71554ce0cdd17b1ed6aef734fb15f150dc3af21e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081343; 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=ToDaAIbX9qQIqzn4NbzP48CGAcESP1j22j/y5EYWLbk=; b=JUvxVdnVVGirK7Si4QgSeEh4bd3A9qa2xSxzkKgHq0mspaov3P8UjmSYI3ysEU6fr6L4Di pk373OH0H5DVIOqg6NOmSeZ0i44pWWQLw29EYNdF7bEkdfzyv1d7rq2aQvpukP7PMN2F7f spUPvShyaqIeCPAaHMpRN8JcHWsk63+4TBUyDZyOfIYMqSgrAWtdcZFO6Xj95Gwm91l1pr wDP3jPRQJYjutGUdqIylMtcTvgZVQ3e8eJ0Jzi/W9alvbh/rIb5ieIylmjVmq7hduKuasi 1y8ZwZoH96plUVL0MiRf/Gydh3U+kwnLROR1uPa6kivAFp1PP2AstVHN14rqxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081343; a=rsa-sha256; cv=none; b=T/cy+wDXeSKLHGRuriIfSnU4pIkUemg5DD9M9CVjQoDojw1T5v4OKyOSQ49vBVGUYJL+DI 2iSBRiZOO3y4DeH4hDavJ1G9g7KmD1MdHkpQ94n8KlUKZEweDsBbpzMeqLCVgDdsC7rG71 IKfeFV8o6VX0lVWi5tdo2l6fdp74QVo7j2fLqzZyZ5TSVGdYKMnEwKH1fh0kUQ0NY1/VL9 YeLhpTRVN38uvyLV6SrW36Ou8uV32Uz/WpKD6U6bA4ESocv8Jgg4uTTY4N5nHTawaHApou zDmd5QLcg9rMOuaqygrlUuD6miIFC33GRWcgYoRrJkT8pXVHA0T/i+zOzxHyEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=71554ce0cdd17b1ed6aef734fb15f150dc3af21e commit 71554ce0cdd17b1ed6aef734fb15f150dc3af21e Author: Dimitry Andric AuthorDate: 2022-08-14 19:01:31 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:10:50 +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 (cherry picked from commit 7a7bbe10216e0fbcf3af7a122d249cb000d517c7) --- 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 8cb913570c13..507b14b06457 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;