Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1060982rwd; Tue, 16 May 2023 11:10:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6M8vcQQmQAU9bRhLUenXSh/EZNc9E8Z4+CuwUw5eEyMrWUew5QFO3hSQ/nutnBGso8XlKB X-Received: by 2002:a05:6a20:3c88:b0:103:8c8b:c689 with SMTP id b8-20020a056a203c8800b001038c8bc689mr27266059pzj.51.1684260607849; Tue, 16 May 2023 11:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684260607; cv=none; d=google.com; s=arc-20160816; b=CBMR6w5s3GTBCoMF1dvPFGVoYMwGg3clj+fDyx2f5sXm8JtKTTt/xbU2QiUdIJY8aa G4lbxwU+Bu9AT5PsEs6UgK96zHsoVMFbX00Bka5gcy9UbNyC3mDUT1j28cXI0vKQQ7xl p42xn2j5iEWdsPEhtV0szTDafLdK7/7R61yZgVLlgjSWdcTD9HEWRfc8tBZzRgYfNc9P bzBIrkMZUgCgfba97/g+ZXZZD4WoUKK8LUjUQifOMaRSr/7klxs7xoX6r1iDLxJubECx aljKgRdeJLq8VapGMuTMDhdOyXHW3lkrBO0vyfKmUmy2X17Ku++YWxegGn4xe/lbjqN8 H9uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0CFsOQXlsOAPL/doHsVZXnH9GW9lsrqJ591PuDO17z8=; b=io4dkI4aN6M5DVedf3XOjS0NqSi+tynbGV+Y6O0bFOo7GrxKJM2aVHqLTOevdbLSUM vkviA/TbLzROHWInwYfVPdBVbUwk4lgqDUdpa1PFw9n7dbKvqyMYZVwbrtXHu+8pbueZ JJlDIPKHbcQk9efNX/eNdUDRC7fUqkKuzuhddbeZgSqFETfsiRQEnLhRilvF51YgAVeS 0A7IJFIPbGhln1luNejggaqH1muQmM7ix0YJ4aOZKxgvh2eTERpTGjjzOW/AJ6SKK3p6 jvhREjC/UhipLnknwOBwZvbbyuUSLdySxT5D0fujLmgjnWfrwxGa9c3T01hPsoppnR2V 146g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IbADfA5u; 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 s30-20020a63925e000000b0052c62c3e1acsi541946pgn.441.2023.05.16.11.09.52; Tue, 16 May 2023 11:10:07 -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=IbADfA5u; 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 S231640AbjEPRvL (ORCPT + 99 others); Tue, 16 May 2023 13:51:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229852AbjEPRvJ (ORCPT ); Tue, 16 May 2023 13:51:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E3CB1BC3; Tue, 16 May 2023 10:51:08 -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 0B5DC63D80; Tue, 16 May 2023 17:51:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FB57C433A0; Tue, 16 May 2023 17:51:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684259467; bh=hjdexXXjV7B9byc2g6Pbp2Bf3qgKgg1T8OV/JHfislQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IbADfA5uDXYuQn7LGt+pOvo1nT2wVVW+US3Jxz0C14NpoRYUevGlU2vrra6glSOD1 HzImWEXtbVQ6yDv1CEWUlEyC2L8g2r1vx3NYmYeIYelkURQFbwD668PKmSv9V/mFMh tBjuBCA8tpmCzqtLrGkKl3q8bzVXG7SsFOuAQFF07LMXEFcrV2haRHQHUW89Lu3l4j 92S3uPhzKW4cq3eVkD7MQIb4y3dYksFTXWt9Fi1jr2i+/iS6VN0c+yB9LR0WJKeidK ilzJw/YkDhPcPDT+MVbjYtT3fKs0DUoD9QI3VO0nV8nvvY5+wszwJF2U1bhi1WB/p6 MXEFZwiFi+ySQ== Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-4f004cc54f4so16732674e87.3; Tue, 16 May 2023 10:51:07 -0700 (PDT) X-Gm-Message-State: AC+VfDy+C3rZ4/kzFwbKGXfsyYLlzcQ9WcH/reC4diG2cAgMW7LZ4aPM w/7mBdppQTYOwa3nJ4KBP3qexc9f5vNRKtgbpvg= X-Received: by 2002:ac2:484e:0:b0:4eb:c85:bdc2 with SMTP id 14-20020ac2484e000000b004eb0c85bdc2mr8530129lfy.2.1684259465451; Tue, 16 May 2023 10:51:05 -0700 (PDT) MIME-Version: 1.0 References: <20230508070330.582131-1-ardb@kernel.org> <20230508070330.582131-9-ardb@kernel.org> <20230515140955.d4adbstv6gtnshp2@box.shutemov.name> In-Reply-To: <20230515140955.d4adbstv6gtnshp2@box.shutemov.name> From: Ard Biesheuvel Date: Tue, 16 May 2023 19:50:54 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 08/20] x86: decompressor: Merge trampoline cleanup with switching code To: "Kirill A. Shutemov" Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Evgeniy Baskov , Borislav Petkov , Andy Lutomirski , Dave Hansen , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Alexey Khoroshilov , Peter Jones , Gerd Hoffmann , Dave Young , Mario Limonciello , Kees Cook , Tom Lendacky , "Kirill A . Shutemov" , Linus Torvalds Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.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,T_SCC_BODY_TEXT_LINE 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 On Mon, 15 May 2023 at 16:10, Kirill A. Shutemov wrote: > > On Mon, May 08, 2023 at 09:03:18AM +0200, Ard Biesheuvel wrote: > > @@ -215,4 +208,5 @@ void cleanup_trampoline(void *pgtable) > > ptrs_per_p4d = 512; > > } > > #endif > > + return; > > } > > Return is redundant here. The return (or at least just a semicolon) is needed here because of the goto label right before the #ifdef block, as otherwise, the function would end with a label and the compiler does not like that. > Otherwise: > > Acked-by: Kirill A. Shutemov > Thanks.