1 From fb24e308b6310541e70d11a3f19dc40742974b95 Mon Sep 17 00:00:00 2001
2 From: Arnaldo Carvalho de Melo <acme@redhat.com>
3 Date: Sun, 9 May 2021 10:19:37 -0300
4 Subject: tools arch: Update arch/x86/lib/mem{cpy,set}_64.S copies used in 'perf bench mem memcpy' - again
6 From: Arnaldo Carvalho de Melo <acme@redhat.com>
8 commit fb24e308b6310541e70d11a3f19dc40742974b95 upstream.
10 To bring in the change made in this cset:
12 5e21a3ecad1500e3 ("x86/alternative: Merge include files")
14 This just silences these perf tools build warnings, no change in the tools:
16 Warning: Kernel ABI header at 'tools/arch/x86/lib/memcpy_64.S' differs from latest version at 'arch/x86/lib/memcpy_64.S'
17 diff -u tools/arch/x86/lib/memcpy_64.S arch/x86/lib/memcpy_64.S
18 Warning: Kernel ABI header at 'tools/arch/x86/lib/memset_64.S' differs from latest version at 'arch/x86/lib/memset_64.S'
19 diff -u tools/arch/x86/lib/memset_64.S arch/x86/lib/memset_64.S
21 Cc: Borislav Petkov <bp@suse.de>
22 Cc: Juergen Gross <jgross@suse.com>
23 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
24 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26 tools/arch/x86/lib/memcpy_64.S | 2 +-
27 tools/arch/x86/lib/memset_64.S | 2 +-
28 tools/include/asm/{alternative-asm.h => alternative.h} | 0
29 tools/arch/x86/lib/memcpy_64.S | 2 +-
30 tools/arch/x86/lib/memset_64.S | 2 +-
31 tools/include/asm/alternative-asm.h | 10 ----------
32 tools/include/asm/alternative.h | 10 ++++++++++
33 4 files changed, 12 insertions(+), 12 deletions(-)
34 rename tools/include/asm/{alternative-asm.h => alternative.h} (100%)
36 --- a/tools/arch/x86/lib/memcpy_64.S
37 +++ b/tools/arch/x86/lib/memcpy_64.S
39 #include <linux/linkage.h>
40 #include <asm/errno.h>
41 #include <asm/cpufeatures.h>
42 -#include <asm/alternative-asm.h>
43 +#include <asm/alternative.h>
44 #include <asm/export.h>
46 .pushsection .noinstr.text, "ax"
47 --- a/tools/arch/x86/lib/memset_64.S
48 +++ b/tools/arch/x86/lib/memset_64.S
51 #include <linux/linkage.h>
52 #include <asm/cpufeatures.h>
53 -#include <asm/alternative-asm.h>
54 +#include <asm/alternative.h>
55 #include <asm/export.h>
58 --- a/tools/include/asm/alternative-asm.h
61 -/* SPDX-License-Identifier: GPL-2.0 */
62 -#ifndef _TOOLS_ASM_ALTERNATIVE_ASM_H
63 -#define _TOOLS_ASM_ALTERNATIVE_ASM_H
65 -/* Just disable it so we can build arch/x86/lib/memcpy_64.S for perf bench: */
67 -#define altinstruction_entry #
68 -#define ALTERNATIVE_2 #
72 +++ b/tools/include/asm/alternative.h
74 +/* SPDX-License-Identifier: GPL-2.0 */
75 +#ifndef _TOOLS_ASM_ALTERNATIVE_ASM_H
76 +#define _TOOLS_ASM_ALTERNATIVE_ASM_H
78 +/* Just disable it so we can build arch/x86/lib/memcpy_64.S for perf bench: */
80 +#define altinstruction_entry #
81 +#define ALTERNATIVE_2 #