HomeFreeBSD

Adjust t4_tracer_mod{load,unload}() definitions to avoid clang 15 warnings

Description

Adjust t4_tracer_mod{load,unload}() definitions to avoid clang 15 warnings

With clang 15, the following -Werror warnings are produced:

sys/dev/cxgbe/t4_tracer.c:234:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
t4_tracer_modload()
                 ^
                  void
sys/dev/cxgbe/t4_tracer.c:243:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
t4_tracer_modunload()
                   ^
                    void

This is because t4_tracer_modload() and t4_tracer_modunload() are
declared with a (void) argument list, but defined with an empty argument
list. Make the definitions match the declarations.

MFC after: 3 days

(cherry picked from commit 54e5efb2643ec5f4bf40fef2a1937cd5449a58a0)

Details

Provenance
dimAuthored on Jul 19 2022, 6:20 PM
Parents
rG08c55de237ed: Adjust db_flush_line() definition to avoid clang 15 warning
Branches
Unknown
Tags
Unknown