From nobody Wed Nov 19 19:50:41 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 4dBXCY4PXZz6JBGF for ; Wed, 19 Nov 2025 19:50:49 +0000 (UTC) (envelope-from ianfreislich@gmail.com) Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dBXCY2S8jz3mHZ for ; Wed, 19 Nov 2025 19:50:49 +0000 (UTC) (envelope-from ianfreislich@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-7866bca6765so1004267b3.1 for ; Wed, 19 Nov 2025 11:50:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763581843; x=1764186643; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=M4djE3rrJui9u330enHFyWMp9twuvW1bNKokGZcxZvc=; b=TUHJXft/XhwYooYiCP49UaMyyqdVHhSN7P+vq/dFYHq2M5tB8aJfnlCDsLuJMDhqOm 9InHXpHMfH6lpIhC1P8QATgc5fIQESywix6VI+sF4NRROVOsWT37PbnXExTMKtCyHO7I i/Y0baAAprofLbGDcdhkK+ac/Nir9E9a/tiLd/DERAEMxX59vnaTLxSdEljvteKZpv+n 6+buXTn7nF+u5U+h1ayGLgYISXyUp41vUi2QS1Pfp1fSmEKIFy9b2TdV5X06Te7L0xdQ 9XFqmhcS+QwS4IPfTKMafHwQjGZM51+D/a5MCUuQcDySeC9hE4ekw68lXvRc1P/hJRII cibA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763581843; x=1764186643; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=M4djE3rrJui9u330enHFyWMp9twuvW1bNKokGZcxZvc=; b=I4+vufqaTTHEA2DZpgAhDt5X3uR9OdRpQfRwUlt6arrYquldVFzIG+2f/n1jnzGohF 3y4/k3MFFhzsaZvgnAKrUt3oS21joC0dnrr/wA49l7rbeFD+9sdVfMlrRscpBZKLU008 4eXFbOPIaTeZd0X3BZRc29jbx4noHxSWULc5ogr/IKR++jk77Gp4bqmEBXgGinTVf8xV VWrfVKxEGDvsPH1tL0KqFAAK/XFIyHLJKBd0RLOtn6OEii/008n11IIsrsJREbc80AoB 6g4YjEYuQ9xz2CVrFUJJTvmrfx218EluwsEDrJNpBoF5GmHijbnLaovmULLDG02JhlZA 9DuA== X-Gm-Message-State: AOJu0YzNTmVV1L3ago49ETM7FRfxJGc1uuymLDqqbqmAGGopw7Cbdj2W kF1r9zxpV2sOuIJDKWc+qvtbgUIZX+0y5nf9PDvsjzf9tN8E/mSs9Ju8ecCmLzAq X-Gm-Gg: ASbGncuNte/jl0+S8dOK7ZPSXADE4Zt55Y4PlIUjZPPYdypZP/WCDDxqwtkmEscJS2u KHrBZXJExaTkUIzIgG2TLSpbgjmJVPKTRUHyWLfa+pPFT0JlbwZcDl+uNH6cVYbL7yHjDm/7K19 3LWe0hiZMxNclAlYLRIY1PLm5ySLvO3qHJwYkMRRKomx/aAm19JKo/WclpAp23WDpKqw0Px0OLk G2QVnr++1rWRKb2Lu3CvkWKW8sVttNZIhMvrJBdjB19DbD7u8Ah4RaXt+a/QoBEqTO9e3E+U2Jz kIuf9/mYR3dAlHSJJxm5qc7/i4/W7ZUdOlYqvSgD7APf82sHDc9wWvfh6uSII7tnLZoGI0Xx6gc eO+Cbwx5oO68Nj8cYQq6vTgp/uGG4xKnImCEuDhTq26IxAH5rwkN5WVCqek+sY0xF2TaU2JW5nj ClDR1EaBipPeXl8txlxjN3+CIffeWbUf1ZYjHh2G8aBP1GLKCFXF8h479dV8jDJPJ4Zjn3TkaVu lpg X-Google-Smtp-Source: AGHT+IGGMlbmeFNF58QcS2u3K9i6YHAQQA8maau2cVF0Hz6gGRYOQC6Ie0aQ1vqEcicAXEXmQXPVmA== X-Received: by 2002:a05:690e:d03:b0:641:f5bc:695a with SMTP id 956f58d0204a3-642f7ddd767mr210308d50.70.1763581843069; Wed, 19 Nov 2025 11:50:43 -0800 (PST) Received: from ?IPV6:2600:1700:18f0:6812:129a:8666:ef01:3293? ([2600:1700:18f0:6812:129a:8666:ef01:3293]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-642f71ae74fsm142844d50.22.2025.11.19.11.50.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Nov 2025 11:50:42 -0800 (PST) Message-ID: <60449f55-58e7-4f8b-aa0e-3f288dab5146@gmail.com> Date: Wed, 19 Nov 2025 14:50:41 -0500 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 User-Agent: Thunderbird Daily Subject: Re: nvme.c:2012:2: error: call to undeclared function 'memmove' To: Minsoo Choo Cc: FreeBSD Current References: <814ce2bc-2a95-444b-9ab7-7e680a024c68@gmail.com> Content-Language: en-US From: Ian FREISLICH In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dBXCY2S8jz3mHZ On 11/19/25 14:24, Minsoo Choo wrote: > 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. >> >> 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 in sys/dev/nvme/nvme.h and build again? It builds with that, but coincidentally GENERIC builds without that change. Ian