Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kmsan: remove an x86-specific #include from kmsan.h

Replace the x86-specific asm/pgtable_64_types.h #include with the
linux/pgtable.h one, which all architectures have.

While at it, sort the headers alphabetically for the sake of consistency
with other KMSAN code.

Link: https://lkml.kernel.org/r/20240621113706.315500-9-iii@linux.ibm.com
Fixes: f80be4571b19 ("kmsan: add KMSAN runtime core")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Suggested-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: <kasan-dev@googlegroups.com>
Cc: Marco Elver <elver@google.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Steven Rostedt (Google) <rostedt@goodmis.org>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Ilya Leoshkevich and committed by
Andrew Morton
61849c89 e54024f0

+4 -4
+4 -4
mm/kmsan/kmsan.h
··· 10 10 #ifndef __MM_KMSAN_KMSAN_H 11 11 #define __MM_KMSAN_KMSAN_H 12 12 13 - #include <asm/pgtable_64_types.h> 14 13 #include <linux/irqflags.h> 14 + #include <linux/mm.h> 15 + #include <linux/nmi.h> 16 + #include <linux/pgtable.h> 17 + #include <linux/printk.h> 15 18 #include <linux/sched.h> 16 19 #include <linux/stackdepot.h> 17 20 #include <linux/stacktrace.h> 18 - #include <linux/nmi.h> 19 - #include <linux/mm.h> 20 - #include <linux/printk.h> 21 21 22 22 #define KMSAN_ALLOCA_MAGIC_ORIGIN 0xabcd0100 23 23 #define KMSAN_CHAIN_MAGIC_ORIGIN 0xabcd0200