Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2220268imw; Wed, 6 Jul 2022 02:07:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sDkynx0PxUGMQ6HWREZjH6B1b9dAsXdC06s4KXrmf4GEMK4TfqmfoDMz1dWTHBYAQRbtwx X-Received: by 2002:a17:907:d19:b0:726:c8a0:c9ef with SMTP id gn25-20020a1709070d1900b00726c8a0c9efmr38544578ejc.435.1657098447386; Wed, 06 Jul 2022 02:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657098447; cv=none; d=google.com; s=arc-20160816; b=xilPawWzwscm9d9/ni3hmOzYDqNO/1vMManqhompb5xXromZHPy3Gb64/fwJO5y6zh OYyUBOKsWf3Q54afrfq8qb5FPQicPCeackji58rs3hIi54WjTeq4Acsohg04ePsUqEAz YorN8JOcY+oHMswLAMkT0+GeTa3E4uXFkty5sMgSnDYSPaziCZPkBCeIK6CF3iqs893L 6fvvNyzuRMYlHwq6CTvWjHR9Fqv/AAOpzN9T9LPPpToE+b/6eS7+6KwE9snf2+qa5mbz K+/E3BoEjtCXMTrf8vWOyJhC1DbaaXEi7rvnfnbDG+tOSXKzXqDqrJRSmz4VpTRahvYc S5aA== 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=TXakpgOclkEA0qcnlfvRxTzk14Z9MdQ4X0P9EUwUIeI=; b=VMUOWbwyvi6PqRdd3nSuNfUPJpIMAJr3ei3n8l7ASW2nNt17ECyejVOzgB8HNTRLE/ oG2S7W72YsZ1UrkWV9n8QzWCi8Cq57lrmIig2u+3Pw1hfLkB8yPc25V/PXbfw67wHN80 O0wYuqjSkNaqqMNVvjgUcbrpKz1V0JBwA8cIxjpIouDUN/j5I+8AiNY+DyhSblDkHtZW CSew88QWFkENd2Knpx0eiVsnXZTpt2js5/uREainuNtSvPLncU4Qee8/GI/LNPMShvZ/ 8KrmN3PzHsHEkydwHbMPB8Vti/04ccJoAuZZcKBzoec7pWPLyYxC/TPnsUcJ+wR7XnAl 6w3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="CzA8UfW/"; 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 r9-20020a1709062cc900b0071223d9f214si14588422ejr.177.2022.07.06.02.07.00; Wed, 06 Jul 2022 02:07:27 -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="CzA8UfW/"; 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 S232466AbiGFJBI (ORCPT + 99 others); Wed, 6 Jul 2022 05:01:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232261AbiGFJBG (ORCPT ); Wed, 6 Jul 2022 05:01:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F38CD2B9 for ; Wed, 6 Jul 2022 02:01:05 -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 8A02D61A0C for ; Wed, 6 Jul 2022 09:01:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF1BAC3411C; Wed, 6 Jul 2022 09:01:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657098065; bh=O5vfaJOmY630S2iHMOlIuDMP+z2m4nLFH7uCskj1on4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CzA8UfW/I+II685vuTyCAKfooW2Cq099Oh1HZOkqOQtkLW5tIQNnLHzw9Xy+z1S4A nEDOXvzmB4BcQBa3PNv6R7C/jUK7LnT5SvnhQMwHlLmq1A+IFgupp1qOdk1rc99mPu bekuL/Qsqg0lGPbKd2oRufOtJfOfaqeQAor6WXg6qwd8/YunGN+B10LuDcI+0+hn7J XkMsgBeI6gN5RRiQGpdN3vZVCDL/EZVxMPWhcoEbVFKDiTEz6h7M2TdT6WHFP9jvO4 Y5LewcW69v7JmWmEl8lDvsD7ltOSnTtol7pTtsjR3TI8UdqUxIKpzQ+2/uTdUyp0V8 Xw4XxwiSjVz1g== Received: from sofa.misterjones.org ([185.219.108.64] helo=valley-girl.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1o90u6-005Zti-TJ; Wed, 06 Jul 2022 10:01:02 +0100 From: Marc Zyngier To: kvmarm@lists.cs.columbia.edu, Will Deacon , Alexandru Elisei , Oliver Upton , linux-arm-kernel@lists.infradead.org, Catalin Marinas , linux-kernel@vger.kernel.org, Quentin Perret , James Morse , Suzuki K Poulose Cc: kernel-team@android.com Subject: Re: [PATCH] KVM: arm64: Don't return from void function Date: Wed, 6 Jul 2022 10:00:58 +0100 Message-Id: <165709805020.885966.4815879973915586287.b4-ty@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220705142310.3847918-1-qperret@google.com> References: <20220705142310.3847918-1-qperret@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: kvmarm@lists.cs.columbia.edu, will@kernel.org, alexandru.elisei@arm.com, oliver.upton@linux.dev, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, qperret@google.com, james.morse@arm.com, suzuki.poulose@arm.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.8 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 Tue, 5 Jul 2022 14:23:10 +0000, Quentin Perret wrote: > Although harmless, the return statement in kvm_unexpected_el2_exception > is rather confusing as the function itself has a void return type. The > C standard is also pretty clear that "A return statement with an > expression shall not appear in a function whose return type is void". > Given that this return statement does not seem to add any actual value, > let's not pointlessly violate the standard. > > [...] Applied to kvm-arm64/misc-5.20, thanks! [1/1] KVM: arm64: Don't return from void function commit: 1c3ace2b8b3995d3213c5e2d2aca01a0577a3b0f Cheers, M. -- Marc Zyngier