aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-08 15:19:57 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-08 15:19:57 -0500
commit972b2c719990f91eb3b2310d44ef8a2d38955a14 (patch)
treeb25a250ec5bec4b7b6355d214642d8b57c5cab32 /drivers/staging
parent02550d61f49266930e674286379d3601006b2893 (diff)
parentc3aa077648e147783a7a53b409578234647db853 (diff)
Merge branch 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
* 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (165 commits) reiserfs: Properly display mount options in /proc/mounts vfs: prevent remount read-only if pending removes vfs: count unlinked inodes vfs: protect remounting superblock read-only vfs: keep list of mounts for each superblock vfs: switch ->show_options() to struct dentry * vfs: switch ->show_path() to struct dentry * vfs: switch ->show_devname() to struct dentry * vfs: switch ->show_stats to struct dentry * switch security_path_chmod() to struct path * vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb vfs: trim includes a bit switch mnt_namespace ->root to struct mount vfs: take /proc/*/mounts and friends to fs/proc_namespace.c vfs: opencode mntget() mnt_set_mountpoint() vfs: spread struct mount - remaining argument of next_mnt() vfs: move fsnotify junk to struct mount vfs: move mnt_devname vfs: move mnt_list to struct mount vfs: switch pnode.h macros to struct mount * ...
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/iio/adc/ad7192.c4
-rw-r--r--drivers/staging/iio/adc/ad7606_core.c4
-rw-r--r--drivers/staging/iio/dac/ad5446.c4
-rw-r--r--drivers/staging/iio/dds/ad9834.c4
-rw-r--r--drivers/staging/pohmelfs/dir.c11
-rw-r--r--drivers/staging/pohmelfs/inode.c9
-rw-r--r--drivers/staging/pohmelfs/netfs.h2
7 files changed, 19 insertions, 19 deletions
diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c
index a6a4a4e1f18..797e65cd03e 100644
--- a/drivers/staging/iio/adc/ad7192.c
+++ b/drivers/staging/iio/adc/ad7192.c
@@ -838,14 +838,14 @@ static struct attribute *ad7192_attributes[] = {
838 NULL 838 NULL
839}; 839};
840 840
841static mode_t ad7192_attr_is_visible(struct kobject *kobj, 841static umode_t ad7192_attr_is_visible(struct kobject *kobj,
842 struct attribute *attr, int n) 842 struct attribute *attr, int n)
843{ 843{
844 struct device *dev = container_of(kobj, struct device, kobj); 844 struct device *dev = container_of(kobj, struct device, kobj);
845 struct iio_dev *indio_dev = dev_get_drvdata(dev); 845 struct iio_dev *indio_dev = dev_get_drvdata(dev);
846 struct ad7192_state *st = iio_priv(indio_dev); 846 struct ad7192_state *st = iio_priv(indio_dev);
847 847
848 mode_t mode = attr->mode; 848 umode_t mode = attr->mode;
849 849
850 if ((st->devid != ID_AD7195) && 850 if ((st->devid != ID_AD7195) &&
851 (attr == &iio_dev_attr_ac_excitation_en.dev_attr.attr)) 851 (attr == &iio_dev_attr_ac_excitation_en.dev_attr.attr))
diff --git a/drivers/staging/iio/adc/ad7606_core.c b/drivers/staging/iio/adc/ad7606_core.c
index 54423ab196f..e3ecd3d2ef3 100644
--- a/drivers/staging/iio/adc/ad7606_core.c
+++ b/drivers/staging/iio/adc/ad7606_core.c
@@ -205,14 +205,14 @@ static struct attribute *ad7606_attributes[] = {
205 NULL, 205 NULL,
206}; 206};
207 207
208static mode_t ad7606_attr_is_visible(struct kobject *kobj, 208static umode_t ad7606_attr_is_visible(struct kobject *kobj,
209 struct attribute *attr, int n) 209 struct attribute *attr, int n)
210{ 210{
211 struct device *dev = container_of(kobj, struct device, kobj); 211 struct device *dev = container_of(kobj, struct device, kobj);
212 struct iio_dev *indio_dev = dev_get_drvdata(dev); 212 struct iio_dev *indio_dev = dev_get_drvdata(dev);
213 struct ad7606_state *st = iio_priv(indio_dev); 213 struct ad7606_state *st = iio_priv(indio_dev);
214 214
215 mode_t mode = attr->mode; 215 umode_t mode = attr->mode;
216 216
217 if (!(gpio_is_valid(st->pdata->gpio_os0) && 217 if (!(gpio_is_valid(st->pdata->gpio_os0) &&
218 gpio_is_valid(st->pdata->gpio_os1) && 218 gpio_is_valid(st->pdata->gpio_os1) &&
diff --git a/drivers/staging/iio/dac/ad5446.c b/drivers/staging/iio/dac/ad5446.c
index ac3bc5f52dc..ec701e939b6 100644
--- a/drivers/staging/iio/dac/ad5446.c
+++ b/drivers/staging/iio/dac/ad5446.c
@@ -197,14 +197,14 @@ static struct attribute *ad5446_attributes[] = {
197 NULL, 197 NULL,
198}; 198};
199 199
200static mode_t ad5446_attr_is_visible(struct kobject *kobj, 200static umode_t ad5446_attr_is_visible(struct kobject *kobj,
201 struct attribute *attr, int n) 201 struct attribute *attr, int n)
202{ 202{
203 struct device *dev = container_of(kobj, struct device, kobj); 203 struct device *dev = container_of(kobj, struct device, kobj);
204 struct iio_dev *indio_dev = dev_get_drvdata(dev); 204 struct iio_dev *indio_dev = dev_get_drvdata(dev);
205 struct ad5446_state *st = iio_priv(indio_dev); 205 struct ad5446_state *st = iio_priv(indio_dev);
206 206
207 mode_t mode = attr->mode; 207 umode_t mode = attr->mode;
208 208
209 if (!st->chip_info->store_pwr_down && 209 if (!st->chip_info->store_pwr_down &&
210 (attr == &iio_dev_attr_out_voltage0_powerdown.dev_attr.attr || 210 (attr == &iio_dev_attr_out_voltage0_powerdown.dev_attr.attr ||
diff --git a/drivers/staging/iio/dds/ad9834.c b/drivers/staging/iio/dds/ad9834.c
index 2b31e352482..51fda6f6981 100644
--- a/drivers/staging/iio/dds/ad9834.c
+++ b/drivers/staging/iio/dds/ad9834.c
@@ -281,14 +281,14 @@ static struct attribute *ad9834_attributes[] = {
281 NULL, 281 NULL,
282}; 282};
283 283
284static mode_t ad9834_attr_is_visible(struct kobject *kobj, 284static umode_t ad9834_attr_is_visible(struct kobject *kobj,
285 struct attribute *attr, int n) 285 struct attribute *attr, int n)
286{ 286{
287 struct device *dev = container_of(kobj, struct device, kobj); 287 struct device *dev = container_of(kobj, struct device, kobj);
288 struct iio_dev *indio_dev = dev_get_drvdata(dev); 288 struct iio_dev *indio_dev = dev_get_drvdata(dev);
289 struct ad9834_state *st = iio_priv(indio_dev); 289 struct ad9834_state *st = iio_priv(indio_dev);
290 290
291 mode_t mode = attr->mode; 291 umode_t mode = attr->mode;
292 292
293 if (((st->devid == ID_AD9833) || (st->devid == ID_AD9837)) && 293 if (((st->devid == ID_AD9833) || (st->devid == ID_AD9837)) &&
294 ((attr == &iio_dev_attr_dds0_out1_enable.dev_attr.attr) || 294 ((attr == &iio_dev_attr_dds0_out1_enable.dev_attr.attr) ||
diff --git a/drivers/staging/pohmelfs/dir.c b/drivers/staging/pohmelfs/dir.c
index 7598e77672a..2ee4491b713 100644
--- a/drivers/staging/pohmelfs/dir.c
+++ b/drivers/staging/pohmelfs/dir.c
@@ -590,13 +590,13 @@ out:
590 * during writeback for given inode. 590 * during writeback for given inode.
591 */ 591 */
592struct pohmelfs_inode *pohmelfs_create_entry_local(struct pohmelfs_sb *psb, 592struct pohmelfs_inode *pohmelfs_create_entry_local(struct pohmelfs_sb *psb,
593 struct pohmelfs_inode *parent, struct qstr *str, u64 start, int mode) 593 struct pohmelfs_inode *parent, struct qstr *str, u64 start, umode_t mode)
594{ 594{
595 struct pohmelfs_inode *npi; 595 struct pohmelfs_inode *npi;
596 int err = -ENOMEM; 596 int err = -ENOMEM;
597 struct netfs_inode_info info; 597 struct netfs_inode_info info;
598 598
599 dprintk("%s: name: '%s', mode: %o, start: %llu.\n", 599 dprintk("%s: name: '%s', mode: %ho, start: %llu.\n",
600 __func__, str->name, mode, start); 600 __func__, str->name, mode, start);
601 601
602 info.mode = mode; 602 info.mode = mode;
@@ -630,7 +630,8 @@ err_out_unlock:
630/* 630/*
631 * Create local object and bind it to dentry. 631 * Create local object and bind it to dentry.
632 */ 632 */
633static int pohmelfs_create_entry(struct inode *dir, struct dentry *dentry, u64 start, int mode) 633static int pohmelfs_create_entry(struct inode *dir, struct dentry *dentry,
634 u64 start, umode_t mode)
634{ 635{
635 struct pohmelfs_sb *psb = POHMELFS_SB(dir->i_sb); 636 struct pohmelfs_sb *psb = POHMELFS_SB(dir->i_sb);
636 struct pohmelfs_inode *npi, *parent; 637 struct pohmelfs_inode *npi, *parent;
@@ -661,13 +662,13 @@ static int pohmelfs_create_entry(struct inode *dir, struct dentry *dentry, u64 s
661/* 662/*
662 * VFS create and mkdir callbacks. 663 * VFS create and mkdir callbacks.
663 */ 664 */
664static int pohmelfs_create(struct inode *dir, struct dentry *dentry, int mode, 665static int pohmelfs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
665 struct nameidata *nd) 666 struct nameidata *nd)
666{ 667{
667 return pohmelfs_create_entry(dir, dentry, 0, mode); 668 return pohmelfs_create_entry(dir, dentry, 0, mode);
668} 669}
669 670
670static int pohmelfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) 671static int pohmelfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
671{ 672{
672 int err; 673 int err;
673 674
diff --git a/drivers/staging/pohmelfs/inode.c b/drivers/staging/pohmelfs/inode.c
index 7a1955583b7..807e3f32411 100644
--- a/drivers/staging/pohmelfs/inode.c
+++ b/drivers/staging/pohmelfs/inode.c
@@ -830,7 +830,6 @@ const struct address_space_operations pohmelfs_aops = {
830static void pohmelfs_i_callback(struct rcu_head *head) 830static void pohmelfs_i_callback(struct rcu_head *head)
831{ 831{
832 struct inode *inode = container_of(head, struct inode, i_rcu); 832 struct inode *inode = container_of(head, struct inode, i_rcu);
833 INIT_LIST_HEAD(&inode->i_dentry);
834 kmem_cache_free(pohmelfs_inode_cache, POHMELFS_I(inode)); 833 kmem_cache_free(pohmelfs_inode_cache, POHMELFS_I(inode));
835} 834}
836 835
@@ -1370,9 +1369,9 @@ static int pohmelfs_statfs(struct dentry *dentry, struct kstatfs *buf)
1370 return 0; 1369 return 0;
1371} 1370}
1372 1371
1373static int pohmelfs_show_options(struct seq_file *seq, struct vfsmount *vfs) 1372static int pohmelfs_show_options(struct seq_file *seq, struct dentry *root)
1374{ 1373{
1375 struct pohmelfs_sb *psb = POHMELFS_SB(vfs->mnt_sb); 1374 struct pohmelfs_sb *psb = POHMELFS_SB(root->d_sb);
1376 1375
1377 seq_printf(seq, ",idx=%u", psb->idx); 1376 seq_printf(seq, ",idx=%u", psb->idx);
1378 seq_printf(seq, ",trans_scan_timeout=%u", jiffies_to_msecs(psb->trans_scan_timeout)); 1377 seq_printf(seq, ",trans_scan_timeout=%u", jiffies_to_msecs(psb->trans_scan_timeout));
@@ -1760,11 +1759,11 @@ err_out_exit:
1760 return err; 1759 return err;
1761} 1760}
1762 1761
1763static int pohmelfs_show_stats(struct seq_file *m, struct vfsmount *mnt) 1762static int pohmelfs_show_stats(struct seq_file *m, struct dentry *root)
1764{ 1763{
1765 struct netfs_state *st; 1764 struct netfs_state *st;
1766 struct pohmelfs_ctl *ctl; 1765 struct pohmelfs_ctl *ctl;
1767 struct pohmelfs_sb *psb = POHMELFS_SB(mnt->mnt_sb); 1766 struct pohmelfs_sb *psb = POHMELFS_SB(root->d_sb);
1768 struct pohmelfs_config *c; 1767 struct pohmelfs_config *c;
1769 1768
1770 mutex_lock(&psb->state_lock); 1769 mutex_lock(&psb->state_lock);
diff --git a/drivers/staging/pohmelfs/netfs.h b/drivers/staging/pohmelfs/netfs.h
index 985b6b755d5..f26894f2a57 100644
--- a/drivers/staging/pohmelfs/netfs.h
+++ b/drivers/staging/pohmelfs/netfs.h
@@ -776,7 +776,7 @@ struct pohmelfs_name *pohmelfs_search_hash(struct pohmelfs_inode *pi, u32 hash);
776void pohmelfs_inode_del_inode(struct pohmelfs_sb *psb, struct pohmelfs_inode *pi); 776void pohmelfs_inode_del_inode(struct pohmelfs_sb *psb, struct pohmelfs_inode *pi);
777 777
778struct pohmelfs_inode *pohmelfs_create_entry_local(struct pohmelfs_sb *psb, 778struct pohmelfs_inode *pohmelfs_create_entry_local(struct pohmelfs_sb *psb,
779 struct pohmelfs_inode *parent, struct qstr *str, u64 start, int mode); 779 struct pohmelfs_inode *parent, struct qstr *str, u64 start, umode_t mode);
780 780
781int pohmelfs_write_create_inode(struct pohmelfs_inode *pi); 781int pohmelfs_write_create_inode(struct pohmelfs_inode *pi);
782 782