Message ID | 20230208140105.655814-3-thuth@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3474802wrn; Wed, 8 Feb 2023 06:08:01 -0800 (PST) X-Google-Smtp-Source: AK7set9UilRW65UWSW2UteIjqKiFJ7vTyc/a8A9KKxgxCVDP9hUjukf2aJF1s5maESH/PqcUP4eT X-Received: by 2002:a17:903:182:b0:198:a5d9:f2fd with SMTP id z2-20020a170903018200b00198a5d9f2fdmr7933939plg.6.1675865281021; Wed, 08 Feb 2023 06:08:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675865281; cv=none; d=google.com; s=arc-20160816; b=Ke/ePNnVRNMVd3hkQG3syeYS5prya+FyE2xaPqj/zqRJpruExL/65DdmuWodwTJCt7 4FMfKtFiNv4/YdluKBFMR0AyInJEMAYeCvjCK44Q7YIeLP7XDS3nZSvNbhv5OrzWpKeu tmQcltyGhXC0M5UWKo5Rvr83voJDb6SQQP+nMMecgvQ5OU816uG32u0RSHlxCSOzdH1q YDoWjkASg40QMXbcQpEBRCDwX6XuCRLbac01xK6f0MwIhbsPO0SCxC2+UzAZA45ZC2mh SvuLT41izUb3PKe685aBtoOVkBmTCsv97cgiMz1FBYjoauu2Sxh4hh8QtNGtG1F5A/TJ S6ww== 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=4X4nxs/AN1rQvZNEYHxdhff0S/jWHe5xhYhoJC/1QMM=; b=fPZP7SixR8ORyivqkvmDTuZQEESUeHzxrDZg8/0Whyhf4Zx6foCp7LXWpBEuGWPtlx nljnCZvwqF/+NXfGxZpMiuACmxUXipiUR0K9BM0kwEOYj7hvqC0r3wEjbW6fvX2yR+1M WM9xxgAnxNdOSOmXhN/MhD83IZZYwkTxiFLMWJsbZ+n6r24Hiu7Z4rh6jzPIW7eFAzdG +PFITojlSNn08pbiamfq9NM6ouE/Y3socE3QgphQvX1UHXVdh+efoZPIMJDT6PQApkmk GI0mCd2ANmfjWSj+IibXwAQHSX/G+DheK3YYWUgeHRwsKH22zgMrm+LQ4+xf47J4ZYyY Dlxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hCUN2Uko; 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 c9-20020a170903234900b001968a5d4107si19939158plh.398.2023.02.08.06.07.43; Wed, 08 Feb 2023 06:08:01 -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=hCUN2Uko; 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 S231328AbjBHOC2 (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Wed, 8 Feb 2023 09:02:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230462AbjBHOCV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Feb 2023 09:02:21 -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 5E8F3CDD1 for <linux-kernel@vger.kernel.org>; Wed, 8 Feb 2023 06:01:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675864893; 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=4X4nxs/AN1rQvZNEYHxdhff0S/jWHe5xhYhoJC/1QMM=; b=hCUN2UkoLVPZn0mrYopk5vX+UyFzmMQp7r/Enqn1knnVtqxdjiID0QkprulfFYrZkB/HlJ BN1gq7lpUm0atyc194gvIZQzEVK24QbaxmX4SK3XzwWAFL2b4qIFKmxc4As+550sJ7zi5x IW+DEQNGvTfG3tFh23dN9ZxOy5MvktE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-231-0le-469XNuOSE0B5UwIJIw-1; Wed, 08 Feb 2023 09:01:30 -0500 X-MC-Unique: 0le-469XNuOSE0B5UwIJIw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5C6C6823E1B; Wed, 8 Feb 2023 14:01:27 +0000 (UTC) Received: from thuth.com (unknown [10.39.193.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id 464F31415113; Wed, 8 Feb 2023 14:01:24 +0000 (UTC) From: Thomas Huth <thuth@redhat.com> To: kvm@vger.kernel.org, Paolo Bonzini <pbonzini@redhat.com>, Sean Christopherson <seanjc@google.com> Cc: kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm-riscv@lists.infradead.org, Marc Zyngier <maz@kernel.org>, James Morse <james.morse@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Oliver Upton <oliver.upton@linux.dev>, Zenghui Yu <yuzenghui@huawei.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Janosch Frank <frankja@linux.ibm.com>, David Hildenbrand <david@redhat.com>, Gavin Shan <gshan@redhat.com>, Steven Price <steven.price@arm.com>, Cornelia Huck <cohuck@redhat.com> Subject: [PATCH v2 2/6] KVM: s390: Use "int" as return type for kvm_s390_get/set_skeys() Date: Wed, 8 Feb 2023 15:01:01 +0100 Message-Id: <20230208140105.655814-3-thuth@redhat.com> In-Reply-To: <20230208140105.655814-1-thuth@redhat.com> References: <20230208140105.655814-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 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=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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757272112649845966?= X-GMAIL-MSGID: =?utf-8?q?1757272112649845966?= |
Series |
KVM: Standardize on "int" return types instead of "long"
|
|
Commit Message
Thomas Huth
Feb. 8, 2023, 2:01 p.m. UTC
These two functions only return normal integers, so it does not make sense to declare the return type as "long" here. Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com> --- 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;