Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp521610pxx; Wed, 28 Oct 2020 10:12:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFk6d2J7kNKfB0a7R2AyYXTRsDQ/VhgBl0ih7pIdq3GOCo151ZVkVaMdC9ZljNSBeIcql4 X-Received: by 2002:aa7:d813:: with SMTP id v19mr9053783edq.333.1603905168721; Wed, 28 Oct 2020 10:12:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603905168; cv=none; d=google.com; s=arc-20160816; b=B9kGfMt162uw+EgysAg1G/1IMUVagd30ZZ3h+cEkFBvdYpK1YYthLyHIjx+tJQbQcw f4gMNgpzFLYyar09dZzBFS/MiPGr4V4l3/FccRK+gSljA36UwqjPuemKLeoVUbg1ig2c PRLnyiyiqglMxG5MZINu6fgs1CUdsOX5XWih/DjToq15OzdNjPYzNaIO+7bXEyTkLJma qhYIOjgaH47MXLfomHL6v+/FeY2hGD8MiQWIVvNDs9yggiSztpL9HR0Zqn3pBPKrelwJ cE1BgsjvTWYiFoE/yhj9ZP5HF5TbitLLjjXZ4cOZJd2T135Vec273IYgu5j1nQ4byfwe hMDw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yupSQqFkz5WAUKKtrWRD0DDj1QAPrPsl5MwKSoKEKms=; b=KGkpsEmmXRS7X3XtIEDX7i+piy4mA/6aOuhYbtw9h7eiaTsU3skJttnIXIs2JyVSd1 b1i890WMjEUasYXGFNNSfIAaeksQQ2KwDRyJGJnbjj7+PO7cYG7IHfBM0jScEweESt4q X2LfARa8JNnvLQm+ql1EY4pdQXask16p9YarAGkesFfbriAQ7yjSRrJR4jTREYiIPASS EwteuZVlt/aC7Vm7IYYiaJDIr/5nfAImgya50KyYtXI50SUxj0YZrhyJcRLHqimRGkM2 Q64LnZido/Z2OZ2FWR7aHz7KlOub0v/fV8N0IDGMj6EhxdTipBvczqxgLMjWaNGbevrx 8Qpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=coevVYUS; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h20si3592583eja.402.2020.10.28.10.12.25; Wed, 28 Oct 2020 10:12:48 -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=@kernel.org header.s=default header.b=coevVYUS; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1820231AbgJ0ReD (ORCPT + 99 others); Tue, 27 Oct 2020 13:34:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:36862 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761043AbgJ0Ohp (ORCPT ); Tue, 27 Oct 2020 10:37:45 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 82E6D206B2; Tue, 27 Oct 2020 14:37:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809465; bh=KF/UDFN541tOWKaEbgbA8uhvSIsFQsIdC5JcpEVfUsE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=coevVYUSB0LyodNm/iO2LvSfcix/fCXgh96R+f1aIrds24qy91Hf1lTmVPjp8tF1w zUz0p+X3yHrOLjVKdv8xK9whMToJmW0Iyb+B70oHJIwMXD0iJnMfzWIBMSPqBjdAyY GloUUCi3LyTPDeniCOWn6KT0F1zfJcMjYaZbOIH4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Gal Pressman , Shiraz Saleem , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.4 205/408] RDMA/umem: Fix signature of stub ib_umem_find_best_pgsz() Date: Tue, 27 Oct 2020 14:52:23 +0100 Message-Id: <20201027135504.611607748@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jason Gunthorpe [ Upstream commit 61690d01db32eb1f94adc9ac2b8bb741d34e4671 ] The original function returns unsigned long and 0 on failure. Fixes: 4a35339958f1 ("RDMA/umem: Add API to find best driver supported page size in an MR") Link: https://lore.kernel.org/r/0-v1-982a13cc5c6d+501ae-fix_best_pgsz_stub_jgg@nvidia.com Reviewed-by: Gal Pressman Acked-by: Shiraz Saleem Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- include/rdma/ib_umem.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/rdma/ib_umem.h b/include/rdma/ib_umem.h index a91b2af64ec47..8e94279af47df 100644 --- a/include/rdma/ib_umem.h +++ b/include/rdma/ib_umem.h @@ -95,10 +95,11 @@ static inline int ib_umem_copy_from(void *dst, struct ib_umem *umem, size_t offs size_t length) { return -EINVAL; } -static inline int ib_umem_find_best_pgsz(struct ib_umem *umem, - unsigned long pgsz_bitmap, - unsigned long virt) { - return -EINVAL; +static inline unsigned long ib_umem_find_best_pgsz(struct ib_umem *umem, + unsigned long pgsz_bitmap, + unsigned long virt) +{ + return 0; } #endif /* CONFIG_INFINIBAND_USER_MEM */ -- 2.25.1