Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1129176rwi; Thu, 3 Nov 2022 01:09:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4hQEKKbogGTjaSIoL0js0o0KXiHvKbaTJw8Z+QVsb4Lb1HLpEv3ZvuAijtV1VnOa+z/k1s X-Received: by 2002:a17:907:2c6b:b0:7ad:c587:bc5b with SMTP id ib11-20020a1709072c6b00b007adc587bc5bmr22436390ejc.425.1667462983445; Thu, 03 Nov 2022 01:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667462983; cv=none; d=google.com; s=arc-20160816; b=hW+N+qNh4eL0EPnh811r62pjJYUVZg21Acx0w6F5cq9I/N2n8Qx5O6Vhw7SzJJVn1w 7mZoCvv/QV1iTy1vCJeHk1m8K35jT/wFbxxz2YS4iOPbZISTqedUQgzQAuAdbtzv4z9r TT2RHPwqYMjyWlFSaa1J61XQMEHz2vviI/B3j5DuFZIcO6duPj3PgBc5pnWS7NdszC0s hPfIiHIbXtNCvj+ATUIZsueQhfUcTXbt3a0WnUfzU9P+ogv/oHXrnO5f86/p5/xr3dax 31sENAE/d1mUzku5A0Y5DW0Kto3JvobEMnnL6V8luVEiIQUMAgl6TNfftiEWSyr5JZB8 mymg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jnL3Eejj6No3x0u7kQLK+qUsRrn5bHj7kcni5tUirqA=; b=Prrcoqm4lIyBIjf6zeTvqBK/dkJjoMRDxYNmamC0oh8vSCfs2PIkaD2C1pt4BvS1ov hPmjjAG7uZisiqTVc4dPTOOQW7gwJ74OOj0ExTfLtUkL3Zyr+iMAi6nYFUy8q62PzvGY KhIsLAP0tRBI8nTdyyLIJ7XFzDzKueszZnpuTsb8/f3KfbbCXJHKHVdBvDZZXlBkx7zh rA9+zgVIeL0+yJ/35lORtSL6qxA1hkSYpJ5dPmRnJfV7FiS6ex+eGTp290vEM6HD6ctL oML+yxx+Xa9d1E48IYv1aa4rZuWYnojVQI5A44toqlrVrkfVzPyr8R2gzvgPSxEETMhS fdpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Hb/4FuK4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he38-20020a1709073da600b00783698dd8b4si497698ejc.722.2022.11.03.01.09.20; Thu, 03 Nov 2022 01:09:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Hb/4FuK4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229863AbiKCHvw (ORCPT + 98 others); Thu, 3 Nov 2022 03:51:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231372AbiKCHvp (ORCPT ); Thu, 3 Nov 2022 03:51:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CABB6333; Thu, 3 Nov 2022 00:51:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0973561D9A; Thu, 3 Nov 2022 07:51:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64C8BC43142; Thu, 3 Nov 2022 07:51:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667461901; bh=8F+Kx4X5IE8S8oO8XnXHjQy0E8HHBWecQqZQdnIaKB8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hb/4FuK4tIbDKiVPyAtBpXREjGDG3pRPu3LgfIxXF4pkM5k4KeFnVCEsdFH8oqthx qw6XSqmN2km/us1xp65NafYHHW9aXD96CTfaOkYhRdrMaxhblVfa+6VP/59SkelB71 NwTqS0dUoLlY+ewrJwPS2xebx2Z+6sFHSctx4+PUPbiaIRpSdHoCwyu8jhhlVdMPv1 vGCEbhGoaLTHKN69qH8mt2dvHT3g5YkzU4pwJwaxzCaSFC2ph56pQxrZhPjmBGf7uG HRhKfGCuQfexo9e30Srn0KRjQVcUuvFa18EPvo49QZ1Hq25jQ5vVdbaN9scWEGcNUX EjMTNnSdbbFRg== From: guoren@kernel.org To: arnd@arndb.de, guoren@kernel.org, palmer@rivosinc.com, tglx@linutronix.de, peterz@infradead.org, luto@kernel.org, conor.dooley@microchip.com, heiko@sntech.de, jszhang@kernel.org, lazyparser@gmail.com, falcon@tinylab.org, chenhuacai@kernel.org, apatel@ventanamicro.com, atishp@atishpatra.org, palmer@dabbelt.com, paul.walmsley@sifive.com, mark.rutland@arm.com, zouyipeng@huawei.com, bigeasy@linutronix.de, David.Laight@aculab.com, chenzhongjin@huawei.com, greentime.hu@sifive.com, andy.chiu@sifive.com Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren , kernel test robot Subject: [PATCH -next V8 02/14] riscv: elf_kexec: Fixup compile warning Date: Thu, 3 Nov 2022 03:50:35 -0400 Message-Id: <20221103075047.1634923-3-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221103075047.1634923-1-guoren@kernel.org> References: <20221103075047.1634923-1-guoren@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren If CRYTPO or CRYPTO_SHA256 or KEXE_FILE is not enabled, then: COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/ ../arch/riscv/kernel/elf_kexec.c: In function 'elf_kexec_load': ../arch/riscv/kernel/elf_kexec.c:185:23: warning: variable 'kernel_start' set but not used [-Wunused-but-set-variable] 185 | unsigned long kernel_start; | ^~~~~~~~~~~~ Fixes: 838b3e28488f ("RISC-V: Load purgatory in kexec_file") Signed-off-by: Guo Ren Signed-off-by: Guo Ren Reviewed-by: Conor Dooley Reported-by: kernel test robot --- arch/riscv/kernel/elf_kexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/elf_kexec.c b/arch/riscv/kernel/elf_kexec.c index 0cb94992c15b..4b9264340b78 100644 --- a/arch/riscv/kernel/elf_kexec.c +++ b/arch/riscv/kernel/elf_kexec.c @@ -198,7 +198,7 @@ static void *elf_kexec_load(struct kimage *image, char *kernel_buf, if (ret) goto out; kernel_start = image->start; - pr_notice("The entry point of kernel at 0x%lx\n", image->start); + pr_notice("The entry point of kernel at 0x%lx\n", kernel_start); /* Add the kernel binary to the image */ ret = riscv_kexec_elf_load(image, &ehdr, &elf_info, -- 2.36.1