From nobody Fri Sep 11 05:04:15 2026 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 4hh2X02PfWz6rbGM for ; Fri, 11 Sep 2026 05:04:16 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hh2Wz6Wlwz4Bdh for ; Fri, 11 Sep 2026 05:04:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789103055; 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=2GyJX/nkmQydZSAGDJz09dtmfKwFpceLuTwK1D3iDd4=; b=rx8Whmm+iDfapKW/O3ueev/zmwsqbbFFvpalTbY+xsbBZmDR2YcWBQQ3AEpP/LIAAUvsmn /n1OAb3aYtimPObJVHpUnYdZmBKIVWlHrWUkiM+iFgKTyADxpEN6v1RK+3RD91NS4lXR40 nFDYFUdZ4fPcfJO8qrf7/3+xY3WDlmS5S5qiqbRPBCM0XbxPIuWe3qqutbhECLr+cmusJe hmfyB5r1yACNmEPIwy/aTFhpiXEDxMKe1iHHigJIi7Y8m9jdDmpg1NP8oviTj2t8fcj3JP vfv5Dsf7TeUvJxW5+EK5UaG+IY0lxiRfyI6LGvvgEpqHrIBob54uadeC4a5GtA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789103055; b=H/Zq6AOraYAzHbA65vXh/3ckyLov1lAAjmlfMzBRDBoPNvmYBpxJekAAbNBMDdZ5nnUEu4 ClUfWVzy3KkDBRNBxpycZ4Izh5vV1OX+Pz+vgBHBNgQgCYV0oeX7t1Ihqd/Pg2oB4yvw5W YmAim4pGWjg+QPTw2YseYqSKP4lOdt1m1lIZeaG+LD/0LgOWfi2iFTj0Pw/M/seJlLeSHn YEktdgGTAVDfu25ee5Uy2xWC4ya4R4BhtLuZB0RRxwukl6DMiIHhJ7uZdUOXr1VYh1+8R9 QzBX6W62vCTRSv6ex1RG2PJGJicbM5tQHQVBhN7XXvdxvxl+eag2Fqnv83bOzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789103055; 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=2GyJX/nkmQydZSAGDJz09dtmfKwFpceLuTwK1D3iDd4=; b=oXBsijh809nnvxiA1cwNyLdkiZdNLjdxpmw4hkY4DouZ9Jk54R6Pj6mi0p2YHsG9+UG/j2 YxBfHwJrCRUD0hV9Pt2dMRppn3krD4E2Rk5HE22LXXsUKfiW70FMqq6cb18J1OPCZoRSO6 BBm/TUDaPgKvA9oTJFvFDflwA5m0a5DKL7ipLAJDPp+zai1uNbRmYtkgBhl3TVY+ElarDL t+K4sOHg5dyMQ/G1x3a9kPW5ASpm0IHdQnp1Z6QfBx9EzF/FzUPrN09SCLfb42QGWc1Uap giuryoErlTuLCZ36ntZe8jeppDgulyQ1ygn/og6wCmR3+Vp1r3g5c5tuB4JBIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hh2Wz5bLJz10NK for ; Fri, 11 Sep 2026 05:04:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3b431 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 11 Sep 2026 05:04:15 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 8fae9294d6ba - main - loader: Allow this to compile w/o MD_IMAGE_SIZE defined 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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/main X-Git-Reftype: branch X-Git-Commit: 8fae9294d6ba714000611d1dd2263fdaf528ad62 Auto-Submitted: auto-generated Date: Fri, 11 Sep 2026 05:04:15 +0000 Message-Id: <6aa38bcf.3b431.3cb4fc8a@gitrepo.freebsd.org> The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=8fae9294d6ba714000611d1dd2263fdaf528ad62 commit 8fae9294d6ba714000611d1dd2263fdaf528ad62 Author: Warner Losh AuthorDate: 2026-09-11 04:09:39 +0000 Commit: Warner Losh CommitDate: 2026-09-11 04:15:27 +0000 loader: Allow this to compile w/o MD_IMAGE_SIZE defined Slight tweak to allow md.c to be compiled when MD_IMAGE_SIZE isn't defined. Sponsored by: Netflix Reviewed by: olivier, tsoome Differential Revision: https://reviews.freebsd.org/D59415 --- stand/common/md.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stand/common/md.c b/stand/common/md.c index 2c3eb5ded19b..b1179254e3c0 100644 --- a/stand/common/md.c +++ b/stand/common/md.c @@ -34,9 +34,8 @@ #define MD_BLOCK_SIZE 512 -#ifndef MD_IMAGE_SIZE -#error Must be compiled with MD_IMAGE_SIZE defined -#endif +#ifdef MD_IMAGE_SIZE + #if (MD_IMAGE_SIZE == 0 || MD_IMAGE_SIZE % MD_BLOCK_SIZE) #error Image size must be a multiple of 512. #endif @@ -152,3 +151,4 @@ md_print(int verbose) printf("MD (%u bytes)", MD_IMAGE_SIZE); return (pager_output("\n")); } +#endif