Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4330236pxv; Tue, 27 Jul 2021 04:57:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEQ9oew1NVQTMoujUrgSLvIiBq3PspwZfGNy32XVFOboZ0AhGhPB2gjL01sXhgdt6q8hCH X-Received: by 2002:a05:6e02:602:: with SMTP id t2mr16669003ils.118.1627387027626; Tue, 27 Jul 2021 04:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627387027; cv=none; d=google.com; s=arc-20160816; b=OOoaCf4yNW7a6UbfN1hJbNOo+lSJQtVRrJdnJk7EzP8nFlmZHZhobHWDwY7KT7Svj3 Je4YjLK/9KHE3zLc56PqGv8ZWcofiulxqQOiaVuLZNKwd1FaQz9234kHSSFJ7sq91/9g yzZgaNgxNRF0kQjJQLx6vJlpIZrjSKE9T434/iwnRKX6Hkdcw0v5g2tP0ANJI0uZYaYC 1jNsmYrgWi1N70gbFr84CwvZNQzDz11j1n1ss5O/aubFfbb4v0X2dZp6HyAEm00VIyp2 rGEkdCsCCEbifk1I08el+tu6ntY981kTf6TgFurUH6Vta8+UK3qrGfBQGPBjXd8cC7wi qHow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xGmRZzizcfQYFWuVgpIlcNdw/vWl+k7h2lbS4vofnJw=; b=xlJh2sT1Q5Jbef6V1Ok596ZmDE1NrrL3NzccvRzlIPcnddSfLZnqAiByGLpzfvjx8D b/ekIc92L602hDuYqHIKAiSLci0Nxto5UtJdPFURok1bRwggsTF9n1r8OfzRJLKiWAQJ 0+HAbyv/gkLpf2wbka+dUz9mWQGriQP1WTL2+hRg6msI5rAM0XDTtCdEEKgO8iqYiZN0 lEnMVov3VFxmgvtDhuoLrM4fTZXMWee7o1nSon79tDLWgdDArFHfE1gIzBhqEXkN9Io+ 1lTacHw2HrLwVw/Y71EFv2umGynQ/B2lZGg75gIcGPx0c6MifhhqprhoqBCYEGwMl1OY U0sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Ni4l0KC2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si3077202iog.8.2021.07.27.04.56.55; Tue, 27 Jul 2021 04:57:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Ni4l0KC2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236436AbhG0Lzq (ORCPT + 99 others); Tue, 27 Jul 2021 07:55:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231873AbhG0Lzp (ORCPT ); Tue, 27 Jul 2021 07:55:45 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD889C061757 for ; Tue, 27 Jul 2021 04:55:44 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id c18so12025042qke.2 for ; Tue, 27 Jul 2021 04:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xGmRZzizcfQYFWuVgpIlcNdw/vWl+k7h2lbS4vofnJw=; b=Ni4l0KC28YLJ0zBw4u5zCVT+a0uTq1NH0NX62EZdIAcRxNlVDKkSFtuxBISrSsV2qh LMpneYo5qc3DDIvftUiLHYCPBnxnxtTmdreqSCM0yUKYPY/0pgOvq2zUn09d6N0fc5Cm bhqQXSrXCXWE+GkrWyF17Zh0mdUMjxPmDr2LgGOMKuNz5bRUFPOEjXyOq0+9b7Dav1cE e1vj3HWYddD3EQ8J9DpKYImJheQH8FlLujgHc4r63ggQgvGx9jxszU2TcSARFEDLYD8s k/MAe/n/xSSZfft0KE80hVZL/0K1VBzEBeE/0Chf/UbwYimioAmIODew4HbT5td5qNWZ RLYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xGmRZzizcfQYFWuVgpIlcNdw/vWl+k7h2lbS4vofnJw=; b=BQxfdt9yMPC+KgL1P3VJHSaG34XX8nnVi+i4Vz3NIoet82lpTcwxxbIfIGdo6u+iUJ 2seukzVFYEkfj+ph+0FZ3+IpY647ADVtrLGNAqlt+28TC0EDyp7VDdC5HPqyPxmn2U2v CVQX/CQpAc9XH5cUk5n4V7Q607F7cI+7J4u4zMT5Nsx9WPcF8mj1Z06yzSiMESPmNrfg V+gD4ByutDt0tZ+pJjsdS/oMLJB8cul3EnK78wjqNLEOP0oTWgNnYauk/W52KoU03TbG wNUjpbCJ7v4zgdgc6aAZidPWcC+F95ICtdhoj/tk6sk7jDQhFGGx4YTwpYSLSQBkYg7J fAyg== X-Gm-Message-State: AOAM531V8vRbUxkehcTdHe2RXP+psziNh8uG2CuYnh0nyvbF+Q4HXj1F bqv2qRfc9YHiWGQq0s8VvkowxQ== X-Received: by 2002:a37:9986:: with SMTP id b128mr22397903qke.485.1627386944024; Tue, 27 Jul 2021 04:55:44 -0700 (PDT) Received: from ziepe.ca ([142.162.113.129]) by smtp.gmail.com with ESMTPSA id u19sm1215976qtx.48.2021.07.27.04.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 04:55:43 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1m8LgU-0090AO-LY; Tue, 27 Jul 2021 08:55:42 -0300 Date: Tue, 27 Jul 2021 08:55:42 -0300 From: Jason Gunthorpe To: Cai Huoqing Cc: alex.williamson@redhat.com, cohuck@redhat.com, zhenyuw@linux.intel.com, swee.yee.fonn@intel.com, hkallweit1@gmail.com, fred.gao@intel.com, mjrosato@linux.ibm.com, yi.l.liu@intel.com, mgurtovoy@nvidia.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] vfio/pci: use "ssize_t" as a return value instead of "size_t" Message-ID: <20210727115542.GD543798@ziepe.ca> References: <20210727032433.457-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210727032433.457-1-caihuoqing@baidu.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 27, 2021 at 11:24:33AM +0800, Cai Huoqing wrote: > should use ssize_t when it returns error code and size_t > > Signed-off-by: Cai Huoqing > --- > drivers/vfio/pci/vfio_pci_igd.c | 4 ++-- > drivers/vfio/pci/vfio_pci_private.h | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) This is a dup of this patch: https://lore.kernel.org/kvm/0-v3-5db12d1bf576+c910-vfio_rw_jgg@nvidia.com/ Jason