HomeFreeBSD

Adjust function definition in drm_fb_helper.c to avoid clang 15 warning

Description

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)

Details

Provenance
dimAuthored on Aug 14 2022, 7:01 PM
Parents
rG77889d4ad0ed: Adjust function definition in powerpc's dtrace_subr.c to avoid clang 15 warning
Branches
Unknown
Tags
Unknown