lkml.org 
[lkml]   [2020]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH v2 20/37] kasan: rename tags.c to tags_sw.c
From
This is a preparatory commit for the upcoming addition of a new hardware
tag-based (MTE-based) KASAN mode.

Hardware tag-based KASAN will also be using tag-based approach, so rename
tags.c to tags_sw.c and report_tags.c to report_tags_sw.c to avoid
confusion once the new mode is added

Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
---
Change-Id: I922ab246c5903e8ce3dd3766b923aaf250599850
---
mm/kasan/Makefile | 10 +++++-----
mm/kasan/{report_tags.c => report_tags_sw.c} | 0
mm/kasan/{tags.c => tags_sw.c} | 0
3 files changed, 5 insertions(+), 5 deletions(-)
rename mm/kasan/{report_tags.c => report_tags_sw.c} (100%)
rename mm/kasan/{tags.c => tags_sw.c} (100%)

diff --git a/mm/kasan/Makefile b/mm/kasan/Makefile
index b2596512421a..0789f9023884 100644
--- a/mm/kasan/Makefile
+++ b/mm/kasan/Makefile
@@ -10,9 +10,9 @@ CFLAGS_REMOVE_init.o = $(CC_FLAGS_FTRACE)
CFLAGS_REMOVE_quarantine.o = $(CC_FLAGS_FTRACE)
CFLAGS_REMOVE_report.o = $(CC_FLAGS_FTRACE)
CFLAGS_REMOVE_report_generic.o = $(CC_FLAGS_FTRACE)
-CFLAGS_REMOVE_report_tags.o = $(CC_FLAGS_FTRACE)
+CFLAGS_REMOVE_report_tags_sw.o = $(CC_FLAGS_FTRACE)
CFLAGS_REMOVE_shadow.o = $(CC_FLAGS_FTRACE)
-CFLAGS_REMOVE_tags.o = $(CC_FLAGS_FTRACE)
+CFLAGS_REMOVE_tags_sw.o = $(CC_FLAGS_FTRACE)

# Function splitter causes unnecessary splits in __asan_load1/__asan_store1
# see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533
@@ -27,10 +27,10 @@ CFLAGS_init.o := $(CC_FLAGS_KASAN_RUNTIME)
CFLAGS_quarantine.o := $(CC_FLAGS_KASAN_RUNTIME)
CFLAGS_report.o := $(CC_FLAGS_KASAN_RUNTIME)
CFLAGS_report_generic.o := $(CC_FLAGS_KASAN_RUNTIME)
-CFLAGS_report_tags.o := $(CC_FLAGS_KASAN_RUNTIME)
+CFLAGS_report_tags_sw.o := $(CC_FLAGS_KASAN_RUNTIME)
CFLAGS_shadow.o := $(CC_FLAGS_KASAN_RUNTIME)
-CFLAGS_tags.o := $(CC_FLAGS_KASAN_RUNTIME)
+CFLAGS_tags_sw.o := $(CC_FLAGS_KASAN_RUNTIME)

obj-$(CONFIG_KASAN) := common.o report.o
obj-$(CONFIG_KASAN_GENERIC) += init.o generic.o report_generic.o shadow.o quarantine.o
-obj-$(CONFIG_KASAN_SW_TAGS) += init.o report_tags.o shadow.o tags.o
+obj-$(CONFIG_KASAN_SW_TAGS) += init.o report_tags_sw.o shadow.o tags_sw.o
diff --git a/mm/kasan/report_tags.c b/mm/kasan/report_tags_sw.c
similarity index 100%
rename from mm/kasan/report_tags.c
rename to mm/kasan/report_tags_sw.c
diff --git a/mm/kasan/tags.c b/mm/kasan/tags_sw.c
similarity index 100%
rename from mm/kasan/tags.c
rename to mm/kasan/tags_sw.c
--
2.28.0.618.gf4bc123cb7-goog
\
 
 \ /
  Last update: 2020-09-15 23:58    [W:0.292 / U:2.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site