Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp676891imu; Fri, 9 Nov 2018 04:23:15 -0800 (PST) X-Google-Smtp-Source: AJdET5eRArUsZgm6Uyo4OGvnP0q2qnEgwA1H07KSY2vBkHDxJXrWwQv3Cr3CDYV6bHNw8rUFiMW6 X-Received: by 2002:a62:1f13:: with SMTP id f19-v6mr8822303pff.168.1541766195567; Fri, 09 Nov 2018 04:23:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541766195; cv=none; d=google.com; s=arc-20160816; b=XkAib8nKlcVo97V1TpIc5Whc6xe68uboe/shnzvXI8HBXZ8AsXZ7KzsCLo8jAAi7D9 qaK+Z23U8hFyRi51Nlwaw60lNp0jDtkwRKago+QGhTMuNToJBpQyZIjGq7ix8C/ExetV lsObA3v8c2zO49vZnLWDK6evvQS6SMo4Jz9WzOz1Vc5RLYcoQegXocpoF5nWK2wUJBeT bzUMbT8zmB1bZsORNdXNeXNC66RPpEQyIO1bJXQ5mBezoO+njRt6CyLL4N5nq0Cv4oHt tEoDelYiMLbrr7BaZm7hFXApnq4C9qf0WFOpOp5Dq12eEmyt/9PSRrs5YyB5bkuNgaa/ so5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=Fn7ICqg2ctOz0XMXpbqhiNXLIVMP1rJfFoeCsj39z7M=; b=Xa90hCSw/TBq3/NN8V/BGjLDsjeUFAu0WlqNNTkOuSO6L/wh1nndvEXM1J/EYVUd55 xqwdmrx3ME9jVo0LXKiquKry+LyRRWD0RdJ/Y+SZA/vkIAtj/6nMF5Khr5WuXVJnY0y0 zLZF1Ozz/L8JFLXiF3C9whow+/3OnqZNk9qfeQNHpWKjmMjCkOyq5qXATgbJLz5Aoxry m4sn6fsUjGEgWjsBWjWVhO/M5qG4RVaj7RdaHiCBqGtWrNGM2rIYKwDD24MC38+HSfnN HCoCM2VOfQT/2bLCUoPy1wgTP0N6ABSTuL6MrHuS2fL05k9XkQQ/0fpVjEymeW47w1Ws HBCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8-v6si8097582plk.39.2018.11.09.04.22.55; Fri, 09 Nov 2018 04:23:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727806AbeKIWC5 (ORCPT + 99 others); Fri, 9 Nov 2018 17:02:57 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:51648 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727560AbeKIWC5 (ORCPT ); Fri, 9 Nov 2018 17:02:57 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="47736632" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 09 Nov 2018 20:22:27 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id 8A1904B71EA6; Fri, 9 Nov 2018 20:22:27 +0800 (CST) Received: from TSAO.g08.fujitsu.local (10.167.226.60) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 9 Nov 2018 20:22:26 +0800 From: Cao jin To: , CC: , , , Subject: [PATCH] x86/mkpiggy: Drop endianness transforming Date: Fri, 9 Nov 2018 20:19:29 +0800 Message-ID: <20181109121929.11448-1-caoj.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.167.226.60] X-yoursite-MailScanner-ID: 8A1904B71EA6.ABB5E X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: caoj.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gzip file has 4-byte little-endian file size encoded at the end of file, while all the other compressed kernel file has size_append operation in the Makefile which also append the 4-byte little-endian file size. There is no need to do endianness transforming by mkpiggy. Signed-off-by: Cao jin --- A simple printf debug line before transformation also shows they are the same among 6 compression. arch/x86/boot/compressed/Makefile | 1 - arch/x86/boot/compressed/mkpiggy.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile index 466f66c8a7f8..8b2bcfd65920 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile @@ -58,7 +58,6 @@ endif LDFLAGS_vmlinux := -T hostprogs-y := mkpiggy -HOST_EXTRACFLAGS += -I$(srctree)/tools/include sed-voffset := -e 's/^\([0-9a-fA-F]*\) [ABCDGRSTVW] \(_text\|__bss_start\|_end\)$$/\#define VO_\2 _AC(0x\1,UL)/p' diff --git a/arch/x86/boot/compressed/mkpiggy.c b/arch/x86/boot/compressed/mkpiggy.c index 72bad2c8debe..d5402fcd844a 100644 --- a/arch/x86/boot/compressed/mkpiggy.c +++ b/arch/x86/boot/compressed/mkpiggy.c @@ -28,7 +28,6 @@ #include #include #include -#include int main(int argc, char *argv[]) { @@ -61,7 +60,6 @@ int main(int argc, char *argv[]) } ilen = ftell(f); - olen = get_unaligned_le32(&olen); printf(".section \".rodata..compressed\",\"a\",@progbits\n"); printf(".globl z_input_len\n"); -- 2.17.0