staging: vchiq_core: get rid of typedef
Subsystems (2)
PATCH 1/1 staging: vchiq_core: get rid of typedef
Get rid of typedef and use proper kernel type instead.
Signed-off-by Gaston Gonzalez <[email protected]>
--- .../staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 6 +++--- .../staging/vc04_services/interface/vchiq_arm/vchiq_core.h | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-)
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +3 -3
@@ -711,7 +711,7 @@ reserve_space(struct vchiq_state *state, size_t space, int is_blocking) }static void -process_free_data_message (struct vchiq_state *state,BITSET_T *service_found, +process_free_data_message (struct vchiq_state *state,u32 *service_found,struct vchiq_header *header) {int msgid = header->msgid;
@@ -767,7 +767,7 @@ process_free_data_message(struct vchiq_state *state, BITSET_T *service_found,/* Called by the recycle thread. */ static void -process_free_queue (struct vchiq_state *state,BITSET_T *service_found, +process_free_queue (struct vchiq_state *state,u32 *service_found,size_t length) {struct vchiq_shared_state *local = state->local;
@@ -1981,7 +1981,7 @@ recycle_func(void *v) {struct vchiq_state *state = v;struct vchiq_shared_state *local = state->local; -BITSET_T *found; +u32 *found;size_t length; length =sizeof (*found) *BITSET_SIZE (VCHIQ_MAX_SERVICES );
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h +1 -3
@@ -74,9 +74,7 @@ ((fourcc) >>8 ) &0xff , \ (fourcc) & 0xff -typedef u32 BITSET_T ; - -static_assert ((sizeof (BITSET_T ) *8 ) ==32 ); +static_assert ((sizeof (u32) *8 ) ==32 );#define BITSET_SIZE (b) ((b + 31) >> 5)#define BITSET_WORD (b) (b >> 5)
Signature · 1 line
2.33.1
Greg KH
maintainerQuoted 1 line · Gaston Gonzalez
Get rid of typedef and use proper kernel type instead.
which typedef? Please be specific.
thanks,
greg k-h