From nobody Sun Dec 04 20:36:51 2022 X-Original-To: dev-commits-src-main@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 4NQJPb70MYz4jTnt; Sun, 4 Dec 2022 20:36:51 +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 4NQJPb6Qzzz3pTl; Sun, 4 Dec 2022 20:36:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670186211; 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=+Ht64/CGnxcFSNTpPGd0B/MaUs5HLt+Bmdzjm81PTxs=; b=kiqVTnf0+Yh2Ws4vX0P2DLJeXemxQ5V/wR/45WiNh5rES7E7EiFkM1t+n8542Ep+F4EWSR 9v9JHEOHwOqszHsq1CC/TYtTsY+9j+eBfcjJmKtbj1g62ImBD0UWgXQRFhQCRS6PoMDvpM GIc/LOiHflSlXSjOjHgUoNwnRvf/gDUmxQLEuQQgBc6UUZuqLQSK7+Uuvi2WgSGK1cF6Hb /nc8Vc+u39MP7QT/4n6WHuZHCCewHg8NHtIjytgU1Ugy5fgAhFNuTDj39EemwmlbdaAEIZ IkEKY0LmBqVJhQPLOqvUDFcGdLDSIqbgm5DrEkgo1aRXRxzQ2+LQqU1Pm7+e5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670186211; 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=+Ht64/CGnxcFSNTpPGd0B/MaUs5HLt+Bmdzjm81PTxs=; b=ciyR0OamaVDrTQbkN7ek+Q6A3ey53u1tiHas5jYEKoAF70mSwb6dmvMBpAAY2QZM2WZCcz hLlMgfhJyk2AxDsXFYICBo4CMPGSGk6Obbfe8NJAWI57U37YSSJVfemm/P1qfOqkUT87Ob 6Ym6upxW2q5kEIDjgSOWMxXXPX5FC0xEVG97CqIbCpBNsTSUWXS4ceSmk7YtFxBjNMtjcU cTptmWhDwzl//EQWSfU/lOA+IxsV86ugDiEfcIbEE014jBYdnrzaaVAiZlX/BRQASkiwL2 iE44/upzMMwfe6KuoWOpE5GN8WuS57Cj7gddTyCXxH9nJnQ3aCn+bNil2gOjcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670186211; a=rsa-sha256; cv=none; b=OeoPyQr10VuGGqo5JnNu2PXT5D7CZtbSxRp8ert1GTZuDjmLM/BqDTI/PkLSZkfWdgszNu MxqvNqLA0mWvy7gJW6IpUUg5JAiuSoVWEA7lLdlJ485NOa4rbIfxGdFzhqFWP3d6h+wOCR DEL+YGpvwQ2vsyWSUeNBBdB1p2C7NClTZHTuzc3SO/TyYgNUPQ5okEpYq/AQ8WAKBIYGsQ Pq7fuXufSIj9zNjy6m3dAOHzXVVYjhTVdfx6FKN2Q2sjGCR8qDTYQv71vUa83xQguHUeVk TMdulv1c5dW1ztrgHx5wcS9/qhE70Bk7WYqqt3GlHowq6qwNsAUHYNew+djvZQ== 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 4NQJPb5XyNzX2y; Sun, 4 Dec 2022 20:36:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2B4Kaptb034088; Sun, 4 Dec 2022 20:36:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B4KapFa034087; Sun, 4 Dec 2022 20:36:51 GMT (envelope-from git) Date: Sun, 4 Dec 2022 20:36:51 GMT Message-Id: <202212042036.2B4KapFa034087@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 0ea00e71a273 - main - kboot: Use #define for DT_DIR List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 0ea00e71a2734caeb166287873b697d917e5a92d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0ea00e71a2734caeb166287873b697d917e5a92d commit 0ea00e71a2734caeb166287873b697d917e5a92d Author: Warner Losh AuthorDate: 2022-12-04 20:25:54 +0000 Commit: Warner Losh CommitDate: 2022-12-04 20:31:06 +0000 kboot: Use #define for DT_DIR Sponsored by: Netflix --- stand/kboot/kbootfdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/kboot/kbootfdt.c b/stand/kboot/kbootfdt.c index df9506af6773..aafa436daf9f 100644 --- a/stand/kboot/kbootfdt.c +++ b/stand/kboot/kbootfdt.c @@ -58,7 +58,7 @@ add_node_to_fdt(void *buffer, const char *path, int fdt_offset) strcmp(dent->d_name, "..") == 0) continue; d_type = dent->d_type; - if (d_type == 4 /* DT_DIR */) { + if (d_type == HOST_DT_DIR) { child_offset = fdt_add_subnode(buffer, fdt_offset, dent->d_name); if (child_offset < 0) {