Change function() to function(void) for all no-args functions

This is consistent with the rest of the codebase, and for static
functions with no declarations in headers, makes them correct.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
This commit is contained in:
Dan McGee 2011-11-16 14:01:36 -05:00 committed by Neil Horman
parent 16a77f1018
commit 875fdbb62d
4 changed files with 6 additions and 6 deletions

View file

@ -324,7 +324,7 @@ static void clear_obj_stats(struct topo_obj *d, void *data __attribute__((unused
* which level does how much work and the actual lists of interrupts * which level does how much work and the actual lists of interrupts
* assigned to each component * assigned to each component
*/ */
void clear_work_stats() void clear_work_stats(void)
{ {
for_each_object(numa_nodes, clear_obj_stats, NULL); for_each_object(numa_nodes, clear_obj_stats, NULL);
} }

View file

@ -132,21 +132,21 @@ static void parse_command_line(int argc, char **argv)
* Object workload is the aggregate sum of the * Object workload is the aggregate sum of the
* workload of the objects below it * workload of the objects below it
*/ */
static void build_object_tree() static void build_object_tree(void)
{ {
build_numa_node_list(); build_numa_node_list();
parse_cpu_tree(); parse_cpu_tree();
rebuild_irq_db(); rebuild_irq_db();
} }
static void free_object_tree() static void free_object_tree(void)
{ {
free_numa_node_list(); free_numa_node_list();
clear_cpu_tree(); clear_cpu_tree();
free_irq_db(); free_irq_db();
} }
static void dump_object_tree() static void dump_object_tree(void)
{ {
for_each_object(numa_nodes, dump_numa_node_info, NULL); for_each_object(numa_nodes, dump_numa_node_info, NULL);
} }

View file

@ -181,7 +181,7 @@ static void validate_object(struct topo_obj *d, void *data __attribute__((unused
for_each_irq(d->interrupts, validate_irq, d); for_each_irq(d->interrupts, validate_irq, d);
} }
static void validate_object_tree_placement() static void validate_object_tree_placement(void)
{ {
for_each_object(packages, validate_object, NULL); for_each_object(packages, validate_object, NULL);
for_each_object(cache_domains, validate_object, NULL); for_each_object(cache_domains, validate_object, NULL);

View file

@ -184,7 +184,7 @@ static void reset_load(struct topo_obj *d, void *data __attribute__((unused)))
d->load = 0; d->load = 0;
} }
void parse_proc_stat() void parse_proc_stat(void)
{ {
FILE *file; FILE *file;
char *line = NULL; char *line = NULL;