diff options
author | Alex Elder <elder@linaro.org> | 2021-02-02 02:26:07 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-02-02 19:48:15 +0300 |
commit | 088f8a2396d813e7ee49272a1a59b55139c81e64 (patch) | |
tree | 758078a53b9cc1e31ac989a4c3729d8df81e01ed /drivers/net/ipa/ipa_endpoint.c | |
parent | e6cdd6d80baedadb96d7060a509f51769e53021d (diff) | |
download | linux-088f8a2396d813e7ee49272a1a59b55139c81e64.tar.xz |
net: ipa: be explicit about endianness
Sparse warns that the assignment of the metadata mask for a QMAP
endpoint in ipa_endpoint_init_hdr_metadata_mask() is a bad
assignment. We know we want the mask value to be big endian, even
though the value we write is in host byte order. Use a __force
tag to indicate we really mean it.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ipa/ipa_endpoint.c')
-rw-r--r-- | drivers/net/ipa/ipa_endpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ipa/ipa_endpoint.c b/drivers/net/ipa/ipa_endpoint.c index 9f4be9812a1f..448d89da1e45 100644 --- a/drivers/net/ipa/ipa_endpoint.c +++ b/drivers/net/ipa/ipa_endpoint.c @@ -588,7 +588,7 @@ static void ipa_endpoint_init_hdr_metadata_mask(struct ipa_endpoint *endpoint) /* Note that HDR_ENDIANNESS indicates big endian header fields */ if (endpoint->data->qmap) - val = cpu_to_be32(IPA_ENDPOINT_QMAP_METADATA_MASK); + val = (__force u32)cpu_to_be32(IPA_ENDPOINT_QMAP_METADATA_MASK); iowrite32(val, endpoint->ipa->reg_virt + offset); } |