Merge ena-com 1.1.4.2
Update ENA HAL after fixing gcc build in r321861. Submitted by: rlibby Reviewed by: cognet (mentor) Approved by: cognet (mentor) Differential Revision: https://reviews.freebsd.org/D11480
This commit is contained in:
parent
d4ed36cde2
commit
7579dce2c6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=321864
@ -139,21 +139,12 @@ extern struct ena_bus_space ebs;
|
||||
#define MAX_ERRNO 4095
|
||||
#define IS_ERR_VALUE(x) unlikely((x) <= (unsigned long)MAX_ERRNO)
|
||||
|
||||
#define WARN_ON(condition) \
|
||||
do { \
|
||||
int __ret_warn_on = !!(condition); \
|
||||
if (unlikely(__ret_warn_on)) \
|
||||
printf("%s %s", __FUNCTION__, __FILE__); \
|
||||
unlikely(__ret_warn_on); \
|
||||
} while (0)
|
||||
|
||||
#define ENA_ASSERT(cond, format, arg...) \
|
||||
do { \
|
||||
if (unlikely(!(cond))) { \
|
||||
ena_trc_err( \
|
||||
"Assert failed on %s:%s:%d:" format, \
|
||||
__FILE__, __func__, __LINE__, ##arg); \
|
||||
WARN_ON(cond); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user