mirror of
https://github.com/raspberrypi/userland.git
synced 2025-12-06 04:49:12 +00:00
interface: Remove some compiler warnings
This commit is contained in:
@@ -151,6 +151,9 @@ typedef struct service_info_tag {
|
||||
void *vll_handle; /* VLL handle; NULL when unloaded or a "static VLL" in build */
|
||||
} SERVICE_INFO_T;
|
||||
|
||||
// Pagelist structure for copy callback
|
||||
struct pagelist_struct;
|
||||
|
||||
/******************************************************************************
|
||||
Global funcs - implementation is specific to which side you are on (local / remote)
|
||||
*****************************************************************************/
|
||||
@@ -342,7 +345,7 @@ int32_t vchi_bulk_queue_receive_reloc_func( const VCHI_SERVICE_HANDLE_T handle,
|
||||
uint32_t data_size,
|
||||
const VCHI_FLAGS_T flags,
|
||||
void * const bulk_handle,
|
||||
int (*copy_pagelist)() );
|
||||
int copy_pagelist(char *vcptr, const struct pagelist_struct *pagelist));
|
||||
|
||||
// Routine to queue up data ready for transfer to the other (once they have signalled they are ready)
|
||||
extern int32_t vchi_bulk_queue_transmit( VCHI_SERVICE_HANDLE_T handle,
|
||||
|
||||
@@ -133,7 +133,7 @@ typedef struct vchiq_config_struct {
|
||||
|
||||
typedef struct vchiq_instance_struct *VCHIQ_INSTANCE_T;
|
||||
typedef void (*VCHIQ_REMOTE_USE_CALLBACK_T)(void* cb_arg);
|
||||
|
||||
struct pagelist_struct;
|
||||
|
||||
extern VCHIQ_STATUS_T vchiq_initialise(VCHIQ_INSTANCE_T *pinstance);
|
||||
extern VCHIQ_STATUS_T vchiq_initialise_fd(VCHIQ_INSTANCE_T *pinstance, int dev_vchiq_fd);
|
||||
@@ -173,7 +173,8 @@ extern VCHIQ_STATUS_T vchiq_bulk_transmit_handle(VCHIQ_SERVICE_HANDLE_T service,
|
||||
VCHIQ_BULK_MODE_T mode);
|
||||
extern VCHIQ_STATUS_T vchiq_bulk_receive_handle(VCHIQ_SERVICE_HANDLE_T service,
|
||||
VCHI_MEM_HANDLE_T handle, void *offset, int size, void *userdata,
|
||||
VCHIQ_BULK_MODE_T mode, int (*copy_pagelist)());
|
||||
VCHIQ_BULK_MODE_T mode,
|
||||
int copy_pagelist(char *vcptr, const struct pagelist_struct *pagelist));
|
||||
extern int vchiq_get_client_id(VCHIQ_SERVICE_HANDLE_T service);
|
||||
extern void *vchiq_get_service_userdata(VCHIQ_SERVICE_HANDLE_T service);
|
||||
extern int vchiq_get_service_fourcc(VCHIQ_SERVICE_HANDLE_T service);
|
||||
|
||||
@@ -68,6 +68,12 @@ void * vcos_malloc_aligned(VCOS_UNSIGNED size, VCOS_UNSIGNED align, const char *
|
||||
return vcos_generic_mem_alloc_aligned(size, align, description);
|
||||
}
|
||||
|
||||
/* Returns invalid result, do not use */
|
||||
|
||||
VCOS_INLINE_IMPL
|
||||
unsigned long VCOS_DEPRECATED("returns invalid result") vcos_get_free_mem(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* VCOS_INLINE_BODIES */
|
||||
|
||||
|
||||
@@ -769,17 +769,6 @@ void vcos_atomic_flags_delete(VCOS_ATOMIC_FLAGS_T *atomic_flags)
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(linux) || defined(_HAVE_SBRK)
|
||||
|
||||
/* Returns invalid result, do not use */
|
||||
|
||||
VCOS_INLINE_IMPL
|
||||
unsigned long VCOS_DEPRECATED("returns invalid result") vcos_get_free_mem(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef VCOS_PTHREADS_WANT_HISR_EMULATION
|
||||
VCOS_STATUS_T vcos_legacy_hisr_create(VCOS_HISR_T *hisr, const char *name,
|
||||
void (*entry)(void),
|
||||
|
||||
@@ -94,7 +94,6 @@ RETURNS
|
||||
int32_t vc_gpuserv_init( void )
|
||||
{
|
||||
VCHIQ_SERVICE_PARAMS_T vchiq_params;
|
||||
VCOS_STATUS_T status = VCOS_ENXIO;
|
||||
VCHIQ_STATUS_T vchiq_status;
|
||||
|
||||
vcos_once(&gpuserv_client_once, init_once);
|
||||
@@ -195,10 +194,6 @@ static VCHIQ_STATUS_T gpuserv_callback( VCHIQ_REASON_T reason,
|
||||
VCHIQ_SERVICE_HANDLE_T service,
|
||||
void *bulk_userdata )
|
||||
{
|
||||
GPUSERV_SERVICE_T *instance = (GPUSERV_SERVICE_T *)bulk_userdata;
|
||||
|
||||
(void)header;
|
||||
|
||||
// reason is one of VCHIQ_MESSAGE_AVAILABLE, VCHIQ_BULK_TRANSMIT_DONE, VCHIQ_BULK_RECEIVE_DONE
|
||||
switch (reason)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user