livepatch: remove extern specifier from header files
authorMiroslav Benes <mbenes@suse.cz>
Wed, 18 Feb 2015 14:21:07 +0000 (15:21 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 18 Feb 2015 19:50:05 +0000 (20:50 +0100)
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>
arch/x86/include/asm/livepatch.h
include/linux/livepatch.h

index a455a53d789a12c908097ee6b266086c56479e47..2d29197bd2fbfb7da88b1b3f9c9c932a78e177a5 100644 (file)
@@ -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)
 {
index 95023fd8b00dd8343896524b31a31a7f1e9451a4..ee6dbb39a809811ca6aa563ea125fc9bb0af4756 100644 (file)
@@ -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 */
 
This page took 0.026237 seconds and 5 git commands to generate.