[Devel,RHEL7,COMMIT] fixup for - ms/x86_64: kasan: add interceptors for memset/memmove/memcpy functions

Submitted by Konstantin Khorenko on Aug. 28, 2017, 12:57 p.m.

Details

Message ID 201708281257.v7SCvi5R008293@finist_ce7.work
State New
Series "Series without cover letter"
Headers show

Commit Message

Konstantin Khorenko Aug. 28, 2017, 12:57 p.m.
The commit is pushed to "branch-rh7-3.10.0-693.1.1.vz7.37.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.1.1.el7
------>
commit 2b22264b4e695b658fc71b472796c8728b119cc8
Author: Andrey Ryabinin <aryabinin@virtuozzo.com>
Date:   Mon Aug 28 15:57:43 2017 +0300

    fixup for - ms/x86_64: kasan: add interceptors for memset/memmove/memcpy functions
    
    This hunk shoud have been in the following patch:
    
    796752003a42b70d1f32eb5771885f59febada0d
    Author: Andrey Ryabinin <aryabinin@odin.com>
    Date:   Thu Sep 3 19:27:42 2015 +0400
    
        ms/x86_64: kasan: add interceptors for memset/memmove/memcpy functions
    
    This fixes:
    In file included from ./arch/x86/include/asm/string.h:4:0,
                     from include/linux/string.h:18,
                     from include/linux/efi.h:15,
                     from arch/x86/boot/compressed/eboot.c:12:
    ./arch/x86/include/asm/string_64.h:79:0: warning: "memset" redefined
     #define memset(s, c, n) __memset(s, c, n)
    
    In file included from arch/x86/boot/compressed/eboot.c:11:0:
    arch/x86/boot/compressed/../string.h:18:0: note: this is the location of the previous definition
     #define memset(d,c,l) __builtin_memset(d,c,l)
    
    Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
---
 arch/x86/boot/compressed/eboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c
index ec76e77..b4a6e12 100644
--- a/arch/x86/boot/compressed/eboot.c
+++ b/arch/x86/boot/compressed/eboot.c
@@ -8,7 +8,6 @@ 
  * ----------------------------------------------------------------------- */
 
 #include <linux/types.h>
-#include "../string.h"
 #include <linux/efi.h>
 #include <linux/pci.h>
 #include <asm/efi.h>
@@ -16,6 +15,7 @@ 
 #include <asm/desc.h>
 #include <asm/bootparam_utils.h>
 
+#include "../string.h"
 #include "eboot.h"
 
 static efi_system_table_t *sys_table;