From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1gP6Cn-0005V8-Kc for mharc-grub-devel@gnu.org; Tue, 20 Nov 2018 08:36:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gP5Fs-0001jM-46 for grub-devel@gnu.org; Tue, 20 Nov 2018 07:35:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gP5Fn-00075b-4Y for grub-devel@gnu.org; Tue, 20 Nov 2018 07:35:48 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:43249) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gP5Fm-000759-Me for grub-devel@gnu.org; Tue, 20 Nov 2018 07:35:43 -0500 Received: by mail-wr1-x433.google.com with SMTP id r10so1783862wrs.10 for ; Tue, 20 Nov 2018 04:35:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=TtG1M+ay7fWB56OaVMBJOz6BZLrx7oyznwlpL+lNhgM=; b=Cw2kc0UshrkIgIdtrWc04xfPYWiaGH/f/F+FcsOe9xMoahmyPAzBVIYQxcXz5gBKI8 E7yx2XJ5PhqDmmuQUChTtBzMY3pIb2PsMLywtATYqziq6n8cM3nhpKbaJr0ABo3+dTHl GY6JioBdLiNXk0wjAF7qbn6VqsyVmu/pN4jPE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=TtG1M+ay7fWB56OaVMBJOz6BZLrx7oyznwlpL+lNhgM=; b=TyPwEslI/3ykGiNDpMJPoGLkF87fuXdD9dfullMmi+hLsZAFZpifyPFHQdfvWsF9br xOzQUKsmxityFW6MFXzwLg4X57p6GbhUMC9zLCmrzIS65Yt9/Lh/Fx9Y6xl8ZN/7NHcE uoUzsHEIlWwxXUBzRuNK8Uqu1lcThL1vlZNP+iVNP2V3746yL/jq2yJzO5zYgr6iZtSM LTzn65RbusU+Xy01/YqJrblnQA+MTH9BZCi1fVnoGIWSeb+ALpNQwpIU71Ulh7vL35zS E9gvNwZnGAJQYKBySSI9qLpynPvUn8lgpK5pCzQvVTEqPTbk/oo49DWjt9pvNxm996ax JtJw== X-Gm-Message-State: AA+aEWY45A56fZ//k3YUPIn11utBYeb4YJGicD7q5jZ12pf3kuGfXWN+ GYDbCzaYllrow2OjWo6csEL/OA== X-Google-Smtp-Source: AFSGD/V0/hRUPME63GaR7OOsLsL/t1emW/HtvEx0Eg7la8QfxfHXPxtvY5/u+9GY+4vbCRxpTyIKKg== X-Received: by 2002:adf:9786:: with SMTP id s6mr1810445wrb.283.1542717341287; Tue, 20 Nov 2018 04:35:41 -0800 (PST) Received: from dell ([2.31.167.205]) by smtp.gmail.com with ESMTPSA id y81-v6sm28384771wmd.11.2018.11.20.04.35.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Nov 2018 04:35:40 -0800 (PST) Date: Tue, 20 Nov 2018 12:35:39 +0000 From: Lee Jones To: Daniel Kiper Cc: Fu Wei Fu , Leif Lindholm , The development of GNU GRUB , Julien Grall Subject: [PATCH v3 (part 1)] arm64/xen: =?utf-8?Q?F?= =?utf-8?Q?ix_implicit_declaration_of_function_=E2=80=98grub=5Ffile=5Ffilt?= =?utf-8?Q?er=5Fdisable=5Fcompression'?= Message-ID: <20181120123538.GV3513@dell> References: <20181114192919.24655-1-leif.lindholm@linaro.org> <20181116140737.wuox7v63y6lt2ymt@tomti.i.net-space.pl> <20181120104656.GN3513@dell> <20181120113819.GS3513@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181120113819.GS3513@dell> User-Agent: Mutt/1.9.4 (2018-02-28) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::433 X-Mailman-Approved-At: Tue, 20 Nov 2018 08:36:40 -0500 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: , X-List-Received-Date: Tue, 20 Nov 2018 12:35:49 -0000 From: Lee Jones arm64/xen: Fix implicit declaration of function ‘grub_file_filter_disable_compression' Without this fix, building xen_boot.c emits: loader/arm64/xen_boot.c:433:5: error: implicit declaration of function ‘grub_file_filter_disable_compression’; did you mean ‘grub_file_filter_unregister’? [-Werror=implicit-function-declaration] grub_file_filter_disable_compression (); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ grub_file_filter_unregister loader/arm64/xen_boot.c:433:5: error: nested extern declaration of ‘grub_file_filter_disable_compression’ [-Werror=nested-externs] Signed-off-by: Lee Jones diff --git a/grub-core/loader/arm64/xen_boot.c b/grub-core/loader/arm64/xen_boot.c index 7d1adce1b..a01792a72 100644 --- a/grub-core/loader/arm64/xen_boot.c +++ b/grub-core/loader/arm64/xen_boot.c @@ -429,9 +429,9 @@ grub_cmd_xen_module (grub_command_t cmd __attribute__((unused)), grub_dprintf ("xen_loader", "Init module and node info\n"); - if (nounzip) - grub_file_filter_disable_compression (); - file = grub_file_open (argv[0], GRUB_FILE_TYPE_LINUX_KERNEL); + file = grub_file_open (argv[0], GRUB_FILE_TYPE_LINUX_KERNEL + | (nounzip ? GRUB_FILE_TYPE_NO_DECOMPRESS + : GRUB_FILE_TYPE_NONE)); if (!file) goto fail;