nvdimm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] device-dax: Convert variable to vm_fault_t type
@ 2018-08-30 15:38 Souptick Joarder
  2018-08-30 15:40 ` Souptick Joarder
  0 siblings, 1 reply; 2+ messages in thread
From: Souptick Joarder @ 2018-08-30 15:38 UTC (permalink / raw)
  To: akpm; +Cc: linux-nvdimm, linux-kernel, willy, zwisler

As part of commit 226ab561075f ("device-dax: Convert to
vmf_insert_mixed and vm_fault_t") in 4.19-rc1,
'rc' was not converted to vm_fault_t. Now converted.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
---
 drivers/dax/device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/dax/device.c b/drivers/dax/device.c
index 6fd4608..bbe4d72 100644
--- a/drivers/dax/device.c
+++ b/drivers/dax/device.c
@@ -392,7 +392,8 @@ static vm_fault_t dev_dax_huge_fault(struct vm_fault *vmf,
 {
 	struct file *filp = vmf->vma->vm_file;
 	unsigned long fault_size;
-	int rc, id;
+	vm_fault_t rc = VM_FAULT_SIGBUS;
+	int id;
 	pfn_t pfn;
 	struct dev_dax *dev_dax = filp->private_data;
 
-- 
1.9.1

_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-30 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-30 15:38 [PATCH] device-dax: Convert variable to vm_fault_t type Souptick Joarder
2018-08-30 15:40 ` Souptick Joarder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).