diff mbox

[35/47] IB/opa: Fix endianness annotation of opa_is_extended_lid()

Message ID 20171006213333.6721-36-bart.vanassche@wdc.com (mailing list archive)
State Superseded
Headers show

Commit Message

Bart Van Assche Oct. 6, 2017, 9:33 p.m. UTC
This patch does not change any functionality.

Fixes: commit e92aa00a5189 ("IB/CM: Add OPA Path record support to CM")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Dennis Dalessandro <dennis.dalessandro@intel.com>
Cc: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
---
 include/rdma/opa_addr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dennis Dalessandro Oct. 11, 2017, 1:59 p.m. UTC | #1
On 10/6/2017 5:33 PM, Bart Van Assche wrote:
> This patch does not change any functionality.
> 
> Fixes: commit e92aa00a5189 ("IB/CM: Add OPA Path record support to CM")
> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
> Cc: Dennis Dalessandro <dennis.dalessandro@intel.com>
> Cc: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
> ---
>   include/rdma/opa_addr.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/rdma/opa_addr.h b/include/rdma/opa_addr.h
> index e6e90f18e6d5..72995a39cb97 100644
> --- a/include/rdma/opa_addr.h
> +++ b/include/rdma/opa_addr.h
> @@ -97,7 +97,7 @@ static inline u32 opa_get_lid_from_gid(const union ib_gid *gid)
>    * @dlid: The DLID
>    * @slid: The SLID
>    */
> -static inline bool opa_is_extended_lid(u32 dlid, u32 slid)
> +static inline bool opa_is_extended_lid(__be32 dlid, __be32 slid)
>   {
>   	if ((be32_to_cpu(dlid) >=
>   	     be16_to_cpu(IB_MULTICAST_LID_BASE)) ||
> 

Doug already has taken a patch for this, it is in his for-next branch:

a917374e8a20 ("IB/core: Use __be32 for LIDs in opa_is_extended_lid").

-Denny
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/rdma/opa_addr.h b/include/rdma/opa_addr.h
index e6e90f18e6d5..72995a39cb97 100644
--- a/include/rdma/opa_addr.h
+++ b/include/rdma/opa_addr.h
@@ -97,7 +97,7 @@  static inline u32 opa_get_lid_from_gid(const union ib_gid *gid)
  * @dlid: The DLID
  * @slid: The SLID
  */
-static inline bool opa_is_extended_lid(u32 dlid, u32 slid)
+static inline bool opa_is_extended_lid(__be32 dlid, __be32 slid)
 {
 	if ((be32_to_cpu(dlid) >=
 	     be16_to_cpu(IB_MULTICAST_LID_BASE)) ||