Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4479863imm; Mon, 11 Jun 2018 13:04:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJlfyo8BodvvKAV3wlalOn+JSyWiRiCXdzcyrlU01W3jqQdgwH8JmVUiXiTNE9vL35DrhZ+ X-Received: by 2002:a17:902:2c83:: with SMTP id n3-v6mr587659plb.211.1528747461420; Mon, 11 Jun 2018 13:04:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528747461; cv=none; d=google.com; s=arc-20160816; b=vDMNH1ekO79dHizGAS+VfcRJAvOXZY1s1BWpk2irTFpHLe39XrQ/iICuS7rOMEEniH p9c2/yLuliytJ88mz8htoNUako6vhD4ympI6UIyQkjPw8fcfIKBhKHEwqldbquRFbzsd 1Oi8/dCRsi7fQfXKJB++S9epp9sSin46vIOylqZIq664kE9Cu2JQyu8lHkQtqzERDtbd YG0n9MVckYXDx0EJvr0geqA/KirxiNArCnzWYtSzDNy2LS3R4Ho6iR3Bd5usFl2rb894 PTgh4LBWamuSkCRYqj/OO6cNGtbbjz8qLiHYb8H8RhsrsLvekwMLcEKocDI0RrvTMcX4 qF2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=X2hLEhf61E8TNoM8JyZCeslkEPZdJuF3n+7rqdu1BKw=; b=Y1MAO5c0NsCdYtn88dsgI9qJ7ImC6T91ZasmQCnu3qFBxxVKyScVCU8Qs8WwCjJRl8 XD3rF/dgJpXMwE9tM3BqhSwszKC6vqqousvYq8ARZqWAQDcegK2tILGwuPaB4FeJEEkJ iOf8gJEPYEClzx0hbCeD7gYAkLm5xyIMbQ/q4wzvkSohhCcuoiVfjqto5e6UUio6asUX ggxGOQYYWsxXk9Fjf22l+mkSUL63vsjwQ5yc4igS+lhzViTOH7koTsMBWGzrd/QUJjWO r1ofHTqdnMCJX8CRXen0ZJ4qmRBSQlO4ZH3UtXZ3WnSDC9Jwi7jCW7KEFPG0ettAqEji FScA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LE+Rd43c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y20-v6si36318358plp.267.2018.06.11.13.04.07; Mon, 11 Jun 2018 13:04:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LE+Rd43c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933980AbeFKTjo (ORCPT + 99 others); Mon, 11 Jun 2018 15:39:44 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:41979 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932823AbeFKTjm (ORCPT ); Mon, 11 Jun 2018 15:39:42 -0400 Received: by mail-pf0-f195.google.com with SMTP id a11-v6so10770836pff.8; Mon, 11 Jun 2018 12:39:42 -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=X2hLEhf61E8TNoM8JyZCeslkEPZdJuF3n+7rqdu1BKw=; b=LE+Rd43ci7ruw1AOF07ns62gSzUjqZVcrXw2tbfJ1fXyI6g7In9Zi37rN5rx/CsS6/ D6EviHfuN/lEu9ygv6QMfG89QwQviR5rWpcxXgOcMx50wr1UIfGaTq1dClMcbukv4BQp fb/6S9TFfrFM0O2D9WJpd3WOS62SwAiecqqbePUbp5b9HpFdZTG0lv3CRW1FBcAOU3+S s6vKp/SRy5PXcxEkiEarr1iToeiEUi/f2vfqVd6s9qQrCStVluKmO44pDS1dDFcdu5mk 4DV4WLj7TM2PGRQXM0W7wy/dPccsv2/qrnMEZvpO9ztmRQ/3FxpWfdIlMTCEMRs95K+S KV0w== 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=X2hLEhf61E8TNoM8JyZCeslkEPZdJuF3n+7rqdu1BKw=; b=Dtal2Vs9wBV+PVzlw0WTW6hSVe44l+6yIPnQxqUe3PLJL8vn+RzOUBrG9yKV1t+sQW 3sQUIV5jmb70vzSGkiRHrnh2uJOsDjBsdIEvrIHCGWCxwswrDwMdMiyCwuNAw0kc1lpQ UAMgYxkLQzUJq4MAYTd1bDkSB7/+V/cnwW2v9ZmZjUk1xDKhC2gR7aDpmClUBaGnCdo7 CGlEdAdPpclTlvBglpDHMhYAz9/8YMlRTOftSdiLFSGC9UQj/FcsAFw5jfthjh1wD+/H 9W8f3I2UTa150LYXMrUC6+DTnhxJw1+5Ic5FZIFiS31ETAZP7jsNxQmn+ZIBeZ1UmSss MR/w== X-Gm-Message-State: APt69E0A3OiClL8g5fyEOyzVpvaIP6lE2m1BA1I/QwTD+QfkwIRyuSE/ R/MfJjRtEsVzbPv/NQcgWJE= X-Received: by 2002:a63:6e4e:: with SMTP id j75-v6mr424089pgc.125.1528745982239; Mon, 11 Jun 2018 12:39:42 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([183.82.16.65]) by smtp.gmail.com with ESMTPSA id p1-v6sm9402809pfh.58.2018.06.11.12.39.39 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Jun 2018 12:39:40 -0700 (PDT) Date: Tue, 12 Jun 2018 01:12:04 +0530 From: Souptick Joarder To: willy@infradead.org, manoj@linux.vnet.ibm.com, mrochs@linux.vnet.ibm.com, ukrishn@linux.vnet.ibm.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, sabyasachi.linux@gmail.com, brajeswar.linux@gmail.com Subject: [PATCH] scsi: cxlflash: Change return type for fault handler Message-ID: <20180611194204.GA18687@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Ref-> commit 1c8f422059ae ("mm: change return type to vm_fault_t") Signed-off-by: Souptick Joarder --- drivers/scsi/cxlflash/superpipe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/cxlflash/superpipe.c b/drivers/scsi/cxlflash/superpipe.c index 2fe79df..a4e4c50 100644 --- a/drivers/scsi/cxlflash/superpipe.c +++ b/drivers/scsi/cxlflash/superpipe.c @@ -1087,7 +1087,7 @@ static struct page *get_err_page(struct cxlflash_cfg *cfg) * * Return: 0 on success, VM_FAULT_SIGBUS on failure */ -static int cxlflash_mmap_fault(struct vm_fault *vmf) +static vm_fault_t cxlflash_mmap_fault(struct vm_fault *vmf) { struct vm_area_struct *vma = vmf->vma; struct file *file = vma->vm_file; @@ -1098,7 +1098,7 @@ static int cxlflash_mmap_fault(struct vm_fault *vmf) struct ctx_info *ctxi = NULL; struct page *err_page = NULL; enum ctx_ctrl ctrl = CTX_CTRL_ERR_FALLBACK | CTX_CTRL_FILE; - int rc = 0; + vm_fault_t rc = 0; int ctxid; ctxid = cfg->ops->process_element(ctx); @@ -1138,7 +1138,7 @@ static int cxlflash_mmap_fault(struct vm_fault *vmf) out: if (likely(ctxi)) put_context(ctxi); - dev_dbg(dev, "%s: returning rc=%d\n", __func__, rc); + dev_dbg(dev, "%s: returning rc=%x\n", __func__, rc); return rc; err: -- 1.9.1