mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 19:22:47 +00:00
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:
parent
d3034a8493
commit
931243b127
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=278744
@ -39,6 +39,8 @@ $FreeBSD$
|
||||
#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(); \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user