From nobody Tue Apr 16 20:13:07 2024 X-Original-To: dev-commits-src-all@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 4VJwFv4p6rz5H0hT; Tue, 16 Apr 2024 20:13:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VJwFv2N8Qz4tpZ; Tue, 16 Apr 2024 20:13:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713298387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rgQ69MMkVQvsW53Y4sK3UFjCiTB/kQ3jW4JxK6w6TW8=; b=odzpbT5nGGbnDfIPDsj4ZEY0fsoJ9zdLsTvYsc0Ys8nBYfLXgek+hqxwDVmceOeGPD/+Q6 nTwfBLhvcCnrEhyV9R2nqrH5rjiIEveBvCQEMidhQjH8tnKCOU5w81Z2igh1dKTyC6bc0l 9tdM1bPb0vjBeERanItBzTyxZfrrHZHnMRXRrP8ojmt5HMKRm4guZZBnHVGTqOvV4bEEPF 9Nc2SuFUcNotbN19ekB/jmN0roydUjJ14jrCQO7PoEeddw9zOTEnHomWujA7jFD9g43nlQ Rhav2EUzW5MB5o/gshSW8Hy84erIX4XQ53iGzJFyWELZIt2dfREFqZnET6vjdw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713298387; a=rsa-sha256; cv=none; b=f7dbRLn+Ko1R/v9azF/9mSVe4SGpZ9dVhN2FiYvRBFN1diCUyhEkaGGhu+BoVzp6PXt4AR 8YjRha64arugvXyFiuX37vYwxey3dwuzabeUWiJTo0ukbe6243O6ZEOdha2Vj3FaJNkXLu M5vqwA/ToZBGe4D3nEjJMTLaE9n169C9P5qjMUO6Ap1tS3UgQWLBWnJPeFehKo/+EAKN4e Kk6NpMX5OVHoSSkA9RGBfNvgmztFx7VO5CXgdoqMUoKsNLP1RnEhGfzW6PXzQdgjc4lk+t Z+dOVowR+N1SI6lhdU1Tb5G/WEzuidTerv9GmESknxGORWWeYLSO4PxIaXtWyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713298387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rgQ69MMkVQvsW53Y4sK3UFjCiTB/kQ3jW4JxK6w6TW8=; b=o8d5+R1yIQj4B4TWC+FVvfDq947kkbkAxzeMvVZUpsaun80C5cGAtzErw8nE7UXYnWInD5 zvQPBWf4EngMngw7EgOIZIOYoYW+BCprbMCG0S5TQ5scfJqRHGLSKPV0syFqDkTN5yjkv1 owBYbk0ReA3ynYS37a4XOiPY/QOv6hqtApqKm1Rv+uEb4XHNVwwkZ5osyhzW39T4Zoz9uZ st3MmXF8Y1xIzasxHptsu4eQa1Rwxfvpu9RwrfmQsie5qVogPNIhmSdO/N+r/gO9uNiJod AO5KWWbdMiRSRw7QRtdu84FBcj/9kJp9MMKwHaT3Nes1pwh92JmZe/2CujLZ/w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VJwFv1yX5zxPR; Tue, 16 Apr 2024 20:13:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43GKD72c038777; Tue, 16 Apr 2024 20:13:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43GKD76H038774; Tue, 16 Apr 2024 20:13:07 GMT (envelope-from git) Date: Tue, 16 Apr 2024 20:13:07 GMT Message-Id: <202404162013.43GKD76H038774@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 92f8c2f636e0 - stable/14 - loader/efi: Make gcc friendlier by move md_dev List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 92f8c2f636e0ade6a5986c0be449ccf819f8b2be Auto-Submitted: auto-generated The branch stable/14 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=92f8c2f636e0ade6a5986c0be449ccf819f8b2be commit 92f8c2f636e0ade6a5986c0be449ccf819f8b2be Author: Warner Losh AuthorDate: 2024-02-21 15:50:31 +0000 Commit: Warner Losh CommitDate: 2024-04-16 19:54:26 +0000 loader/efi: Make gcc friendlier by move md_dev Move the extern struct devsw md_dev out of the function. gcc is happier with this arrangemnt often. However, we really should move it to a header file, but that requires a bit of a rework of md support and config. Sponsored by: Netflix Reviewed by: manu, tsoome Differential Revision: https://reviews.freebsd.org/D44008 (cherry picked from commit b2822c40f61d351bf8a4cac87e12521db06ff962) --- stand/efi/loader/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c index d7cffe5f6df9..5944c383574e 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -278,10 +278,11 @@ probe_zfs_currdev(uint64_t guid) #endif #ifdef MD_IMAGE_SIZE +extern struct devsw md_dev; + static bool probe_md_currdev(void) { - extern struct devsw md_dev; bool rv; set_currdev_devsw(&md_dev, 0);