Skip to content

Commit

Permalink
livepatch: remove extern specifier from header files
Browse files Browse the repository at this point in the history
Storage-class specifier 'extern' is redundant in front of the function
declaration. According to the C specification it has the same meaning as
if not present at all. So remove it.

Signed-off-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Miroslav Benes authored and Jiri Kosina committed Feb 18, 2015
1 parent 1d9c5d7 commit 4421f8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions arch/x86/include/asm/livepatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ static inline int klp_check_compiler_support(void)
#endif
return 0;
}
extern int klp_write_module_reloc(struct module *mod, unsigned long type,
unsigned long loc, unsigned long value);
int klp_write_module_reloc(struct module *mod, unsigned long type,
unsigned long loc, unsigned long value);

static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
{
Expand Down
8 changes: 4 additions & 4 deletions include/linux/livepatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ struct klp_patch {
enum klp_state state;
};

extern int klp_register_patch(struct klp_patch *);
extern int klp_unregister_patch(struct klp_patch *);
extern int klp_enable_patch(struct klp_patch *);
extern int klp_disable_patch(struct klp_patch *);
int klp_register_patch(struct klp_patch *);
int klp_unregister_patch(struct klp_patch *);
int klp_enable_patch(struct klp_patch *);
int klp_disable_patch(struct klp_patch *);

#endif /* CONFIG_LIVEPATCH */

Expand Down

0 comments on commit 4421f8f

Please sign in to comment.