From nobody Wed Nov 19 19:24:17 2025 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dBWd65NF6z6J8Yf for ; Wed, 19 Nov 2025 19:24:26 +0000 (UTC) (envelope-from minsoochoo0122@proton.me) Received: from mail-4319.protonmail.ch (mail-4319.protonmail.ch [185.70.43.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dBWd62xQrz3jkc for ; Wed, 19 Nov 2025 19:24:26 +0000 (UTC) (envelope-from minsoochoo0122@proton.me) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1763580263; x=1763839463; bh=Np+rPQB+bXeiNbIvl3JIwe23cZlnZn28fXfewB+Eyuo=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Qj66ff0Oy+yTqR/jX/qhFAPjSbaCcoZ6ePv36QqvGScy/zd4lSDMkYAKHDdfWH96l /tzJV20oAZ5ZweOfT4lPE8q/84H73gPiQ+gxxJI5msdtPthxiO7TGEcXZ5cGT2cHp7 mVttPsOaOBsaka5IjHAgvc7X29QRD0QnpwkHXgpO+auZ5QSQPxT2rwHLeAhWkOUDMR m5s7YTUUSWTzb+ZzSYjDEn3lXg8PxmLY+9booYt6692cInn1xqKAST1cmyTHID7a+9 Xe6NWBhoMZRx5au+dmDuly3hitXa15y0Zf9YSUdoTthdXuRtZKG0o2fZCrP7CPH5pb Hl2DQ8M5KzYdA== Date: Wed, 19 Nov 2025 19:24:17 +0000 To: Ian FREISLICH From: Minsoo Choo Cc: FreeBSD Current Subject: Re: nvme.c:2012:2: error: call to undeclared function 'memmove' Message-ID: In-Reply-To: <814ce2bc-2a95-444b-9ab7-7e680a024c68@gmail.com> References: <814ce2bc-2a95-444b-9ab7-7e680a024c68@gmail.com> Feedback-ID: 45891198:user:proton X-Pm-Message-ID: 1a776d18bbead6ad4dc21bc7e4a302f9bc026f2d List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:62371, ipnet:185.70.43.0/24, country:CH] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dBWd62xQrz3jkc On Wednesday, November 19th, 2025 at 2:19 PM, 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. >=20 > 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); >=20 > | ^ > 1 error generated. > *** Error code 1 >=20 > I've also tried compiling after blowing away usr/obj. >=20 > Ian memmove is declared in systm.h, but I don't see include statement for systm= .h in nvme.h. Could you try including in sys/dev/nvme/nvme.h = and build again?