Re: [PATCH rdma-core 09/11] libbnxtre: Add support for atomic operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 28, 2017 at 05:13:40PM -0500, Devesh Sharma wrote:

> +#define upper_32_bits(n)	((__u32)(((n) >> 16) >> 16))

This can be >> 16

> +#define lower_32_bits(n)	((__u32)((n) & 0xFFFFFFFFUL))

Do not define macros as functions. Use static inline instead.

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



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux