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

Unverified Commit 4f85193d authored by neoyu's avatar neoyu Committed by Michael Bestas
Browse files

msm: cleanup: union gsi_wdi_channel_scratch3_reg



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

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

Bug: 139442076
Bug: 139808631
Bug: 140528058
Change-Id: I70edc50fbbe4c004309f76c020ac4d77cad91aad
Signed-off-by: default avatarPetri Gynther <pgynther@google.com>
(cherry picked from commit 2871c785dd89dd0926d12a93161fca6e27a6cd2e)
parent 03fbc69f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2567,7 +2567,7 @@ static void __gsi_write_channel_scratch(unsigned long chan_hdl,
}

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

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

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

/**
 * gsi_write_channel_scratch2_reg - Peripheral should call this function to
@@ -1783,7 +1783,7 @@ static inline int gsi_write_channel_scratch(unsigned long chan_hdl,
	return -GSI_STATUS_UNSUPPORTED_OP;
}
static inline int gsi_write_channel_scratch3_reg(unsigned long chan_hdl,
		union __packed gsi_wdi_channel_scratch3_reg val)
		union gsi_wdi_channel_scratch3_reg val)
{
	return -GSI_STATUS_UNSUPPORTED_OP;
}