svn commit: r331369 - head/sys/vm

Bruce Evans brde at optusnet.com.au
Sun Apr 8 05:40:03 UTC 2018


On Sat, 7 Apr 2018, Cy Schubert wrote:

> In message <201803230615.w2N6FTMJ040628 at slippy.cwsent.com>, Cy Schubert
> writes:
>> In message <20180323150709.H968 at besplex.bde.org>, Bruce Evans writes:
>>> On Thu, 22 Mar 2018, Jeff Roberson wrote:
>>>
>>>> On Thu, 22 Mar 2018, Cy Schubert wrote:
>>>>
>>>>> It broke i386 too.
>>>>
>>>> I just did
>>>> TARGET_ARCH=i386 make buildworld
>>>> TARGET_ARCH=i386 make buildkernel
>>>>
>>>> This worked for me?
>>>>>
>>>>> Index: sys/vm/vm_reserv.c
>>>>> ===================================================================
>>>>> --- sys/vm/vm_reserv.c	(revision 331399)
>>>>> +++ sys/vm/vm_reserv.c	(working copy)
>>>>> @@ -45,8 +45,6 @@
>>>>>
>>>>> #include <sys/param.h>
>>>>> #include <sys/kernel.h>
>>>>> -#include <sys/counter.h>
>>>>> -#include <sys/ktr.h>
>>>>> #include <sys/lock.h>
>>>>> #include <sys/malloc.h>
>>>>> #include <sys/mutex.h>
>>>>> @@ -55,6 +53,8 @@
>>>>> #include <sys/sbuf.h>
>>>>> #include <sys/sysctl.h>
>>>>> #include <sys/systm.h>
>>>>> +#include <sys/counter.h>
>>>>> +#include <sys/ktr.h>
>>>>> #include <sys/vmmeter.h>
>>>>> #include <sys/smp.h>
>>>>>
>>>>> This is because sys/i386/include/machine.h uses critical_enter() and
>>>>> critical_exit() which are defined in sys/systm.h.
>>>
>>> Wrong fix.  I see you committed this.  Now there are more bugs to fix.
>>>
>>> <sys/systm.h> is a prerequisite for all kernel headers except
>>> <sys/param.h>, since it defines and declares things like KASSERT() and
> ...
> Can you please give this a once over?
>
> diff --git a/sys/vm/vm_reserv.c b/sys/vm/vm_reserv.c
> index d8869e3bdbe..6d31d79da39 100644
> --- a/sys/vm/vm_reserv.c
> +++ b/sys/vm/vm_reserv.c
> @@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$");
> #include "opt_vm.h"
>
> #include <sys/param.h>
> +#include <sys/systm.h>
> #include <sys/kernel.h>
> #include <sys/lock.h>
> #include <sys/malloc.h>
> @@ -52,7 +53,6 @@ __FBSDID("$FreeBSD$");
> #include <sys/rwlock.h>
> #include <sys/sbuf.h>
> #include <sys/sysctl.h>
> -#include <sys/systm.h>
> #include <sys/counter.h>
> #include <sys/ktr.h>
> #include <sys/vmmeter.h>

It is missing backing out the unsorting of counter.h and ktr.h.

This should be fixed in the same commit, so that it only takes 3 instead
of 4 commits to do the sorting.  Reverting changes in historical order
is too much for small patches, and doesn't work when the intermediate
version is broken.

Bruce


More information about the svn-src-all mailing list