Commit 0eee08dbddea520536197657da7a0b (perf-counter: simplify the performance macro) introduces the PERF macro, which is empty for non-linux platforms.
Added to commit bc487aeff2d6823c088d6e4499e0f53e6651523b (ovsdb: Add per transaction commit instruction counter), that uses such macro, it causes segfaults, since it makes ovsdb_txn_commit return an uninitialized pointer as error. Signed-off-by: Thadeu Lima de Souza Cascardo <casca...@redhat.com> --- lib/perf-counter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/perf-counter.h b/lib/perf-counter.h index ca3aaba..e13c9eb 100644 --- a/lib/perf-counter.h +++ b/lib/perf-counter.h @@ -113,7 +113,7 @@ char *perf_counters_to_string(void); perf_counter_accumulate(&c, start_count); \ } #else -#define PERF(name, expr) +#define PERF(name, expr) expr; static inline void perf_counters_init(void) {} static inline void perf_counters_destroy(void) {} -- 2.4.2 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev