Hide DDB-specific functions inside check for #ifdef DDB.
Noticed by: des
This commit is contained in:
parent
fea562c089
commit
63ec04adea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153394
@ -7,17 +7,16 @@
|
||||
#include "opt_ddb.h"
|
||||
#ifdef DDB
|
||||
#include <ddb/ddb.h>
|
||||
#else
|
||||
#error "Must have options for KDB, DDB in kernel config"
|
||||
#endif
|
||||
|
||||
#include <support/kdb.h>
|
||||
|
||||
#ifdef DDB
|
||||
DB_SET(xfs, xfs_ddb_cmd, db_cmd_set, CS_MORE, NULL)
|
||||
{
|
||||
db_error("No commands registered.\n");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int
|
||||
kdb_register(char *cmd, kdb_func_t func, char *usage, char *help, short minlen)
|
||||
|
Loading…
Reference in New Issue
Block a user