Skip to content

Commit

Permalink
minor ANSI prototype sparse fix
Browse files Browse the repository at this point in the history
Fix function prototype to be ANSI-C compliant, consistent with other
function prototypes, addressing a sparse warning.

Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
Daniel J Blueman authored and Rusty Russell committed May 19, 2011
1 parent c5be0b2 commit 5d05c70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,7 @@ void unset_section_ro_nx(struct module *mod, void *module_region)
}

/* Iterate through all modules and set each module's text as RW */
void set_all_modules_text_rw()
void set_all_modules_text_rw(void)
{
struct module *mod;

Expand All @@ -1648,7 +1648,7 @@ void set_all_modules_text_rw()
}

/* Iterate through all modules and set each module's text as RO */
void set_all_modules_text_ro()
void set_all_modules_text_ro(void)
{
struct module *mod;

Expand Down

0 comments on commit 5d05c70

Please sign in to comment.