From patchwork Sat Apr 14 18:55:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10341395 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4D378602C2 for ; Sat, 14 Apr 2018 18:54:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C66D28ACA for ; Sat, 14 Apr 2018 18:54:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EE5B28AC8; Sat, 14 Apr 2018 18:54:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B785228AC8 for ; Sat, 14 Apr 2018 18:54:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751253AbeDNSyH (ORCPT ); Sat, 14 Apr 2018 14:54:07 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:45209 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751154AbeDNSyH (ORCPT ); Sat, 14 Apr 2018 14:54:07 -0400 Received: by mail-pl0-f68.google.com with SMTP id k9-v6so3049736pll.12; Sat, 14 Apr 2018 11:54:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=8yv+kWwOLTHddD3LJEuOO9UMdVM1D/ujPSJnC1eonjc=; b=fuboc/Gs9ExAAjPri49UO7lgL9rlET635+pgfAJTOA4pcpDjSMs+m+CGZ3H4Ng6PRE 8gmGv/8j1CmgRoEfYXDZDdXWf3fyK8Zv+P+2ul5uGXLuTRjEcqiu3AIrCylYHV7c/73v 5aTsg3nNMV2d+iHX+n4sd2bX8GHJn+MTYH5BvL+TlR5xH+faImsLE7/M4peLiLWzEQBo shTgFWUXm0zKZx5X2yY2BIFrajMjduz9o3twSMn8Oi0aEhRW2n8uNemHWhbjqZNsmqyf laK3ZsNw+Hmc0v8lAMWC1XQE0Ezk7TWBDRnGV8AcoqRXT9d43mUSiWZiERS0MFCgNPMg slAQ== 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:mime-version :content-disposition:user-agent; bh=8yv+kWwOLTHddD3LJEuOO9UMdVM1D/ujPSJnC1eonjc=; b=k+ApDfWexH/hB/9nvGYUM1jykQKr848Px7hdM5/8DJF5SNLnpEIqVfQLlhj82Y0HCo ZTATdwHsfsECYT+h8DnIqPeUS4Suuys4MwoT5+CNf+yLVws3SvARJgYyUEG2/pXMzACc PiwmeyPkXAfmXZd9zAWmxYjke4ut1eay7uQ/cJDdcmLgjrC07hTT3M7JIBeRoVyX0fK6 KAACuoCmrhDkJO551CLPHchAze2TukT4R7YYtcCx89wGC5bH/mvfjiG8ZIbX9LEQRmBW sk8jRueuMYPcgnBircpefK3DcNoKOJ6MRIiK/7xU3ofpH0LddpTcq6DbO/2zK9Iw+0OO PnlQ== X-Gm-Message-State: ALQs6tA/L8qj5Nk6/AAWoUbk8dNFL/FPYAuuGlvZYkA1DzK25RhlK8KK TaSVGa1+1dr14ZSbphwS6JEX+w== X-Google-Smtp-Source: AIpwx4/Dw/h1pkO3f16S7IkdpHR6Is4didarGCA9QtfPR+daiGbJ535pIDRXdjHBbFab78FgMT4HEQ== X-Received: by 2002:a17:902:3001:: with SMTP id u1-v6mr9629802plb.164.1523732045823; Sat, 14 Apr 2018 11:54:05 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([49.205.218.216]) by smtp.gmail.com with ESMTPSA id j10sm19302475pfj.1.2018.04.14.11.54.03 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 14 Apr 2018 11:54:04 -0700 (PDT) Date: Sun, 15 Apr 2018 00:25:57 +0530 From: Souptick Joarder To: nab@linux-iscsi.org, willy@infradead.org Cc: linux-scsi@vger.kernel.org, target-devel@vger.kernel.org Subject: [PATCH] target: Change return type to vm_fault_t Message-ID: <20180414185557.GA19545@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use new return type vm_fault_t for fault handler in struct vm_operations_struct. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- drivers/target/target_core_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index 4ad89ea..d6af292 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -1382,7 +1382,7 @@ static struct page *tcmu_try_get_block_page(struct tcmu_dev *udev, uint32_t dbi) return page; } -static int tcmu_vma_fault(struct vm_fault *vmf) +static vm_fault_t tcmu_vma_fault(struct vm_fault *vmf) { struct tcmu_dev *udev = vmf->vma->vm_private_data; struct uio_info *info = &udev->uio_info;