linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Documentation: debugfs: Document debugfs helper for unsigned long values
@ 2019-10-21 15:06 Geert Uytterhoeven
  2019-10-22  2:26 ` Viresh Kumar
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2019-10-21 15:06 UTC (permalink / raw)
  To: Jonathan Corbet, Greg Kroah-Hartman
  Cc: Viresh Kumar, linux-doc, linux-kernel, Geert Uytterhoeven

When debugfs_create_ulong() was added, it was not documented.

Fixes: c23fe83138ed7b11 ("debugfs: Add debugfs_create_ulong()")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 Documentation/filesystems/debugfs.txt | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/Documentation/filesystems/debugfs.txt b/Documentation/filesystems/debugfs.txt
index 9e705026ac103b6f..50e8f91f2421ec04 100644
--- a/Documentation/filesystems/debugfs.txt
+++ b/Documentation/filesystems/debugfs.txt
@@ -93,8 +93,8 @@ the following functions can be used instead:
 
 These functions are useful as long as the developer knows the size of the
 value to be exported.  Some types can have different widths on different
-architectures, though, complicating the situation somewhat.  There is a
-function meant to help out in one special case:
+architectures, though, complicating the situation somewhat.  There are
+functions meant to help out in such special cases:
 
     void debugfs_create_size_t(const char *name, umode_t mode,
 			       struct dentry *parent, size_t *value);
@@ -102,6 +102,12 @@ function meant to help out in one special case:
 As might be expected, this function will create a debugfs file to represent
 a variable of type size_t.
 
+Similarly, there is a helper for variables of type unsigned long:
+
+    struct dentry *debugfs_create_ulong(const char *name, umode_t mode,
+					struct dentry *parent,
+					unsigned long *value);
+
 Boolean values can be placed in debugfs with:
 
     struct dentry *debugfs_create_bool(const char *name, umode_t mode,
-- 
2.17.1


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

* Re: [PATCH] Documentation: debugfs: Document debugfs helper for unsigned long values
  2019-10-21 15:06 [PATCH] Documentation: debugfs: Document debugfs helper for unsigned long values Geert Uytterhoeven
@ 2019-10-22  2:26 ` Viresh Kumar
  2019-10-24 18:04 ` Jonathan Corbet
  2019-11-03 17:12 ` Greg Kroah-Hartman
  2 siblings, 0 replies; 4+ messages in thread
From: Viresh Kumar @ 2019-10-22  2:26 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Jonathan Corbet, Greg Kroah-Hartman, linux-doc, linux-kernel

On 21-10-19, 17:06, Geert Uytterhoeven wrote:
> When debugfs_create_ulong() was added, it was not documented.
> 
> Fixes: c23fe83138ed7b11 ("debugfs: Add debugfs_create_ulong()")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
>  Documentation/filesystems/debugfs.txt | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/filesystems/debugfs.txt b/Documentation/filesystems/debugfs.txt
> index 9e705026ac103b6f..50e8f91f2421ec04 100644
> --- a/Documentation/filesystems/debugfs.txt
> +++ b/Documentation/filesystems/debugfs.txt
> @@ -93,8 +93,8 @@ the following functions can be used instead:
>  
>  These functions are useful as long as the developer knows the size of the
>  value to be exported.  Some types can have different widths on different
> -architectures, though, complicating the situation somewhat.  There is a
> -function meant to help out in one special case:
> +architectures, though, complicating the situation somewhat.  There are
> +functions meant to help out in such special cases:
>  
>      void debugfs_create_size_t(const char *name, umode_t mode,
>  			       struct dentry *parent, size_t *value);
> @@ -102,6 +102,12 @@ function meant to help out in one special case:
>  As might be expected, this function will create a debugfs file to represent
>  a variable of type size_t.
>  
> +Similarly, there is a helper for variables of type unsigned long:
> +
> +    struct dentry *debugfs_create_ulong(const char *name, umode_t mode,
> +					struct dentry *parent,
> +					unsigned long *value);
> +
>  Boolean values can be placed in debugfs with:
>  
>      struct dentry *debugfs_create_bool(const char *name, umode_t mode,

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

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

* Re: [PATCH] Documentation: debugfs: Document debugfs helper for unsigned long values
  2019-10-21 15:06 [PATCH] Documentation: debugfs: Document debugfs helper for unsigned long values Geert Uytterhoeven
  2019-10-22  2:26 ` Viresh Kumar
@ 2019-10-24 18:04 ` Jonathan Corbet
  2019-11-03 17:12 ` Greg Kroah-Hartman
  2 siblings, 0 replies; 4+ messages in thread
From: Jonathan Corbet @ 2019-10-24 18:04 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Greg Kroah-Hartman, Viresh Kumar, linux-doc, linux-kernel

On Mon, 21 Oct 2019 17:06:45 +0200
Geert Uytterhoeven <geert+renesas@glider.be> wrote:

> When debugfs_create_ulong() was added, it was not documented.
> 
> Fixes: c23fe83138ed7b11 ("debugfs: Add debugfs_create_ulong()")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
>  Documentation/filesystems/debugfs.txt | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)

Applied, thanks.

jon

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

* Re: [PATCH] Documentation: debugfs: Document debugfs helper for unsigned long values
  2019-10-21 15:06 [PATCH] Documentation: debugfs: Document debugfs helper for unsigned long values Geert Uytterhoeven
  2019-10-22  2:26 ` Viresh Kumar
  2019-10-24 18:04 ` Jonathan Corbet
@ 2019-11-03 17:12 ` Greg Kroah-Hartman
  2 siblings, 0 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2019-11-03 17:12 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Jonathan Corbet, Viresh Kumar, linux-doc, linux-kernel

On Mon, Oct 21, 2019 at 05:06:45PM +0200, Geert Uytterhoeven wrote:
> When debugfs_create_ulong() was added, it was not documented.
> 
> Fixes: c23fe83138ed7b11 ("debugfs: Add debugfs_create_ulong()")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
>  Documentation/filesystems/debugfs.txt | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)

Jon, I had to take this in my tree too as Geert sent a follow-on patch
that requires this.  Hopefully linux-next will not have many merge
issues with it.

thanks,

greg k-h

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

end of thread, other threads:[~2019-11-03 17:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-21 15:06 [PATCH] Documentation: debugfs: Document debugfs helper for unsigned long values Geert Uytterhoeven
2019-10-22  2:26 ` Viresh Kumar
2019-10-24 18:04 ` Jonathan Corbet
2019-11-03 17:12 ` Greg Kroah-Hartman

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).