From patchwork Wed Nov 14 19:29:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 151113 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6086020ljp; Wed, 14 Nov 2018 11:29:46 -0800 (PST) X-Google-Smtp-Source: AJdET5f1ZeTUlhtQKG03oAy03o5UPjzCU6ZE+F5UZ21rb7nP8PLthfdH56N0i7j+KfwJ0tLUY1Dj X-Received: by 2002:a0c:8264:: with SMTP id h91mr3265400qva.116.1542223786084; Wed, 14 Nov 2018 11:29:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542223786; cv=none; d=google.com; s=arc-20160816; b=nvSmnNKEMf0FcxlWA4wWdn+KVkaO02FcPLlUrPlcUR2NDtnusxkx4q8YmfrVt+SP5F GmVxGSQGJjbUSgzcIYAjJ53pzGhOlUz9kwOHgREhtzsCivuHdvkZ6fFRUAIutMulOJJV n6Ke56uABOuRwj2yeqxJMAtNpWgPR0bL5OhRXPpOh0Ak3IWVZK0b28zIzg/EUtWe/SMS 9498alVU5moVG0MH5Vvkl9TwHtupwb+RzCuqcW3RmJN9AzGW9bnH15mzEfpQMClhLp4I sJNppTVSSePmwSEVnM6FhbjgwZHyv5CyPghVxNtkl7NUJv6DsS0A58chYZ2288nEQz16 geJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature; bh=w4DJ7teM9SpqZBp/5ll/bUgt0fskWTPbmq5Sp5T1MJo=; b=PphokZ98Y0fEln4vHZufp2eYNIRr+4SX6/KWW+RjbfqqPMsoQR58YYFhIRgx9x6W2F 91BBSEjGL65cMwZKanGSGrTh6PTmH/5vGnSIYVggcTjS2ZUjWfk+vTPjxg87r1KfQSMO 449HFNzk9qU3KvakEecyTWGxYGHmMs34uCpIL7+jxWKUX8uN7DlgZ4TK6l3DRo9B/pU9 7B/rIvsb7Ygq/2IqjjAoTg7/8I9Be06m/AiWBlmtX3SEidQM/XEzs4VRBm3EXfaru+mq swdyfE11BJ6cckaNhqZWBKQ96RKIImZFrrL424tE3uWp5kHRlVwn3OaQ5+KWyqdnBy8F nRMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NNC3MIC4; spf=pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="grub-devel-bounces+patch=linaro.org@gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 4si693879qtw.283.2018.11.14.11.29.45 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 14 Nov 2018 11:29:46 -0800 (PST) Received-SPF: pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NNC3MIC4; spf=pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="grub-devel-bounces+patch=linaro.org@gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gN0rB-0000kj-Bh for patch@linaro.org; Wed, 14 Nov 2018 14:29:45 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gN0qx-0000jd-4R for grub-devel@gnu.org; Wed, 14 Nov 2018 14:29:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gN0qw-0004t2-2E for grub-devel@gnu.org; Wed, 14 Nov 2018 14:29:30 -0500 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:51675) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gN0qu-0004rX-5v for grub-devel@gnu.org; Wed, 14 Nov 2018 14:29:29 -0500 Received: by mail-wm1-x342.google.com with SMTP id w7-v6so16560078wmc.1 for ; Wed, 14 Nov 2018 11:29:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AhOBDkzr+kKrHwpbikobvBmHmhSF7Xc/JeJYP1+vQkU=; b=NNC3MIC4UdIk/FP1P9ma7Qv2ez6Biqo6eBylQwnaSPb+1FzKLYXDuE1HscaBvoRnEV VLkjqYseFD4ftzly+nbipcwYI3MEiwxBEYXrQKNg4YI9YEuwqFvYynCH0k6i22O0IIbm E5vJmhEsjk8CiuQClew0Vz9fZuqTghtWXLujk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AhOBDkzr+kKrHwpbikobvBmHmhSF7Xc/JeJYP1+vQkU=; b=g+tERaoyv2ATerlNCZ4CbWIpNuR5rN4PQhtcLaJrxlXdFg70wni1CdE25uB4jPiqBR UxhApu1DixBgGXfTT/KNGzj9Hin1apNldCKrM0QpMG6IB1T8XhtPRIPzvc3aAUGn9rpj WL8vS6FSRuliz1AVXDRjEdrARQ+xyuZ23Yn9Lls80D7AHrL7vTJln72lVy+3ryj48/nT Su3UXQctQVchfe3fk71sQLGzcNGrr3fdYfoKIX2CPCJywAG4Bm/bNWAhjBMzDEGqpNfV t23Enp1iH1ct72FVdM+jLgc6kPMzv2o0pxDIZpKebTU7z6Ti81tiSU6F5SgGk4YZZhlb ZAfQ== X-Gm-Message-State: AGRZ1gLTzSAsDfcE4TmnPvUBTVkqAjInX3Qh+/iw5w+VrAtP1GggRgWI rmjoRGFF8XJlW5uVPGGjt5Y/I6qHQy1vYQ== X-Received: by 2002:a7b:ca53:: with SMTP id m19-v6mr2940371wml.47.1542223765737; Wed, 14 Nov 2018 11:29:25 -0800 (PST) Received: from vanye.hemma.eciton.net (cpc92302-cmbg19-2-0-cust304.5-4.cable.virginm.net. [82.1.209.49]) by smtp.gmail.com with ESMTPSA id 127sm6260278wmb.4.2018.11.14.11.29.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 11:29:24 -0800 (PST) From: Leif Lindholm To: grub-devel@gnu.org Subject: [PATCH 3/5] loader/efi/fdt.c: fixup grub_file_open call Date: Wed, 14 Nov 2018 19:29:17 +0000 Message-Id: <20181114192919.24655-4-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181114192919.24655-1-leif.lindholm@linaro.org> References: <20181114192919.24655-1-leif.lindholm@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::342 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The development of GNU GRUB Cc: dkiper@net-space.pl MIME-Version: 1.0 Errors-To: grub-devel-bounces+patch=linaro.org@gnu.org Sender: "Grub-devel" The verifiers framework changed the api of grub_file_open, but did not fix up all users. Add the file type GRUB_FILE_TYPE_DEVICE_TREE_IMAGE to the "devicetree" command handler call. Signed-off-by: Leif Lindholm --- grub-core/loader/efi/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel diff --git a/grub-core/loader/efi/fdt.c b/grub-core/loader/efi/fdt.c index a4c6e8036..a18ca8ccb 100644 --- a/grub-core/loader/efi/fdt.c +++ b/grub-core/loader/efi/fdt.c @@ -123,7 +123,7 @@ grub_cmd_devicetree (grub_command_t cmd __attribute__ ((unused)), return GRUB_ERR_NONE; } - dtb = grub_file_open (argv[0]); + dtb = grub_file_open (argv[0], GRUB_FILE_TYPE_DEVICE_TREE_IMAGE); if (!dtb) goto out;