linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fixup! fix missing vmalloc.h includes
       [not found] <20240403211240.GA307137@dev-arch.thelio-3990>
@ 2024-04-04  3:47 ` Kent Overstreet
  0 siblings, 0 replies; 2+ messages in thread
From: Kent Overstreet @ 2024-04-04  3:47 UTC (permalink / raw)
  Cc: Kent Overstreet, Andrew Morton, linux-mm, linux-kernel

Few places were depending on sizes.h (convenience human-readable-units
size macros) iplicitly; fix

Link: https://lkml.kernel.org/r/20240327002152.3339937-1-kent.overstreet@linux.dev
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Cc: linux-kernel@vger.krenel.org
---
 include/asm-generic/io.h | 1 +
 include/linux/io.h       | 1 +
 2 files changed, 2 insertions(+)

diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h
index c27313414a82..80de699bf6af 100644
--- a/include/asm-generic/io.h
+++ b/include/asm-generic/io.h
@@ -9,6 +9,7 @@
 
 #include <asm/page.h> /* I/O is all done through memory accesses */
 #include <linux/string.h> /* for memset() and memcpy() */
+#include <linux/sizes.h>
 #include <linux/types.h>
 #include <linux/instruction_pointer.h>
 
diff --git a/include/linux/io.h b/include/linux/io.h
index 235ba7d80a8f..e8ee40ee1843 100644
--- a/include/linux/io.h
+++ b/include/linux/io.h
@@ -6,6 +6,7 @@
 #ifndef _LINUX_IO_H
 #define _LINUX_IO_H
 
+#include <linux/sizes.h>
 #include <linux/types.h>
 #include <linux/init.h>
 #include <linux/bug.h>
-- 
2.43.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] fixup! fix missing vmalloc.h includes
@ 2024-03-27  0:21 Kent Overstreet
  0 siblings, 0 replies; 2+ messages in thread
From: Kent Overstreet @ 2024-03-27  0:21 UTC (permalink / raw)
  To: akpm; +Cc: Suren Baghdasaryan, linux-kernel, linux-mm, Kent Overstreet

The previous patch added string.h to arch/alpha/lib/memcpy.c to fix a
warning about a missing forward declaration - but this breaks with -
presumably - some fortify source shenanigans that redefine memcpy as a
macro.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
---
 arch/alpha/lib/memcpy.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/alpha/lib/memcpy.c b/arch/alpha/lib/memcpy.c
index 0e536a1a39ff..cbac3dc6d963 100644
--- a/arch/alpha/lib/memcpy.c
+++ b/arch/alpha/lib/memcpy.c
@@ -18,7 +18,6 @@
 
 #include <linux/types.h>
 #include <linux/export.h>
-#include <linux/string.h>
 
 /*
  * This should be done in one go with ldq_u*2/mask/stq_u. Do it
-- 
2.43.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-04  3:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20240403211240.GA307137@dev-arch.thelio-3990>
2024-04-04  3:47 ` [PATCH] fixup! fix missing vmalloc.h includes Kent Overstreet
2024-03-27  0:21 Kent Overstreet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox