HomeFreeBSD

Fix missing semicolon in trace_dbuf.h (#16281)

Description

Fix missing semicolon in trace_dbuf.h (#16281)

On fedora 40, on the 6.9.4 kernel (in updates-testing), assign_str
expands to a "do {<stuff> } while(0)" loop. Without this semicolon,
the while(0) is unterminated, causing a cascade of useless errors.
With this semicolon, it compiles fine. It also compiles fine on 6.8.11
(the previous kernel). I have not tested earlier kernels than that, but
at worst it should add a pointless semicolon.

All other instances in the source tree are already terminated with
semicolons.

Signed-off-by: Daniel Berlin <dberlin@dberlin.org>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>

Details

Provenance
Daniel Berlin <dberlin@dberlin.org>Authored on Jul 13 2024, 12:44 AM
Tony Hutter <hutter2@llnl.gov>Committed on Jul 16 2024, 11:34 PM
Parents
rG08da05400556: one-word manpage correction: snapshot->rollback (#16294)
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGdfdac38afb1f: Fix missing semicolon in trace_dbuf.h (#16281) (authored by Daniel Berlin <dberlin@dberlin.org>).Jul 16 2024, 11:34 PM