From patchwork Sat Apr 14 18:47:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10341393 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 C24FC602C2 for ; Sat, 14 Apr 2018 18:45:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFE2928AC7 for ; Sat, 14 Apr 2018 18:45:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A26A728ACA; Sat, 14 Apr 2018 18:45:52 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 4CAB028AC7 for ; Sat, 14 Apr 2018 18:45:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751624AbeDNSpv (ORCPT ); Sat, 14 Apr 2018 14:45:51 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35572 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751590AbeDNSpu (ORCPT ); Sat, 14 Apr 2018 14:45:50 -0400 Received: by mail-pf0-f195.google.com with SMTP id u86so8591510pfd.2 for ; Sat, 14 Apr 2018 11:45:50 -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=kKcw0YvVGK+dtMH5DCM5NiSGjI4ONgtlf1JiackF0Dg=; b=Z1H4ZAZY3S7gCYTn1M4YRAimiFbqc1YQXBoj3Up5XqTFUQPF9zHMQqd5RAdyakpvR6 7HLFKpfxwXFRtjlOVdOI9thDk1fvlsJbts8rlNqAWgove2jSOj1fJY5RI5M1eaeC9j3d yXdQqY5R8GbbtDkbkl81UqDE9dQcuTfbTbD11ik5UQoxTtvb12qxVYkNqt4VTjQ2rrKE WSt68uvc5oewlzAs/k+Nu+XYwr/SV+xovMNugoSLW2FZdvYOXAEwm6LSighYuiyt0b2d ew0HY/U1vBp7ZHji89xjB2CiaiK3b2iOWctoq2HhP2XVAOa55MMbz3HO9YzcdFocqymA 85fQ== 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=kKcw0YvVGK+dtMH5DCM5NiSGjI4ONgtlf1JiackF0Dg=; b=dTy3qgCR4t9lHpX7WTeCxoI5/WZ7TxbcSHjmZLHwH2suE99KmYvAWYQT6Jpv5X98ua qpk+SSKTVJBMX0VoMggrDj8H4x7C8TxMt1qymOjFC/ptmidehgqY4aHWKZ3pGA+CJW+6 ibNXbBL+kmOW9K7wFUVb/OiQ/WDVzGf8SQkEusMHK4EQxmJBDcbQY93mB6AnTVmkhODS jwrgXFjFgr5/MpYGyehUgbsWXVb6sBPxM+I1fNdeAFA5sW0JmI+OGPu1BYDhO3NUvL/9 ZEuVEuNHtajyi+kfQWISodRybGaHglBz0LGzWJ2SU/GYVnexjwSZLm27Xj4LNSJ+w00n OYBA== X-Gm-Message-State: ALQs6tBmob1go3+OYbXsM/78JkdbdoXl+TOy2n0M1EWdFXNc+vzdEmg2 ahQn+RJIIiU/ThmNRmknUfliJw== X-Google-Smtp-Source: AIpwx4/Jg2EjzlV/tZVubcNef+rrmDxfykDhqaYRF/wqeJ86r0LHnMYlNGsM3HfIsSvyGJbNL8ihqQ== X-Received: by 10.99.142.66 with SMTP id k63mr4477186pge.278.1523731549413; Sat, 14 Apr 2018 11:45:49 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([49.205.218.216]) by smtp.gmail.com with ESMTPSA id k78sm23336119pfk.111.2018.04.14.11.45.47 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 14 Apr 2018 11:45:48 -0700 (PDT) Date: Sun, 15 Apr 2018 00:17:41 +0530 From: Souptick Joarder To: dgilbert@interlog.com Cc: willy@infradead.org, linux-scsi@vger.kernel.org Subject: [PATCH] scsi: Change return type to vm_fault_t Message-ID: <20180414184741.GA19491@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@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 Acked-by: Douglas Gilbert --- drivers/scsi/sg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index c198b963..c2b7d34 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -1192,7 +1192,7 @@ static long sg_compat_ioctl(struct file *filp, unsigned int cmd_in, unsigned lon return fasync_helper(fd, filp, mode, &sfp->async_qp); } -static int +static vm_fault_t sg_vma_fault(struct vm_fault *vmf) { struct vm_area_struct *vma = vmf->vma;