Re: [PATCH V2] debugfs: Add debugfs_create_ulong()

2015-10-17 Thread Greg Kroah-Hartman
On Thu, Oct 15, 2015 at 11:25:55AM -0700, Stephen Boyd wrote: > On 10/15, Viresh Kumar wrote: > > On 14-10-15, 11:51, Stephen Boyd wrote: > > > On 10/09, Viresh Kumar wrote: > > > > +struct dentry *debugfs_create_xlong(const char *name, umode_t mode, > > > > + stru

Re: [PATCH V2] debugfs: Add debugfs_create_ulong()

2015-10-15 Thread Stephen Boyd
On 10/15, Viresh Kumar wrote: > On 14-10-15, 11:51, Stephen Boyd wrote: > > On 10/09, Viresh Kumar wrote: > > > +struct dentry *debugfs_create_xlong(const char *name, umode_t mode, > > > + struct dentry *parent, unsigned long *value) > > > +{ > > > + return debugfs_creat

Re: [PATCH V2] debugfs: Add debugfs_create_ulong()

2015-10-15 Thread Viresh Kumar
On 14-10-15, 11:51, Stephen Boyd wrote: > On 10/09, Viresh Kumar wrote: > > +struct dentry *debugfs_create_xlong(const char *name, umode_t mode, > > + struct dentry *parent, unsigned long *value) > > +{ > > + return debugfs_create_file(name, mode, parent, value, &fop

Re: [PATCH V2] debugfs: Add debugfs_create_ulong()

2015-10-14 Thread Stephen Boyd
On 10/09, Viresh Kumar wrote: > +struct dentry *debugfs_create_xlong(const char *name, umode_t mode, > + struct dentry *parent, unsigned long *value) > +{ > + return debugfs_create_file(name, mode, parent, value, &fops_xlong); Were you going to refresh this on m

[PATCH V2] debugfs: Add debugfs_create_ulong()

2015-10-09 Thread Viresh Kumar
Add debugfs_create_ulong() for the users of type 'unsigned long'. These will be 32 bits long on a 32 bit machine and 64 bits long on a 64 bit machine. Signed-off-by: Viresh Kumar --- V1->V2: - Fix missing debugfs_create_xlong() routine, was left in the repository. fs/debugfs/file.c | 72