Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a095030 authored by Doug Ledford's avatar Doug Ledford Committed by Roland Dreier
Browse files

IB/mlx4: Fix build error on platforms where UL is not 64 bits



Line 110 uses UL as a compiler cast for the 0x constant, but it's not
large enough to hold a 64-bit value on a 32-bit arch.

Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>

[ Use "-1" instead of "FFFFFFFFFFFFFFFFULL".  - Roland ]

Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent ddffeb8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ static __be64 get_cached_alias_guid(struct mlx4_ib_dev *dev, int port, int index
{
	if (index >= NUM_ALIAS_GUID_PER_PORT) {
		pr_err("%s: ERROR: asked for index:%d\n", __func__, index);
		return  (__force __be64) ((u64) 0xFFFFFFFFFFFFFFFFUL);
		return (__force __be64) -1;
	}
	return *(__be64 *)&dev->sriov.demux[port - 1].guid_cache[index];
}