From b828a4f271836d36a1e5c59ac87b60b812f35efd Mon Sep 17 00:00:00 2001 From: Alok Makhariya Date: Thu, 13 Nov 2014 16:15:03 +0530 Subject: 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 Change-Id: I8cf0b83ab53a6dd544de81cf17ad0441ebb08ce5 Reviewed-on: http://git.am.freescale.net:8181/23694 Tested-by: Review Code-CDREVIEW Reviewed-by: Horia Ioan Geanta Neag Reviewed-by: Richard Schmitt 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; -- cgit v0.10.2