Date: Thu, 20 Nov 2025 15:15:16 +0000 From: Minsoo Choo <minsoochoo0122@proton.me> To: Minsoo Choo <minsoochoo0122@proton.me> Cc: cyric@mm.st, freebsd-current@freebsd.org Subject: Re: nvme.c:2012:2: error: call to undeclared function 'memmove' Message-ID: <KduunFm8V1gFDPZYD__mw5mr2HYYTaVJbKGyt90snUCS2RSF9wcMGAnRLunEnmqzqSGcLlJklVRYAh76UqHWpaZVSkvMERUAVptmaGYMiN8=@proton.me> In-Reply-To: <j0_SRBfQZW-8NCK4KROxVOcKHh_Hk154Xyt-ShzA0QGHd3a3IxiNjBDRk6bobTNTivHFzlmpxi8fkws9_ETTDpaDvlVoB7wG4ogvlVngJnU=@proton.me> References: <814ce2bc-2a95-444b-9ab7-7e680a024c68@gmail.com> <eb35a33a-8455-4c9a-a45e-cac535ad46d2@mm.st> <j0_SRBfQZW-8NCK4KROxVOcKHh_Hk154Xyt-ShzA0QGHd3a3IxiNjBDRk6bobTNTivHFzlmpxi8fkws9_ETTDpaDvlVoB7wG4ogvlVngJnU=@proton.me>
index | next in thread | previous in thread | raw e-mail
On Thursday, November 20th, 2025 at 12:09 AM, Minsoo Choo <minsoochoo0122@proton.me> wrote: > On Wednesday, November 19th, 2025 at 11:52 PM, cyric@mm.st cyric@mm.st wrote: > > > Ian FREISLICH 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. > > > > It seems to be the following commit: > > > > https://cgit.freebsd.org/src/commit/?id=8d2a50bb38051fefeb1427fdbfd249f2829310d8 > > > > And it was reported: > > > > https://lists.freebsd.org/archives/dev-commits-src-main/2025-November/037599.html > > > Thanks for figuring this out. I will see if adding #include <sys/systm.h> solves this issue and try to create pr by tomorrow. PR created: https://github.com/freebsd/freebsd-src/pull/1893home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?KduunFm8V1gFDPZYD__mw5mr2HYYTaVJbKGyt90snUCS2RSF9wcMGAnRLunEnmqzqSGcLlJklVRYAh76UqHWpaZVSkvMERUAVptmaGYMiN8=>
