[uaccess] Remove trivial uses of userptr_t

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-04-24 01:30:50 +01:00
parent 945df9b429
commit e8ffe2cd64
34 changed files with 69 additions and 86 deletions

View File

@@ -10,7 +10,6 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stddef.h>
#include <ipxe/uaccess.h>
struct net_device;
struct cached_dhcp_packet;
@@ -20,7 +19,7 @@ extern struct cached_dhcp_packet cached_proxydhcp;
extern struct cached_dhcp_packet cached_pxebs;
extern int cachedhcp_record ( struct cached_dhcp_packet *cache,
unsigned int vlan, userptr_t data,
unsigned int vlan, const void *data,
size_t max_len );
extern void cachedhcp_recycle ( struct net_device *netdev );

View File

@@ -9,8 +9,6 @@
FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/uaccess.h>
extern int linux_sysfs_read ( const char *filename, userptr_t *data );
extern int linux_sysfs_read ( const char *filename, void **data );
#endif /* _IPXE_LINUX_SYSFS_H */

View File

@@ -10,8 +10,7 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdint.h>
#include <ipxe/uaccess.h>
extern size_t largest_memblock ( userptr_t *start );
extern size_t largest_memblock ( void **start );
#endif /* _IPXE_MEMBLOCK_H */

View File

@@ -10,8 +10,8 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <ipxe/uaccess.h>
#include <stdint.h>
extern int prep_segment ( userptr_t segment, size_t filesz, size_t memsz );
extern int prep_segment ( void *segment, size_t filesz, size_t memsz );
#endif /* _IPXE_SEGMENT_H */

View File

@@ -13,7 +13,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <ipxe/uuid.h>
#include <ipxe/device.h>
#include <ipxe/tables.h>
#include <ipxe/uaccess.h>
#include <ipxe/iobuf.h>
#include <ipxe/hyperv.h>
@@ -634,7 +633,7 @@ vmbus_gpadl_is_obsolete ( unsigned int gpadl ) {
return ( gpadl <= vmbus_obsolete_gpadl );
}
extern int vmbus_establish_gpadl ( struct vmbus_device *vmdev, userptr_t data,
extern int vmbus_establish_gpadl ( struct vmbus_device *vmdev, void *data,
size_t len );
extern int vmbus_gpadl_teardown ( struct vmbus_device *vmdev,
unsigned int gpadl );