From patchwork Mon Mar 13 12:58:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 68824 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1168955wrd; Mon, 13 Mar 2023 06:00:07 -0700 (PDT) X-Google-Smtp-Source: AK7set+W/8ZVs2Lk1QSfnL0HyrGBiChwpPn0lN8iJFrPTT3SduXwWhdh3GZW3vK7/MjhkDoWUXuY X-Received: by 2002:a17:902:cecb:b0:19a:6acc:1de2 with SMTP id d11-20020a170902cecb00b0019a6acc1de2mr39806649plg.35.1678712407132; Mon, 13 Mar 2023 06:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678712407; cv=none; d=google.com; s=arc-20160816; b=PWlCsY0MY5p05yKsYQT2dDGwIGoxYYIrqKN6Z4eMGFcgSjZV80ZSShOY76MD7apdAM sWf2zRKkaHU4wf233B27n0sTCGhVSdt77eBdUopXYFq8CzWsN5g0dSunTA58y0jlhdeP 6OgUh8AA2eY8Ll/NsinYRGYpo9XFjpk2rWb6pmcpneRPW2ML137S+/8oA7lSpwTvq/Fh jvGAd3rRXwbr5uGrYZIrp4I79SvxRJuq+HhXd9fa54lKvUHW0vssfwIXv6QubfFKlZPT ZN/N7iT0RSbbmmJh3iLjL/vC8VVeXuWq68XvWuv0HkOPgISXAptw/nnn/44d2oYHfBED kxRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=RwaUg6myi9ABQdqJVGJv37nQDlbAAjsh5eWKeZHxlsg=; b=lxrhwsszGZB1VgcU/4G1ShiZ+T56M+3FUxsPNptHtOZbPChA7Gv+SBSSZZeeoKL6a4 VIgYRj/KJu464BABq4oDIFvZmLozQvqF4WnuQIta1iCWZMG3AdFeItMMAc4OcXOwaSNu 9Z7J563qfwDzremWsPcTa5zohqrLZZ1Cp1A2yWo3ftAqHfquZN/VZNd4HXJcCZJN3UN0 2zc0YDFZEG0gZu+Yk8kBX/ZwlyIZDYHWD/el5Z5cqFGbDzfzXmTLsxw+FteU6GcoCyCj /JzuYJYTMNHJNO0ulMVUQOGv88fMeMKiK1FG/g/yZr+8phTpPmMeSEwEFRDzmbhYgP9F CgXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=iEwGaDNN; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a170902ba8700b0019e4154578esi6562759pls.76.2023.03.13.05.59.52; Mon, 13 Mar 2023 06:00: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=@linutronix.de header.s=2020 header.b=iEwGaDNN; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230324AbjCMM6T (ORCPT + 99 others); Mon, 13 Mar 2023 08:58:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230095AbjCMM6P (ORCPT ); Mon, 13 Mar 2023 08:58:15 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DE071116D; Mon, 13 Mar 2023 05:58:12 -0700 (PDT) Date: Mon, 13 Mar 2023 12:58:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1678712290; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RwaUg6myi9ABQdqJVGJv37nQDlbAAjsh5eWKeZHxlsg=; b=iEwGaDNNr7y6Ql9Djt9w/wsyVB6fpZ6OkY83kAW93Ab+gJF9NirqFG/t9kWjMX5Ywi47nf 7Do+2s0WlnAPD35kfGhwhXn02R4FrCfyEOhGysJ9TeuINI5Ec0Ts7nqaxhxKHsQqK3bjbn bJYf3AZoZqp28K4flL6IXv/yY6UneucLuI14hAkiycBvY5daFJ0NRiT6yHWS50fnHce5Dh cqEVN3EnGcpHyms3oc54ZNM4JKfYWnOmutH5eEdotpINx7o52wWa56ERYn+eLpqfqgYWWm n3TtXkL7+0F/XSBTPRHDIqwx9DrmVVkhUj6zRjR2+OiXA4NwTKww1caWFYHLWg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1678712290; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RwaUg6myi9ABQdqJVGJv37nQDlbAAjsh5eWKeZHxlsg=; b=jjJS3D5JIWbLW93M4elErtQ4iiKhvA6NFKgnSKDkEpwmGYwMKore9jsDZkhmATLSX1+UXG CNOVq/4As6ZGckCw== From: "tip-bot2 for Borislav Petkov (AMD)" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] virt/coco/sev-guest: Do some code style cleanups Cc: "Borislav Petkov (AMD)" , Tom Lendacky , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230307192449.24732-7-bp@alien8.de> References: <20230307192449.24732-7-bp@alien8.de> MIME-Version: 1.0 Message-ID: <167871229014.5837.18422777440334772026.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759740283686565879?= X-GMAIL-MSGID: =?utf-8?q?1760257540925875788?= The following commit has been merged into the x86/urgent branch of tip: Commit-ID: d25bae7dc7b0668cb2a1325c64eb32d5fea4e5a9 Gitweb: https://git.kernel.org/tip/d25bae7dc7b0668cb2a1325c64eb32d5fea4e5a9 Author: Borislav Petkov (AMD) AuthorDate: Wed, 15 Feb 2023 11:54:59 +01:00 Committer: Borislav Petkov (AMD) CommitterDate: Mon, 13 Mar 2023 12:47:55 +01:00 virt/coco/sev-guest: Do some code style cleanups Remove unnecessary linebreaks, make the code more compact. No functional changes. Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Tom Lendacky Link: https://lore.kernel.org/r/20230307192449.24732-7-bp@alien8.de --- drivers/virt/coco/sev-guest/sev-guest.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/virt/coco/sev-guest/sev-guest.c b/drivers/virt/coco/sev-guest/sev-guest.c index 07dafe2..81a53c3 100644 --- a/drivers/virt/coco/sev-guest/sev-guest.c +++ b/drivers/virt/coco/sev-guest/sev-guest.c @@ -412,18 +412,14 @@ static int handle_guest_request(struct snp_guest_dev *snp_dev, u64 exit_code, in if (rc == -EIO && *fw_err == SNP_GUEST_REQ_INVALID_LEN) return rc; - dev_alert(snp_dev->dev, - "Detected error from ASP request. rc: %d, fw_err: %llu\n", - rc, *fw_err); + dev_alert(snp_dev->dev, "Detected error from ASP request. rc: %d, fw_err: %llu\n", rc, *fw_err); snp_disable_vmpck(snp_dev); return rc; } rc = verify_and_dec_payload(snp_dev, resp_buf, resp_sz); if (rc) { - dev_alert(snp_dev->dev, - "Detected unexpected decode failure from ASP. rc: %d\n", - rc); + dev_alert(snp_dev->dev, "Detected unexpected decode failure from ASP. rc: %d\n", rc); snp_disable_vmpck(snp_dev); return rc; }