svn commit: r299363 - head/sys/compat/linuxkpi/common/include/asm

Hans Petter Selasky hps at selasky.org
Tue May 10 15:02:53 UTC 2016


On 05/10/16 13:39, Hans Petter Selasky wrote:
> Author: hselasky
> Date: Tue May 10 11:39:36 2016
> New Revision: 299363
> URL: https://svnweb.freebsd.org/changeset/base/299363
>
> Log:
>   Use function macros when possible to avoid stray substitutions.
>
>   MFC after:	1 week
>   Sponsored by:	Mellanox Technologies
>

FYI

This change accidentially broke LINT and I have a patch waiting for 
review from the Chelsio guys that will fix LINT and WITH_OFED=YES again. 
Will hopefully be fixed shortly.

> Index: sys/dev/cxgb/cxgb_osdep.h
> ===================================================================
> --- sys/dev/cxgb/cxgb_osdep.h	(revision 299261)
> +++ sys/dev/cxgb/cxgb_osdep.h	(working copy)
> @@ -169,7 +169,7 @@
>  #define test_and_clear_bit(bit, p) atomic_cmpset_int((p), ((*(p)) | (1<<bit)), ((*(p)) & ~(1<<bit)))
>
>  #define max_t(type, a, b) (type)max((a), (b))
> -#define cpu_to_be32            htobe32
> +#define cpu_to_be32(x)		htobe32(x)
>
>  /* Standard PHY definitions */
>  #define BMCR_LOOPBACK		BMCR_LOOP

--HPS



More information about the svn-src-head mailing list