From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E4C6BC61DA4 for ; Fri, 3 Feb 2023 10:23:03 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4P7WvB2FLYz3f6Y for ; Fri, 3 Feb 2023 21:23:02 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=iGcWrv4W; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::1029; helo=mail-pj1-x1029.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=iGcWrv4W; dkim-atps=neutral Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4P7Wt96df7z3c83 for ; Fri, 3 Feb 2023 21:22:07 +1100 (AEDT) Received: by mail-pj1-x1029.google.com with SMTP id o16-20020a17090ad25000b00230759a8c06so1578385pjw.2 for ; Fri, 03 Feb 2023 02:22:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BC26glmyLYvqdRj/s/s6MK4qi5hy8JZOEYo3ZDI0Vnw=; b=iGcWrv4W143DbiJRKR8Be2u+UuFLvv+TMD04aaKkE8FyPZW/j/42Togzc26Of4xCHk L4O+J9J3KGooZvCPheaHtCVvhd+8yD7F+6cwfgRaYM7XlcjMHxjcBj+d00IuGOnZoxua p47HghzIR0V5V9BHB1MOTBO58vuNmWhvqwqTKzCWyKZoGTbMh0eeUZEg1LCG1i8w6yr+ rGoonbhjlDDP0EM8BSTnSmM8hJ6sGKjQQ8ZQlho2AVRiZ9i9GSJGVG8WpNzZ88bsOJib p3nxwmBfaPRdS2D7OrOB+MkhuKe20M4wZIzbxooQQ7YLHch4yOj2EJIoaSWTjBZnOEHA LYGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=BC26glmyLYvqdRj/s/s6MK4qi5hy8JZOEYo3ZDI0Vnw=; b=Te0Pzye3gRxRK3PiXhqOhTIw4YS4kuJ1ShxC6em+mxuqoWe4F2oj4vgzOEXGbNJQes ANBWmmdJYAlaoGpnjG/5rrIobZkLmkau8B3p0wbZdQWKlbVMEhHTY7tPJvaQz/tzthho tH41aoAuPf30KPc4AdyvxF/s1cndRhj8ASjhANN0rPrtUYVQ3EZjpNrecZirE715umfm VItHSZwkMdsaplBp1Ov4HyszyGeyyARF8PiKaJRdgRMeevS2dpjTXdPm6Ky3zRD0iN3B j8BW67SyhlMDSE5FlDUCl/FFOsS+7e/SIoMcmMz0YB9+FUkjMubXSlZWne/vTpGqWHz2 +u6A== X-Gm-Message-State: AO0yUKVuFi97e6NwCmtmJxa2FRySpr26yL0x9I9bZdSyU656lSrQIHJy WxhuG2W4sFr8qcBnFTgTRcA= X-Google-Smtp-Source: AK7set+WpN/kIwzQ9KpDMGx5dpl4PBMS/21AHFGf650c2cUKaoV8+4j20Irc5p0mFaig/53VJ2J67w== X-Received: by 2002:a05:6a20:a002:b0:bb:aabe:7a56 with SMTP id p2-20020a056a20a00200b000bbaabe7a56mr12482709pzj.58.1675419724901; Fri, 03 Feb 2023 02:22:04 -0800 (PST) Received: from localhost (193-116-117-77.tpgi.com.au. [193.116.117.77]) by smtp.gmail.com with ESMTPSA id l6-20020a639846000000b004768b74f208sm1233813pgo.4.2023.02.03.02.21.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Feb 2023 02:22:04 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 03 Feb 2023 20:21:55 +1000 Message-Id: Subject: Re: [PATCH 4/7] KVM: PPC: Standardize on "int" return types in the powerpc KVM code From: "Nicholas Piggin" To: "Thomas Huth" , , "Paolo Bonzini" , "Sean Christopherson" X-Mailer: aerc 0.13.0 References: <20230203094230.266952-1-thuth@redhat.com> <20230203094230.266952-5-thuth@redhat.com> In-Reply-To: <20230203094230.266952-5-thuth@redhat.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christian Borntraeger , Janosch Frank , David Hildenbrand , Marc Zyngier , Suzuki K Poulose , linux-kernel@vger.kernel.org, Oliver Upton , kvmarm@lists.linux.dev, James Morse , kvm-riscv@lists.infradead.org, Zenghui Yu , Claudio Imbrenda , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Fri Feb 3, 2023 at 7:42 PM AEST, Thomas Huth wrote: > Most functions that are related to kvm_arch_vm_ioctl() already use > "int" as return type to pass error values back to the caller. Some > outlier functions use "long" instead for no good reason (they do not > really require long values here). Let's standardize on "int" here to > avoid casting the values back and forth between the two types. > > Signed-off-by: Thomas Huth Thanks for the patch. It looks fine to me, it should be okay to go via Paolo's tree if he's going to take the series. Reviewed-by: Nicholas Piggin > --- > arch/powerpc/include/asm/kvm_ppc.h | 14 +++++++------- > arch/powerpc/kvm/book3s_64_mmu_hv.c | 14 +++++++------- > arch/powerpc/kvm/book3s_64_vio.c | 4 ++-- > arch/powerpc/kvm/book3s_hv.c | 6 +++--- > arch/powerpc/kvm/book3s_pr.c | 4 ++-- > 5 files changed, 21 insertions(+), 21 deletions(-)