Commit 733e4175 authored by Wasin Thonkaew's avatar Wasin Thonkaew Committed by Arnd Bergmann

asm-generic/error-injection.h: fix a spelling mistake, and a coding style issue

Fix a spelling mistake "ganerating" -> "generating".
Remove trailing semicolon for a macro ALLOW_ERROR_INJECTION to fix a
coding style issue.
Signed-off-by: default avatarWasin Thonkaew <wasin@wasin.io>
Acked-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent e0cb5654
...@@ -20,7 +20,7 @@ struct pt_regs; ...@@ -20,7 +20,7 @@ struct pt_regs;
#ifdef CONFIG_FUNCTION_ERROR_INJECTION #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. * error-injectable using this macro.
*/ */
#define ALLOW_ERROR_INJECTION(fname, _etype) \ #define ALLOW_ERROR_INJECTION(fname, _etype) \
...@@ -29,7 +29,7 @@ static struct error_injection_entry __used \ ...@@ -29,7 +29,7 @@ static struct error_injection_entry __used \
_eil_addr_##fname = { \ _eil_addr_##fname = { \
.addr = (unsigned long)fname, \ .addr = (unsigned long)fname, \
.etype = EI_ETYPE_##_etype, \ .etype = EI_ETYPE_##_etype, \
}; }
void override_function_with_return(struct pt_regs *regs); void override_function_with_return(struct pt_regs *regs);
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment