From patchwork Fri Feb 3 09:42:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 52437 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp743820wrn; Fri, 3 Feb 2023 01:58:59 -0800 (PST) X-Google-Smtp-Source: AK7set//53kO7hWXyh0kY3zmTl4MgSCzQjr/44dk9gq2dq1Sm6Y11+7pT1KrL/8CMVtB+gR9xcPs X-Received: by 2002:a05:6402:911:b0:499:bf28:d9c6 with SMTP id g17-20020a056402091100b00499bf28d9c6mr9133367edz.5.1675418338971; Fri, 03 Feb 2023 01:58:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675418338; cv=none; d=google.com; s=arc-20160816; b=uETEC/80yH8wsY2gZ2brnyw4P6l2gAeZKJ/WZ0BlwhO+LNC506STW3JqQsbq+TLVRl ZGc7PwdbgoJ5oLBppjrfL2jZZ2GjmPb7eCRFFzj86TPaaW36o3ikWBmRtv/egTBShvas 4cpiLlrKxKCfxicXLrLCWJBAmjMa6vNYnLgLRLdkI50waLwD4Nho4cB9qCcwN90aNI62 Y5jvVFj6qetDOZt86iBe2yRv1N1nei9WbeRnGJeNUD8A2Dx9Kx7N2O7X3eO8c7n96RNF 6vFn2FyS7mTEDfRaBqVhQyJjvoHhcQNjqLIo8FPpxSulV8/aNXjOKxTcmRvStl3UhEQU EuJA== 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=tHFJYodS+GlZliPPBpSywnTgXG8QiYZdzMEcCQFBMZk=; b=bByuLtIIua1xjihvGZoXlHEFXDBeoNprIP+qNuSsFwViIljePOR0YQc09RewGOXDTu 4ER3gjp7FgJxeyjrfWdlW1zjczTFbvtKpcE6PxPhhlpv8/Bj/P6XqowkC5JrJlld8eC0 TsPvv3yC25yHXdjpah0V7qzEHwmJI/2mHO210EXlWyPTX7PTx1T8IOoUeiFGRwUQ91zT OiN6of/gvA1fPjDj0OMO0qrPdczfvSzQMxxP55YHpxbflb8YzL1I3S6Q4XtZUSormpcu wnCOmM0ZeLuV7PATWdBukKY8nUbZDS8DJ3CrMZfEA0D6LGNVG9GAbTYNT8SkSY8xLX0c /jOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TVeQLwuN; 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=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g13-20020a056402180d00b004a21d031559si1975263edy.476.2023.02.03.01.58.35; Fri, 03 Feb 2023 01:58:58 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=TVeQLwuN; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233019AbjBCJn6 (ORCPT + 99 others); Fri, 3 Feb 2023 04:43:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232895AbjBCJns (ORCPT ); Fri, 3 Feb 2023 04:43:48 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C2545FCB for ; Fri, 3 Feb 2023 01:43:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675417379; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tHFJYodS+GlZliPPBpSywnTgXG8QiYZdzMEcCQFBMZk=; b=TVeQLwuNHIN3bIhtm+Qtp+WGfLlc/QRbK0VtNmVC23M9VlmI0F40Jwf48ACVKao9jR9Wt4 UGCQWFDuH66LL8Q8d9hDqjxCTSoVmMll8qu2kSIvhjnpmyybGGKG/M/LxNny7CbLcUsoOJ Pc+SqaZi7L9x4Tkpr1dSPUFvweHKQMQ= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-477-JjRiMZkKNgqIaOgbneMQ2A-1; Fri, 03 Feb 2023 04:42:56 -0500 X-MC-Unique: JjRiMZkKNgqIaOgbneMQ2A-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B3DB029AB3F7; Fri, 3 Feb 2023 09:42:55 +0000 (UTC) Received: from thuth.com (unknown [10.39.192.204]) by smtp.corp.redhat.com (Postfix) with ESMTP id E9C46408573E; Fri, 3 Feb 2023 09:42:52 +0000 (UTC) From: Thomas Huth To: kvm@vger.kernel.org, Paolo Bonzini , Sean Christopherson Cc: kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm-riscv@lists.infradead.org, Marc Zyngier , James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , David Hildenbrand , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 5/7] KVM: s390: Use "int" as return type for kvm_s390_get/set_skeys() Date: Fri, 3 Feb 2023 10:42:28 +0100 Message-Id: <20230203094230.266952-6-thuth@redhat.com> In-Reply-To: <20230203094230.266952-1-thuth@redhat.com> References: <20230203094230.266952-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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?1756803460285091214?= X-GMAIL-MSGID: =?utf-8?q?1756803460285091214?= These two functions only return normal integers, so it does not make sense to declare the return type as "long" here. Signed-off-by: Thomas Huth Reviewed-by: Claudio Imbrenda --- arch/s390/kvm/kvm-s390.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index e4890e04b210..8ad1972b8a73 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -1992,7 +1992,7 @@ static int kvm_s390_vm_has_attr(struct kvm *kvm, struct kvm_device_attr *attr) return ret; } -static long kvm_s390_get_skeys(struct kvm *kvm, struct kvm_s390_skeys *args) +static int kvm_s390_get_skeys(struct kvm *kvm, struct kvm_s390_skeys *args) { uint8_t *keys; uint64_t hva; @@ -2040,7 +2040,7 @@ static long kvm_s390_get_skeys(struct kvm *kvm, struct kvm_s390_skeys *args) return r; } -static long kvm_s390_set_skeys(struct kvm *kvm, struct kvm_s390_skeys *args) +static int kvm_s390_set_skeys(struct kvm *kvm, struct kvm_s390_skeys *args) { uint8_t *keys; uint64_t hva;