include/asm-generic/error-injection.h: fix a spelling mistake, and a coding style issue
PATCH RESEND 1/1 include/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 Wasin Thonkaew <[email protected]>
--- include/asm-generic/error-injection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/asm-generic/error-injection.h +2 -2
@@ -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
Signature · 1 line
2.25.1
Quoted 3 lines · On Wed, 03 Nov 2021 19:42:36 +0000 (UTC) Wasin Thonkaew <[email protected]> wrote:
Fix a spelling mistake "ganerating" -> "generating". Remove trailing semicolon for a macro
ALLOW_ERROR_INJECTIONto fix a coding style issue.
This looks good to me.
Acked-by Masami Hiramatsu <[email protected]>
Thanks!
Quoted 31 lines
Signed-off-by Wasin Thonkaew <[email protected]>--- include/asm-generic/error-injection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)include/asm-generic/error-injection.h +2
-2@@ -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 Signature · 1 line
2.25.1
Signature · 1 line
Masami Hiramatsu <[email protected]>