asm-generic/error-injection.h: fix a spelling mistake, and a coding style issue
authorWasin Thonkaew <wasin@wasin.io>
Wed, 3 Nov 2021 19:42:08 +0000 (19:42 +0000)
committerArnd Bergmann <arnd@arndb.de>
Fri, 17 Dec 2021 13:12:14 +0000 (14:12 +0100)
Fix a spelling mistake "ganerating" -> "generating".
Remove trailing semicolon for a macro ALLOW_ERROR_INJECTION to fix a
coding style issue.

Signed-off-by: Wasin Thonkaew <wasin@wasin.io>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/error-injection.h

index 7ddd9dc10ce9666f5c07f687c0c075cc81860751..fbca56bd9cbc854e394ed6bc392542d5eb20745e 100644 (file)
@@ -20,7 +20,7 @@ struct pt_regs;
 
 #ifdef CONFIG_FUNCTION_ERROR_INJECTION
 /*
- * Whitelist ganerating macro. Specify functions which can be
+ * Whitelist generating macro. Specify functions which can be
  * error-injectable using this macro.
  */
 #define ALLOW_ERROR_INJECTION(fname, _etype)                           \
@@ -29,7 +29,7 @@ static struct error_injection_entry __used                            \
        _eil_addr_##fname = {                                           \
                .addr = (unsigned long)fname,                           \
                .etype = EI_ETYPE_##_etype,                             \
-       };
+       }
 
 void override_function_with_return(struct pt_regs *regs);
 #else