Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 2025 20:42:41 +0000
From:      Minsoo Choo <minsoochoo0122@proton.me>
To:        Ian FREISLICH <ianfreislich@gmail.com>
Cc:        FreeBSD Current <current@freebsd.org>
Subject:   Re: nvme.c:2012:2: error: call to undeclared function 'memmove'
Message-ID:  <vSrD5BIXbG60VzaarV7hIxm2KqHRowF2D-OaxFIbpcTc83TOvjibwjvl9o7mEU46ZofIAsmmZqoMyDQy5vzZNr9Ng8mv_hZMiZC33wrSyhE=@proton.me>
In-Reply-To: <60449f55-58e7-4f8b-aa0e-3f288dab5146@gmail.com>
References:  <814ce2bc-2a95-444b-9ab7-7e680a024c68@gmail.com> <M3bbYahqeDlLQCLnCmns8l9CbUCowcNRDFhkazE3oMEkZIQk9PZSJGHipQeEwSERs285Tqez72g5lK0iVmITrxQHnLJiBouXyuKWgK3lUtE=@proton.me> <60449f55-58e7-4f8b-aa0e-3f288dab5146@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Wednesday, November 19th, 2025 at 2:51 PM, Ian FREISLICH <ianfreislich@gmail.com> wrote:

> On 11/19/25 14:24, Minsoo Choo wrote:
> 
> > On Wednesday, November 19th, 2025 at 2:19 PM, Ian FREISLICH ianfreislich@gmail.com wrote:
> > 
> > > My kernel build started failing recently with the following error. I use
> > > a custom kernel config but looking at NOTES, it's not clear that I've
> > > missed an option that would make it compile.
> > > 
> > > In file included from /usr/src/sys/dev/nvme/nvme_util.c:34:
> > > /usr/src/sys/dev/nvme/nvme.h:2012:2: error: call to undeclared function
> > > 'memmove'; ISO C99 and later do not support implicit function
> > > declarations [-Werror,-Wimplicit-function-declaration]
> > > 2012 | memmove(sn, cdata->sn, NVME_SERIAL_NUMBER_LENGTH);
> > > 
> > > | ^
> > > 1 error generated.
> > > *** Error code 1
> > > 
> > > I've also tried compiling after blowing away usr/obj.
> > > 
> > > Ian
> > 
> > memmove is declared in systm.h, but I don't see include statement for systm.h in nvme.h. Could you try including <sys/systm.h> in sys/dev/nvme/nvme.h and build again?
> 
> 
> It builds with that, but coincidentally GENERIC builds without that change.
> 
> Ian

Could you send your kernel config? Maybe sys/systm.h is included under GENERIC but not under some configs.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?vSrD5BIXbG60VzaarV7hIxm2KqHRowF2D-OaxFIbpcTc83TOvjibwjvl9o7mEU46ZofIAsmmZqoMyDQy5vzZNr9Ng8mv_hZMiZC33wrSyhE=>