summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlok Makhariya <B46187@freescale.com>2014-11-13 10:45:03 (GMT)
committerMatthew Weigel <Matthew.Weigel@freescale.com>2014-12-11 18:40:42 (GMT)
commitb828a4f271836d36a1e5c59ac87b60b812f35efd (patch)
treef4de6022b850c7cd342395671d0cd430ddc04d96
parent731a7f815cc8d300d51b96eeacc058295dc61402 (diff)
downloadlinux-fsl-qoriq-b828a4f271836d36a1e5c59ac87b60b812f35efd.tar.xz
pdb: Patch to replace flag CPU_BIG_ENDIAN with __BIG_ENDIAN
Flag CPU_BIG_ENDIAN is not defined in powerpc config file so it is replace with __BIG_ENDIAN flag. Signed-off-by: Alok Makhariya <B46187@freescale.com> Change-Id: I8cf0b83ab53a6dd544de81cf17ad0441ebb08ce5 Reviewed-on: http://git.am.freescale.net:8181/23694 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Horia Ioan Geanta Neag <horia.geanta@freescale.com> Reviewed-by: Richard Schmitt <richard.schmitt@freescale.com>
-rw-r--r--drivers/crypto/caam/pdb.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/crypto/caam/pdb.h b/drivers/crypto/caam/pdb.h
index 7087be0..b794e2b 100644
--- a/drivers/crypto/caam/pdb.h
+++ b/drivers/crypto/caam/pdb.h
@@ -66,7 +66,7 @@ struct ipsec_encap_ctr {
struct ipsec_encap_ccm {
u32 salt; /* lower 24 bits */
-#ifdef CONFIG_CPU_BIG_ENDIAN
+#ifdef __BIG_ENDIAN
u8 b0_flags;
u8 ctr_flags;
u16 ctr_initial;
@@ -85,7 +85,7 @@ struct ipsec_encap_gcm {
};
struct ipsec_encap_pdb {
-#ifdef CONFIG_CPU_BIG_ENDIAN
+#ifdef __BIG_ENDIAN
u8 hmo_rsvd;
u8 ip_nh;
u8 ip_nh_offset;
@@ -105,7 +105,7 @@ struct ipsec_encap_pdb {
struct ipsec_encap_gcm gcm;
};
u32 spi;
-#ifdef CONFIG_CPU_BIG_ENDIAN
+#ifdef __BIG_ENDIAN
u16 rsvd1;
u16 ip_hdr_len;
#else
@@ -126,7 +126,7 @@ struct ipsec_decap_ctr {
struct ipsec_decap_ccm {
u32 salt;
-#ifdef CONFIG_CPU_BIG_ENDIAN
+#ifdef __BIG_ENDIAN
u8 iv_flags;
u8 ctr_flags;
u16 ctr_initial;
@@ -143,7 +143,7 @@ struct ipsec_decap_gcm {
};
struct ipsec_decap_pdb {
-#ifdef CONFIG_CPU_BIG_ENDIAN
+#ifdef __BIG_ENDIAN
u16 hmo_ip_hdr_len;
u8 ip_nh_offset;
u8 options;