Skip to content

Commit 5d05c70

Browse files
Daniel J Bluemanrustyrussell
authored andcommitted
minor ANSI prototype sparse fix
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>
1 parent c5be0b2 commit 5d05c70

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎kernel/module.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ void unset_section_ro_nx(struct module *mod, void *module_region)
16271627
}
16281628

16291629
/* Iterate through all modules and set each module's text as RW */
1630-
void set_all_modules_text_rw()
1630+
void set_all_modules_text_rw(void)
16311631
{
16321632
struct module *mod;
16331633

@@ -1648,7 +1648,7 @@ void set_all_modules_text_rw()
16481648
}
16491649

16501650
/* Iterate through all modules and set each module's text as RO */
1651-
void set_all_modules_text_ro()
1651+
void set_all_modules_text_ro(void)
16521652
{
16531653
struct module *mod;
16541654

0 commit comments

Comments
 (0)