[linux-yocto] [PATCH 6/9] axxia: Update the VMFS Driver
Daniel Dragomir
daniel.dragomir at windriver.com
Thu Mar 9 08:22:27 PST 2017
From: John Jacques <john.jacques at intel.com>
Update the driver based on inode_change_ok() change.
Fix compiler warnings.
Signed-off-by: John Jacques <john.jacques at intel.com>
---
drivers/misc/axxia-oem.c | 14 +++++++-------
fs/vmfs/inode.c | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/misc/axxia-oem.c b/drivers/misc/axxia-oem.c
index 4db5c6c..f5846b8 100644
--- a/drivers/misc/axxia-oem.c
+++ b/drivers/misc/axxia-oem.c
@@ -57,7 +57,7 @@ invoke_oem_fn(struct oem_parameters *p)
"mov %x3, x3" : "=r" (p->reg0), "=r" (p->reg1),
"=r" (p->reg2), "=r" (p->reg3));
- return 0;
+ return;
}
/*
@@ -101,7 +101,7 @@ axxia_dspc_write(struct file *file, const char __user *buffer,
if (copy_from_user(input, buffer, count))
return -EFAULT;
- mask = kstrtoul(input, NULL, 0);
+ mask = kstrtoul(input, 0, 0);
axxia_dspc_set_state((unsigned int)mask);
return count;
@@ -154,7 +154,7 @@ axxia_actlr_el3_write(struct file *file, const char __user *buffer,
if (copy_from_user(input, buffer, count))
return -EFAULT;
- axxia_actlr_el3_set(kstrtoul(input, NULL, 0));
+ axxia_actlr_el3_set(kstrtoul(input, 0, 0));
return count;
}
@@ -206,7 +206,7 @@ axxia_actlr_el2_write(struct file *file, const char __user *buffer,
if (copy_from_user(input, buffer, count))
return -EFAULT;
- axxia_actlr_el2_set(kstrtoul(input, NULL, 0));
+ axxia_actlr_el2_set(kstrtoul(input, 0, 0));
return count;
}
@@ -267,7 +267,7 @@ axxia_dspc_set_state(unsigned long state)
if (0 != parameters.reg0)
pr_warn("Setting the DSP State Failed!\n");
- return 0;
+ return;
}
EXPORT_SYMBOL(axxia_dspc_set_state);
@@ -308,7 +308,7 @@ axxia_actlr_el3_set(unsigned long input)
if (0 != parameters.reg0)
pr_warn("Setting ACTLR_EL3 Failed!\n");
- return 0;
+ return;
}
EXPORT_SYMBOL(axxia_actlr_el3_set);
@@ -349,7 +349,7 @@ axxia_actlr_el2_set(unsigned long input)
if (0 != parameters.reg0)
pr_warn("Setting ACTLR_EL2 Failed!\n");
- return 0;
+ return;
}
EXPORT_SYMBOL(axxia_actlr_el2_set);
diff --git a/fs/vmfs/inode.c b/fs/vmfs/inode.c
index fec0a31..4cf1212 100644
--- a/fs/vmfs/inode.c
+++ b/fs/vmfs/inode.c
@@ -484,7 +484,7 @@ int vmfs_notify_change(struct dentry *dentry, struct iattr *attr)
if (error)
goto out;
- error = inode_change_ok(inode, attr);
+ error = setattr_prepare(dentry, attr);
if (error < 0)
goto out;
--
2.7.4
More information about the linux-yocto
mailing list