The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4cfadd41f00f6bcdf73fe730486441e4774d5603
commit 4cfadd41f00f6bcdf73fe730486441e4774d5603 Author: Dimitry Andric <[email protected]> AuthorDate: 2022-08-14 19:01:31 +0000 Commit: Dimitry Andric <[email protected]> CommitDate: 2022-08-21 11:18:40 +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 cf98d2f9dfec..781c6ef01738 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;
