MFC r278364:

r278364:

  Remove kdb_backtrace extern; get the definition for kdb_backtrace from
  <sys/kdb.h> instead

  Fix whitespace in WARN_ON macro definition

  Reviewed by: np
  Differential Revision: https://reviews.freebsd.org/D1799
  Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
ngie 2015-02-14 06:58:32 +00:00
parent 15f285cc94
commit 8483297749

View File

@ -39,6 +39,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/kdb.h>
#include <dev/mii/mii.h>
#ifndef _CXGB_OSDEP_H_
@ -128,10 +130,8 @@ void prefetch(void *x)
#define smp_mb() mb()
#define L1_CACHE_BYTES 128
extern void kdb_backtrace(void);
#define WARN_ON(condition) do { \
if (__predict_false((condition)!=0)) { \
if (__predict_false((condition)!=0)) { \
log(LOG_WARNING, "BUG: warning at %s:%d/%s()\n", __FILE__, __LINE__, __FUNCTION__); \
kdb_backtrace(); \
} \