svn commit: r326314 - in head/sys: ddb kern sys
Alexey Dokuchaev
danfe at FreeBSD.org
Wed Nov 29 10:06:04 UTC 2017
On Wed, Nov 29, 2017 at 08:52:04PM +1100, Bruce Evans wrote:
> On Wed, 29 Nov 2017, Alexey Dokuchaev wrote:
> ...
> X Index: kern/subr_kdb.c
> X ===================================================================
> X --- kern/subr_kdb.c (revision 326310)
> X +++ kern/subr_kdb.c (working copy)
> X @@ -224,7 +224,7 @@
> X return (0);
> X }
> X
> X -void
> X +static void
> X kdb_panic(const char *msg)
> X {
> X
> X @@ -232,7 +232,7 @@
> X panic("%s", msg);
> X }
> X
> X -void
> X +static void
> X kdb_reboot(void)
> X {
>
> These changes are problematic. They don't compile, since the functions
> are still declared as implicit-extern in <sys/kdb.h>. More seriously,
> if these functions can be static because they are only called from
> kdb_alternate_break_internal(), then all calls to them are broken since
> "alternate" "break"s are broken (more broken than their name). They
> are done from interrupt handlers where it is invalid to call almost any
> function for the "fast" interrupt handler case (serial console drivers)
> and invalid to call most functions in the normal interrupt handler case
> (syscons and vt). [...]
Yes, I was already told that they are part of public KPI and thus cannot
be easily removed. This issue is to be discussed separately.
> The style fixes are correct.
Thanks; I've already got approval from bapt@ for those and intend to
commit them shortly.
./danfe
More information about the svn-src-all
mailing list