summaryrefslogtreecommitdiffstats
path: root/src/net
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/net
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/net')
-rw-r--r--src/net/eapol.c1
-rw-r--r--src/net/fcoe.c1
-rw-r--r--src/net/lldp.c1
-rw-r--r--src/net/peerblk.c1
-rw-r--r--src/net/peermux.c1
-rw-r--r--src/net/tcp/httpblock.c1
-rw-r--r--src/net/tcp/syslogs.c1
-rw-r--r--src/net/udp/syslog.c1
8 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eapol.c b/src/net/eapol.c
index 8b09ca231..0c573d198 100644
--- a/src/net/eapol.c
+++ b/src/net/eapol.c
@@ -23,6 +23,7 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+#include <string.h>
#include <assert.h>
#include <errno.h>
#include <byteswap.h>
diff --git a/src/net/fcoe.c b/src/net/fcoe.c
index 9f3ddf88b..d54f1d431 100644
--- a/src/net/fcoe.c
+++ b/src/net/fcoe.c
@@ -25,6 +25,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stddef.h>
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <byteswap.h>
#include <ipxe/if_ether.h>
diff --git a/src/net/lldp.c b/src/net/lldp.c
index a854d0ace..2b707c874 100644
--- a/src/net/lldp.c
+++ b/src/net/lldp.c
@@ -30,6 +30,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
*/
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <byteswap.h>
#include <ipxe/iobuf.h>
diff --git a/src/net/peerblk.c b/src/net/peerblk.c
index bbd5f16ed..58b185102 100644
--- a/src/net/peerblk.c
+++ b/src/net/peerblk.c
@@ -25,6 +25,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <errno.h>
#include <ipxe/http.h>
#include <ipxe/iobuf.h>
diff --git a/src/net/peermux.c b/src/net/peermux.c
index 431ca76e0..5c814b03e 100644
--- a/src/net/peermux.c
+++ b/src/net/peermux.c
@@ -25,6 +25,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <errno.h>
#include <ipxe/uri.h>
#include <ipxe/xferbuf.h>
diff --git a/src/net/tcp/httpblock.c b/src/net/tcp/httpblock.c
index 156f11e47..8eff1942c 100644
--- a/src/net/tcp/httpblock.c
+++ b/src/net/tcp/httpblock.c
@@ -31,6 +31,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
*/
#include <stdint.h>
+#include <string.h>
#include <ipxe/blocktrans.h>
#include <ipxe/blockdev.h>
#include <ipxe/acpi.h>
diff --git a/src/net/tcp/syslogs.c b/src/net/tcp/syslogs.c
index f1f70d59e..5676f3e3e 100644
--- a/src/net/tcp/syslogs.c
+++ b/src/net/tcp/syslogs.c
@@ -31,6 +31,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdint.h>
#include <stdlib.h>
+#include <string.h>
#include <byteswap.h>
#include <ipxe/xfer.h>
#include <ipxe/open.h>
diff --git a/src/net/udp/syslog.c b/src/net/udp/syslog.c
index a45fc459d..198c86ef7 100644
--- a/src/net/udp/syslog.c
+++ b/src/net/udp/syslog.c
@@ -31,6 +31,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdint.h>
#include <stdlib.h>
+#include <string.h>
#include <ctype.h>
#include <byteswap.h>
#include <ipxe/xfer.h>