aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYordan Karadzhov <ykaradzhov@vmware.com>2019-03-27 18:03:17 +0200
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-04-08 12:16:51 -0400
commitc898460178701afd40bd899c444d3b70713d8e50 (patch)
tree959ec7c68c281148118c2f2ed4ac559d71c4ef45
parent5def8aaffcdbb95c9ab5220ada0ae33db567c2b0 (diff)
downloadtrace-cmd-c898460178701afd40bd899c444d3b70713d8e50.tar.gz
kernel-shark: kshark_string_config_alloc() must take no arguments
The function is not meant to have arguments, so it must explicitly state this. A functions taking unspecified list of parameters will be a problem for the Pythion interface. Link: http://lore.kernel.org/linux-trace-devel/20190327160323.31654-2-ykaradzhov@vmware.com Signed-off-by: Yordan Karadzhov <ykaradzhov@vmware.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
-rw-r--r--kernel-shark/src/libkshark-configio.c2
-rw-r--r--kernel-shark/src/libkshark.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel-shark/src/libkshark-configio.c b/kernel-shark/src/libkshark-configio.c
index 2bd56008..91065227 100644
--- a/kernel-shark/src/libkshark-configio.c
+++ b/kernel-shark/src/libkshark-configio.c
@@ -369,7 +369,7 @@ kshark_filter_config_new(enum kshark_config_formats format)
* @returns kshark_config_doc instance on success, otherwise NULL. Use free()
* to free the object.
*/
-struct kshark_config_doc *kshark_string_config_alloc()
+struct kshark_config_doc *kshark_string_config_alloc(void)
{
return kshark_config_alloc(KS_CONFIG_STRING);
}
diff --git a/kernel-shark/src/libkshark.h b/kernel-shark/src/libkshark.h
index a1b1f91b..c218b61c 100644
--- a/kernel-shark/src/libkshark.h
+++ b/kernel-shark/src/libkshark.h
@@ -541,7 +541,7 @@ kshark_record_config_new(enum kshark_config_formats);
struct kshark_config_doc *
kshark_filter_config_new(enum kshark_config_formats);
-struct kshark_config_doc *kshark_string_config_alloc();
+struct kshark_config_doc *kshark_string_config_alloc(void);
bool kshark_type_check(struct kshark_config_doc *conf, const char *type);