Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 8d7271be authored by neoyu's avatar neoyu Committed by Michael Bestas
Browse files

msm: cleanup: union gsi_wdi2_channel_scratch2_reg



Remove __packed from the usage of union gsi_wdi2_channel_scratch2_reg
__packed is only needed in the union definition.

include/linux/msm_gsi.h:
union __packed gsi_wdi2_channel_scratch2_reg {
    ...
}

Bug: 140528058
Test: build pass
Change-Id: Ie3a6ebbe26af09d845f4a3f3f756b381a8e47a21
Signed-off-by: default avatarneoyu <neoyu@google.com>
parent bbba44bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2598,7 +2598,7 @@ int gsi_write_channel_scratch3_reg(unsigned long chan_hdl,
EXPORT_SYMBOL(gsi_write_channel_scratch3_reg);

int gsi_write_channel_scratch2_reg(unsigned long chan_hdl,
		union __packed gsi_wdi2_channel_scratch2_reg val)
		union gsi_wdi2_channel_scratch2_reg val)
{
	struct gsi_chan_ctx *ctx;

+1 −1
Original line number Diff line number Diff line
@@ -2873,7 +2873,7 @@ int ipa3_write_qmapid_gsi_wdi_pipe(u32 clnt_hdl, u8 qmap_id)
	int result = 0;
	struct ipa3_ep_context *ep;
	union gsi_wdi_channel_scratch3_reg gsi_scratch3;
	union __packed gsi_wdi2_channel_scratch2_reg gsi_scratch2;
	union gsi_wdi2_channel_scratch2_reg gsi_scratch2;

	ep = &ipa3_ctx->ep[clnt_hdl];
	IPA_ACTIVE_CLIENTS_INC_EP(ipa3_get_client_mapping(clnt_hdl));
+2 −2
Original line number Diff line number Diff line
@@ -1301,7 +1301,7 @@ int gsi_write_channel_scratch3_reg(unsigned long chan_hdl,
 * @Return gsi_status
 */
int gsi_write_channel_scratch2_reg(unsigned long chan_hdl,
		union __packed gsi_wdi2_channel_scratch2_reg val);
		union gsi_wdi2_channel_scratch2_reg val);

/**
 * gsi_read_channel_scratch - Peripheral should call this function to
@@ -1789,7 +1789,7 @@ static inline int gsi_write_channel_scratch3_reg(unsigned long chan_hdl,
}

static inline int gsi_write_channel_scratch2_reg(unsigned long chan_hdl,
		union __packed gsi_wdi2_channel_scratch2_reg val)
		union gsi_wdi2_channel_scratch2_reg val)
{
	return -GSI_STATUS_UNSUPPORTED_OP;
}