From patchwork Mon Mar 8 14:29:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 12122485 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10981C433E0 for ; Mon, 8 Mar 2021 14:31:38 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 85747651A2 for ; Mon, 8 Mar 2021 14:31:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 85747651A2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=rasmusvillemoes.dk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=1Zh7QgM6C+3/X28C8pkvaePD9aWN4nrTOZCImmSuyFY=; b=ccIFxj5kMvlp4x05xKpWcAxhaN hBOVIjjiXBv0hM5HPko3qSxD0YG8HpFQ8zXvpopJE5KOXYI2eCot7cygsqsnVa675aAm+jmv6Ak/x aeXM5QDf7pvRRHxG8X9FYgM+GCzN9BfQTaA1MpZfrCQ4h0QRz2kK/N/aNKzxRr3/BG0LFNQ3KVB1Z xeQ8jIpn9ieKVRwa7UntFVEJii56OETFJOFo5qce/Tg9A0RA9RPEWnYwbqiIYpME/QDmmRdw53o18 LJOOakrAnC8NRiVG5yp5B+sZ+jaz7wQ+lMDwK1EImm1LdlLFy9IAX9w5MnVLbiAtsujMKNhA1DERU 2kwvHHlw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lJGtR-000EtX-W2; Mon, 08 Mar 2021 14:29:58 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lJGsy-000Ego-Dq for linux-arm-kernel@lists.infradead.org; Mon, 08 Mar 2021 14:29:32 +0000 Received: by mail-ed1-x532.google.com with SMTP id dm26so14959905edb.12 for ; Mon, 08 Mar 2021 06:29:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VZ95HCrzC/uZL3yF3MQHAMzcpcBy+9OivBgQEt2mFp0=; b=IGuHWW2xBAY/Gd1G7xqn4N3gKp4SPyZITw0xLNI+qDvAdKJLx5mlPppSSg2Wg02WB0 IFIafS/IvgfCnfaLHfHiwoYGbnSgrwjHehCAT3F0aNkYzm3kG3XRC61CgjsAHxviIgm+ Kf6j9M1Y090wEtFmrIq6TA1q1QeXzEF0y3+5w= 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:mime-version :content-transfer-encoding; bh=VZ95HCrzC/uZL3yF3MQHAMzcpcBy+9OivBgQEt2mFp0=; b=b81umbwc0FCBK+qBJ8u1Hf4ZVq69bq81mxvlXRJKEhGABwVzKyZ+RzFGnEA5KWAr5y xttDZT6ShX2CVyXdAjuiegAdxIXIVSj8kXx7P3PFypnOqbml7gcxN2Kze00aNOFaaOVe rHluxZlGm4xe7ijrpchZcECtJI4l/fp+nhMsOTYnCPo2w037EuvV+lLPedPRhHaoxlaV m5dNvQO8nAZBVaql+eD91B+YLCd5/CkzcqXYE+kcJ08gdG6pxusdGLDBW0IG28lWFVK1 KNTV2jEt/93fUNDKrY+A7Wo4NpQCRH4t/rKtWmzAIsfOkybb+fnInodrmcEg/2jGulFY 7L9Q== X-Gm-Message-State: AOAM5310QbNUqVpmNuOlDXd3uw6IaSFdTJcno02ilwLLkrC0/JwmERkY q3rR/b3VtLX0OJnRRQTs994d2Q== X-Google-Smtp-Source: ABdhPJzwFgkfy/3/HYzExl5Jh7X0iiALW2LDPb2arB71+bIn0TNbrNYiRH0B+w7MpSTUNtTBd15uPA== X-Received: by 2002:aa7:cd8d:: with SMTP id x13mr22120450edv.286.1615213764852; Mon, 08 Mar 2021 06:29:24 -0800 (PST) Received: from prevas-ravi.prevas.se ([80.208.71.141]) by smtp.gmail.com with ESMTPSA id j24sm6614687eja.61.2021.03.08.06.29.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 06:29:24 -0800 (PST) From: Rasmus Villemoes To: Russell King Cc: Rasmus Villemoes , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: decompressor: remove unused global variable output_data Date: Mon, 8 Mar 2021 15:29:21 +0100 Message-Id: <20210308142921.1287584-1-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210308_142929_321788_6544193C X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org output_data seems to have been write-only since the flush_window() callback was removed in commit e7db7b4270ed ("arm: add support for LZO-compressed kernels"). Signed-off-by: Rasmus Villemoes --- arch/arm/boot/compressed/misc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/boot/compressed/misc.c b/arch/arm/boot/compressed/misc.c index e1e9a5dde853..fdef4d413d24 100644 --- a/arch/arm/boot/compressed/misc.c +++ b/arch/arm/boot/compressed/misc.c @@ -103,8 +103,6 @@ static void putstr(const char *ptr) extern char input_data[]; extern char input_data_end[]; -unsigned char *output_data; - unsigned long free_mem_ptr; unsigned long free_mem_end_ptr; @@ -145,7 +143,6 @@ decompress_kernel(unsigned long output_start, unsigned long free_mem_ptr_p, { int ret; - output_data = (unsigned char *)output_start; free_mem_ptr = free_mem_ptr_p; free_mem_end_ptr = free_mem_ptr_end_p; __machine_arch_type = arch_id; @@ -154,7 +151,7 @@ decompress_kernel(unsigned long output_start, unsigned long free_mem_ptr_p, putstr("Uncompressing Linux..."); ret = do_decompress(input_data, input_data_end - input_data, - output_data, error); + (u8 *)output_start, error); if (ret) error("decompressor returned an error"); else