summaryrefslogtreecommitdiff
path: root/drivers/crypto/nx/nx_csbcpb.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2021-06-17 11:00:12 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2021-06-24 09:51:35 +0300
commitb20d9a73a3b2a859d32ae569588557bc47c87a1e (patch)
tree01c74bac18a1245072d7180d0f130176e12de2f4 /drivers/crypto/nx/nx_csbcpb.h
parent2a96726bd0ccde4f12b9b9a9f61f7b1ac5af7e10 (diff)
downloadlinux-b20d9a73a3b2a859d32ae569588557bc47c87a1e.tar.xz
crypto: nx - Fix numerous sparse byte-order warnings
The nx driver started out its life as a BE-only driver. However, somewhere along the way LE support was partially added. This never seems to have been extended all the way but it does trigger numerous warnings during build. This patch fixes all those warnings, but it doesn't mean that the driver will work on LE. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/nx/nx_csbcpb.h')
-rw-r--r--drivers/crypto/nx/nx_csbcpb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/nx/nx_csbcpb.h b/drivers/crypto/nx/nx_csbcpb.h
index 493f8490ff94..e64f7e36fb92 100644
--- a/drivers/crypto/nx/nx_csbcpb.h
+++ b/drivers/crypto/nx/nx_csbcpb.h
@@ -140,8 +140,8 @@ struct cop_status_block {
u8 crb_seq_number;
u8 completion_code;
u8 completion_extension;
- u32 processed_byte_count;
- u64 address;
+ __be32 processed_byte_count;
+ __be64 address;
} __packed;
/* Nest accelerator workbook section 4.4 */