Build kdebug_secreplay() function only when IPSEC_DEBUG is defined.
This should fix the build on sparc. Reported by: emaste X-MFC with: r319118
This commit is contained in:
parent
328c75d621
commit
8e5060a03e
@ -77,10 +77,6 @@ static void kdebug_sadb_x_sa2(struct sadb_ext *);
|
||||
static void kdebug_sadb_x_sa_replay(struct sadb_ext *);
|
||||
static void kdebug_sadb_x_natt(struct sadb_ext *);
|
||||
|
||||
#ifdef _KERNEL
|
||||
static void kdebug_secreplay(struct secreplay *);
|
||||
#endif
|
||||
|
||||
#ifndef _KERNEL
|
||||
#define panic(fmt, ...) { printf(fmt, ## __VA_ARGS__); exit(-1); }
|
||||
#endif
|
||||
@ -724,6 +720,7 @@ kdebug_secash(struct secashead *sah, const char *indent)
|
||||
printf("}\n");
|
||||
}
|
||||
|
||||
#ifdef IPSEC_DEBUG
|
||||
static void
|
||||
kdebug_secreplay(struct secreplay *rpl)
|
||||
{
|
||||
@ -745,6 +742,7 @@ kdebug_secreplay(struct secreplay *rpl)
|
||||
}
|
||||
printf(" }\n");
|
||||
}
|
||||
#endif /* IPSEC_DEBUG */
|
||||
|
||||
static void
|
||||
kdebug_secnatt(struct secnatt *natt)
|
||||
|
Loading…
Reference in New Issue
Block a user