Typedefing structs is not encouraged in the kernel. Signed-off-by: Dominic Braun <inf.braun@xxxxxx> Signed-off-by: Tobias Büttner <tobias.buettner@xxxxxx> --- .../interface/vchiq_arm/vchiq_core.c | 24 +++++++++---------- .../interface/vchiq_arm/vchiq_core.h | 12 +++++----- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c index d4935b208c78..5071d4e27acc 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -556,7 +556,7 @@ request_poll(VCHIQ_STATE_T *state, struct vchiq_service *service, int poll_type) static struct vchiq_header * reserve_space(VCHIQ_STATE_T *state, size_t space, int is_blocking) { - VCHIQ_SHARED_STATE_T *local = state->local; + struct vchiq_shared_state *local = state->local; int tx_pos = state->local_tx_pos; int slot_space = VCHIQ_SLOT_SIZE - (tx_pos & VCHIQ_SLOT_MASK); @@ -617,7 +617,7 @@ reserve_space(VCHIQ_STATE_T *state, size_t space, int is_blocking) static void process_free_queue(VCHIQ_STATE_T *state, BITSET_T *service_found, size_t length) { - VCHIQ_SHARED_STATE_T *local = state->local; + struct vchiq_shared_state *local = state->local; int slot_queue_available; /* Find slots which have been freed by the other side, and return them @@ -805,7 +805,7 @@ queue_message(VCHIQ_STATE_T *state, struct vchiq_service *service, int msgid, size_t offset, size_t maxsize), void *context, size_t size, int flags) { - VCHIQ_SHARED_STATE_T *local; + struct vchiq_shared_state *local; struct vchiq_service_quota *service_quota = NULL; struct vchiq_header *header; int type = VCHIQ_MSG_TYPE(msgid); @@ -1053,7 +1053,7 @@ queue_message_sync(VCHIQ_STATE_T *state, struct vchiq_service *service, size_t offset, size_t maxsize), void *context, int size, int is_blocking) { - VCHIQ_SHARED_STATE_T *local; + struct vchiq_shared_state *local; struct vchiq_header *header; ssize_t callback_result; @@ -1524,7 +1524,7 @@ parse_open(VCHIQ_STATE_T *state, struct vchiq_header *header) static void parse_rx_slots(VCHIQ_STATE_T *state) { - VCHIQ_SHARED_STATE_T *remote = state->remote; + struct vchiq_shared_state *remote = state->remote; struct vchiq_service *service = NULL; int tx_pos; @@ -1876,7 +1876,7 @@ static int slot_handler_func(void *v) { VCHIQ_STATE_T *state = (VCHIQ_STATE_T *) v; - VCHIQ_SHARED_STATE_T *local = state->local; + struct vchiq_shared_state *local = state->local; DEBUG_INITIALISE(local) @@ -1960,7 +1960,7 @@ static int recycle_func(void *v) { VCHIQ_STATE_T *state = (VCHIQ_STATE_T *) v; - VCHIQ_SHARED_STATE_T *local = state->local; + struct vchiq_shared_state *local = state->local; BITSET_T *found; size_t length; @@ -1984,7 +1984,7 @@ static int sync_func(void *v) { VCHIQ_STATE_T *state = (VCHIQ_STATE_T *) v; - VCHIQ_SHARED_STATE_T *local = state->local; + struct vchiq_shared_state *local = state->local; struct vchiq_header *header = (struct vchiq_header *)SLOT_DATA_FROM_INDEX(state, state->remote->slot_sync); @@ -2146,8 +2146,8 @@ vchiq_init_slots(void *mem_base, int mem_size) VCHIQ_STATUS_T vchiq_init_state(VCHIQ_STATE_T *state, VCHIQ_SLOT_ZERO_T *slot_zero) { - VCHIQ_SHARED_STATE_T *local; - VCHIQ_SHARED_STATE_T *remote; + struct vchiq_shared_state *local; + struct vchiq_shared_state *remote; VCHIQ_STATUS_T status; char threadname[16]; int i; @@ -3218,7 +3218,7 @@ vchiq_release_message(VCHIQ_SERVICE_HANDLE_T handle, struct vchiq_header *header) { struct vchiq_service *service = find_service_by_handle(handle); - VCHIQ_SHARED_STATE_T *remote; + struct vchiq_shared_state *remote; VCHIQ_STATE_T *state; int slot_index; @@ -3361,7 +3361,7 @@ vchiq_set_service_option(VCHIQ_SERVICE_HANDLE_T handle, static void vchiq_dump_shared_state(void *dump_context, VCHIQ_STATE_T *state, - VCHIQ_SHARED_STATE_T *shared, const char *label) + struct vchiq_shared_state *shared, const char *label) { static const char *const debug_names[] = { "<entries>", diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h index be81b40f51d2..95b1bd18809c 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h @@ -341,7 +341,7 @@ struct vchiq_service_quota { int previous_tx_index; }; -typedef struct vchiq_shared_state_struct { +struct vchiq_shared_state { /* A non-zero value here indicates that the content is valid. */ int initialised; @@ -380,7 +380,7 @@ typedef struct vchiq_shared_state_struct { /* Debugging state */ int debug[DEBUG_MAX]; -} VCHIQ_SHARED_STATE_T; +}; typedef struct vchiq_slot_zero_struct { int magic; @@ -391,8 +391,8 @@ typedef struct vchiq_slot_zero_struct { int max_slots; int max_slots_per_side; int platform_data[2]; - VCHIQ_SHARED_STATE_T master; - VCHIQ_SHARED_STATE_T slave; + struct vchiq_shared_state master; + struct vchiq_shared_state slave; VCHIQ_SLOT_INFO_T slots[VCHIQ_MAX_SLOTS]; } VCHIQ_SLOT_ZERO_T; @@ -402,8 +402,8 @@ struct vchiq_state_struct { VCHIQ_CONNSTATE_T conn_state; short version_common; - VCHIQ_SHARED_STATE_T *local; - VCHIQ_SHARED_STATE_T *remote; + struct vchiq_shared_state *local; + struct vchiq_shared_state *remote; VCHIQ_SLOT_T *slot_data; unsigned short default_slot_quota; -- 2.17.1 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel