summaryrefslogtreecommitdiffstats
path: root/src/image
diff options
context:
space:
mode:
authorMichael Brown2025-04-30 16:18:34 +0200
committerMichael Brown2025-04-30 16:32:03 +0200
commitb6f9e4bab082c3b7a9b587ef64109069fba59baa (patch)
treeb125fc073dcd1b8ea0dc37a16f8a62b01acf86aa /src/image
parent[image] Clear recorded replacement image immediately after consuming (diff)
downloadipxe-b6f9e4bab082c3b7a9b587ef64109069fba59baa.tar.gz
ipxe-b6f9e4bab082c3b7a9b587ef64109069fba59baa.tar.xz
ipxe-b6f9e4bab082c3b7a9b587ef64109069fba59baa.zip
[uaccess] Remove redundant copy_from_user() and copy_to_user()
Remove the now-redundant copy_from_user() and copy_to_user() wrapper functions. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/image')
-rw-r--r--src/image/der.c1
-rw-r--r--src/image/efi_image.c1
-rw-r--r--src/image/efi_siglist.c1
-rw-r--r--src/image/elf.c1
-rw-r--r--src/image/pnm.c1
-rw-r--r--src/image/segment.c1
6 files changed, 6 insertions, 0 deletions
diff --git a/src/image/der.c b/src/image/der.c
index 600e163c9..67117d43b 100644
--- a/src/image/der.c
+++ b/src/image/der.c
@@ -24,6 +24,7 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <assert.h>
#include <ipxe/asn1.h>
diff --git a/src/image/efi_image.c b/src/image/efi_image.c
index f71630f4a..f7ee7ff50 100644
--- a/src/image/efi_image.c
+++ b/src/image/efi_image.c
@@ -21,6 +21,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <errno.h>
#include <stdlib.h>
+#include <string.h>
#include <wchar.h>
#include <ipxe/efi/efi.h>
#include <ipxe/efi/efi_snp.h>
diff --git a/src/image/efi_siglist.c b/src/image/efi_siglist.c
index 2bd273dbd..b264ac558 100644
--- a/src/image/efi_siglist.c
+++ b/src/image/efi_siglist.c
@@ -30,6 +30,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
*/
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <ipxe/asn1.h>
#include <ipxe/der.h>
diff --git a/src/image/elf.c b/src/image/elf.c
index 83712c3b0..97e07f37f 100644
--- a/src/image/elf.c
+++ b/src/image/elf.c
@@ -33,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
* common ELF-related functionality.
*/
+#include <string.h>
#include <errno.h>
#include <elf.h>
#include <ipxe/segment.h>
diff --git a/src/image/pnm.c b/src/image/pnm.c
index 4b5020b64..489a43304 100644
--- a/src/image/pnm.c
+++ b/src/image/pnm.c
@@ -30,6 +30,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
*/
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <ipxe/image.h>
diff --git a/src/image/segment.c b/src/image/segment.c
index 2cb637dc2..52272170a 100644
--- a/src/image/segment.c
+++ b/src/image/segment.c
@@ -30,6 +30,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
*
*/
+#include <string.h>
#include <errno.h>
#include <ipxe/uaccess.h>
#include <ipxe/io.h>