* [PATCH] mm/kasan: remove unnecessary CONFIG_KASAN option
@ 2022-02-21 6:54 tangmeng
2022-02-21 8:55 ` Marco Elver
0 siblings, 1 reply; 2+ messages in thread
From: tangmeng @ 2022-02-21 6:54 UTC (permalink / raw)
To: ryabinin.a.a, glider, andreyknvl, dvyukov, akpm
Cc: linux-kernel, linux-mm, kasan-dev, tangmeng
In mm/Makefile has:
obj-$(CONFIG_KASAN) += kasan/
So that we don't need 'obj-$(CONFIG_KASAN) :=' in mm/kasan/Makefile,
delete it from mm/kasan/Makefile.
Signed-off-by: tangmeng <tangmeng@uniontech.com>
---
mm/kasan/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/kasan/Makefile b/mm/kasan/Makefile
index adcd9acaef61..1f84df9c302e 100644
--- a/mm/kasan/Makefile
+++ b/mm/kasan/Makefile
@@ -35,7 +35,7 @@ CFLAGS_shadow.o := $(CC_FLAGS_KASAN_RUNTIME)
CFLAGS_hw_tags.o := $(CC_FLAGS_KASAN_RUNTIME)
CFLAGS_sw_tags.o := $(CC_FLAGS_KASAN_RUNTIME)
-obj-$(CONFIG_KASAN) := common.o report.o
+obj-y := common.o report.o
obj-$(CONFIG_KASAN_GENERIC) += init.o generic.o report_generic.o shadow.o quarantine.o
obj-$(CONFIG_KASAN_HW_TAGS) += hw_tags.o report_hw_tags.o tags.o report_tags.o
obj-$(CONFIG_KASAN_SW_TAGS) += init.o report_sw_tags.o shadow.o sw_tags.o tags.o report_tags.o
--
2.20.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm/kasan: remove unnecessary CONFIG_KASAN option
2022-02-21 6:54 [PATCH] mm/kasan: remove unnecessary CONFIG_KASAN option tangmeng
@ 2022-02-21 8:55 ` Marco Elver
0 siblings, 0 replies; 2+ messages in thread
From: Marco Elver @ 2022-02-21 8:55 UTC (permalink / raw)
To: tangmeng
Cc: ryabinin.a.a, glider, andreyknvl, dvyukov, akpm, linux-kernel,
linux-mm, kasan-dev
On Mon, 21 Feb 2022 at 07:54, tangmeng <tangmeng@uniontech.com> wrote:
>
> In mm/Makefile has:
> obj-$(CONFIG_KASAN) += kasan/
>
> So that we don't need 'obj-$(CONFIG_KASAN) :=' in mm/kasan/Makefile,
> delete it from mm/kasan/Makefile.
>
> Signed-off-by: tangmeng <tangmeng@uniontech.com>
Looks reasonable, thanks.
Reviewed-by: Marco Elver <elver@google.com>
> ---
> mm/kasan/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/kasan/Makefile b/mm/kasan/Makefile
> index adcd9acaef61..1f84df9c302e 100644
> --- a/mm/kasan/Makefile
> +++ b/mm/kasan/Makefile
> @@ -35,7 +35,7 @@ CFLAGS_shadow.o := $(CC_FLAGS_KASAN_RUNTIME)
> CFLAGS_hw_tags.o := $(CC_FLAGS_KASAN_RUNTIME)
> CFLAGS_sw_tags.o := $(CC_FLAGS_KASAN_RUNTIME)
>
> -obj-$(CONFIG_KASAN) := common.o report.o
> +obj-y := common.o report.o
> obj-$(CONFIG_KASAN_GENERIC) += init.o generic.o report_generic.o shadow.o quarantine.o
> obj-$(CONFIG_KASAN_HW_TAGS) += hw_tags.o report_hw_tags.o tags.o report_tags.o
> obj-$(CONFIG_KASAN_SW_TAGS) += init.o report_sw_tags.o shadow.o sw_tags.o tags.o report_tags.o
> --
> 2.20.1
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "kasan-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to kasan-dev+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/kasan-dev/20220221065421.20689-1-tangmeng%40uniontech.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-21 8:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-21 6:54 [PATCH] mm/kasan: remove unnecessary CONFIG_KASAN option tangmeng
2022-02-21 8:55 ` Marco Elver
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox