This macro is no longer available in the trace-cmd public header. Since it is used in only one place, we will just replace it with the corresponding code. Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@xxxxxxxxx> --- src/libkshark-tepdata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libkshark-tepdata.c b/src/libkshark-tepdata.c index 0b23912..5fc1eb8 100644 --- a/src/libkshark-tepdata.c +++ b/src/libkshark-tepdata.c @@ -1261,10 +1261,11 @@ const char *tep_plugin_names[] = { */ int kshark_tep_handle_plugins(struct kshark_context *kshark_ctx, int sd) { - int i, n_tep_plugins = ARRAY_SIZE(tep_plugin_names); struct kshark_plugin_list *plugin; struct kshark_data_stream *stream; + int i, n_tep_plugins; + n_tep_plugins = (sizeof(tep_plugin_names) / sizeof((tep_plugin_names)[0])); stream = kshark_get_data_stream(kshark_ctx, sd); if (!stream) return -EEXIST; -- 2.25.1