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

Details

Provenance
dimAuthored on Jul 19 2022, 6:20 PM
Parents
rGab4f0a151880: Add -S option to veriexec
Branches
Unknown
Tags
Unknown