Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Automated report: NetBSD-current/i386 build failure

    Date:        Tue, 10 Dec 2019 00:49:43 +0000 (UTC)
    From:        NetBSD Test Fixture <>
    Message-ID:  <>

  | This is an automatically generated notice of a NetBSD-current/i386
  | build failure.

  |     /tmp/bracket/build/2019. error: implicit declaration of function 'mutex_oncpu'; did you mean 'mutex_dump'? [-Werror=implicit-function-declaration]
  |       rv = mutex_oncpu(MUTEX_OWNER(mtx->mtx_owner));
  |            ^~~~~~~~~~~

To answer gcc, obviously not ...

The problem is that mutex_oncpu() is currently only defined with
MULTIPROCESSOR and Xen Dom0 kernels are not MULTIPROCESSOR capable.

Andrew, can you either fix mutex_owner_running() to not use mutex_oncpu()
in the !MULTIPROCESSOR case, or supply a version of mutex_oncpu() that
is appropriate there.

My thinking was something like

static /*inline?*/ bool
mutex_oncpu(uintptr_t owner)
	return MUTEX_OWNED(owner);

inserted just before

in the obvious place, but that is probably much too simple ?


Home | Main Index | Thread Index | Old Index