All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add documentation for Enum value 'NR_DAMON_OPS' in enum 'damon_ops_id'
@ 2022-05-07  7:08 Gautam Menghani
  2022-05-07 15:52 ` SeongJae Park
  0 siblings, 1 reply; 4+ messages in thread
From: Gautam Menghani @ 2022-05-07  7:08 UTC (permalink / raw)
  To: sj, skhan; +Cc: Gautam Menghani, linux-mm, linux-kernel, Gautam Menghani

From: Gautam Menghani <gautammenghani14@gmail.com>

Fix the warning - "Enum value 'NR_DAMON_OPS' not described in enum 'damon_ops_id'" generated by the command "make pdfdocs"

Signed-off-by: Gautam Menghani <gautammenghani201@gmail.com>
---
 include/linux/damon.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/damon.h b/include/linux/damon.h
index f23cbfa4248d..b972a7a3b6f0 100644
--- a/include/linux/damon.h
+++ b/include/linux/damon.h
@@ -262,6 +262,7 @@ struct damos {
  *
  * @DAMON_OPS_VADDR:	Monitoring operations for virtual address spaces
  * @DAMON_OPS_PADDR:	Monitoring operations for the physical address space
+ * @NR_DAMON_OPS:	Number of monitoring operations for a particular implementation
  */
 enum damon_ops_id {
 	DAMON_OPS_VADDR,
-- 
2.25.1


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

* Re: [PATCH] Add documentation for Enum value 'NR_DAMON_OPS' in enum 'damon_ops_id'
  2022-05-07  7:08 [PATCH] Add documentation for Enum value 'NR_DAMON_OPS' in enum 'damon_ops_id' Gautam Menghani
@ 2022-05-07 15:52 ` SeongJae Park
  2022-05-07 16:56   ` [PATCH] Add documentation for Enum value 'NR_DAMON_OPS' in Gautam Menghani
  0 siblings, 1 reply; 4+ messages in thread
From: SeongJae Park @ 2022-05-07 15:52 UTC (permalink / raw)
  To: Gautam Menghani; +Cc: sj, skhan, Gautam Menghani, linux-mm, linux-kernel, damon

Hi Gautam,


Thank you for the patch.  'checkpatch.pl' complains as below, though:

	WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per line)
	#12:
	Fix the warning - "Enum value 'NR_DAMON_OPS' not described in enum 'damon_ops_id'" generated by the command "make pdfdocs"

	WARNING: From:/Signed-off-by: email address mismatch: 'From: Gautam Menghani <gautammenghani14@gmail.com>' != 'Signed-off-by: Gautam Menghani <gautammenghani201@gmail.com>'

	total: 0 errors, 2 warnings, 7 lines checked

Could you please fix those?

On Sat, 7 May 2022 12:38:50 +0530 Gautam Menghani <gautammenghani201@gmail.com> wrote:

> From: Gautam Menghani <gautammenghani14@gmail.com>
> 
> Fix the warning - "Enum value 'NR_DAMON_OPS' not described in enum 'damon_ops_id'" generated by the command "make pdfdocs"
> 
> Signed-off-by: Gautam Menghani <gautammenghani201@gmail.com>
> ---
>  include/linux/damon.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/linux/damon.h b/include/linux/damon.h
> index f23cbfa4248d..b972a7a3b6f0 100644
> --- a/include/linux/damon.h
> +++ b/include/linux/damon.h
> @@ -262,6 +262,7 @@ struct damos {
>   *
>   * @DAMON_OPS_VADDR:	Monitoring operations for virtual address spaces
>   * @DAMON_OPS_PADDR:	Monitoring operations for the physical address space
> + * @NR_DAMON_OPS:	Number of monitoring operations for a particular implementation

I'd like to keep the 80 column limit[1].

[1] https://docs.kernel.org/process/coding-style.html#breaking-long-lines-and-strings

Also, strictly speaking, it's not the number of monitoring operations for _a
particular implementation_, but 'number of monitoring operations
implementations'.  And it's shorter.  How about the suggestion?


Thanks,
SJ

>   */
>  enum damon_ops_id {
>  	DAMON_OPS_VADDR,
> -- 
> 2.25.1

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

* [PATCH] Add documentation for Enum value 'NR_DAMON_OPS' in
  2022-05-07 15:52 ` SeongJae Park
@ 2022-05-07 16:56   ` Gautam Menghani
  2022-05-07 20:15     ` SeongJae Park
  0 siblings, 1 reply; 4+ messages in thread
From: Gautam Menghani @ 2022-05-07 16:56 UTC (permalink / raw)
  To: sj, skhan; +Cc: Gautam Menghani, linux-mm, linux-kernel

Fix the warning - "Enum value 'NR_DAMON_OPS' not described in 
enum 'damon_ops_id'" generated by the command "make pdfdocs"

Signed-off-by: Gautam Menghani <gautammenghani201@gmail.com>
---
Changes in v2:
- Fix checkpatch warning of 75 characters per line
- Fix email mismatch in from and signed by field

 include/linux/damon.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/damon.h b/include/linux/damon.h
index f23cbfa4248d..b972a7a3b6f0 100644
--- a/include/linux/damon.h
+++ b/include/linux/damon.h
@@ -262,6 +262,7 @@ struct damos {
  *
  * @DAMON_OPS_VADDR:	Monitoring operations for virtual address spaces
  * @DAMON_OPS_PADDR:	Monitoring operations for the physical address space
+ * @NR_DAMON_OPS:	Number of monitoring operations for a particular implementation
  */
 enum damon_ops_id {
 	DAMON_OPS_VADDR,
-- 
2.25.1


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

* Re: [PATCH] Add documentation for Enum value 'NR_DAMON_OPS' in
  2022-05-07 16:56   ` [PATCH] Add documentation for Enum value 'NR_DAMON_OPS' in Gautam Menghani
@ 2022-05-07 20:15     ` SeongJae Park
  0 siblings, 0 replies; 4+ messages in thread
From: SeongJae Park @ 2022-05-07 20:15 UTC (permalink / raw)
  To: Gautam Menghani; +Cc: sj, skhan, linux-mm, linux-kernel

Hi Gautam,


On Sat, 7 May 2022 22:26:20 +0530 Gautam Menghani <gautammenghani201@gmail.com> wrote:

> Fix the warning - "Enum value 'NR_DAMON_OPS' not described in 
> enum 'damon_ops_id'" generated by the command "make pdfdocs"
> 
> Signed-off-by: Gautam Menghani <gautammenghani201@gmail.com>
> ---
> Changes in v2:
> - Fix checkpatch warning of 75 characters per line
> - Fix email mismatch in from and signed by field

Thank you for the fix, but please read below.

Could you please adjust the subject so that we can know for what subsystem this
change is made?  E.g., mm/damon: Add documentation for ...

> 
>  include/linux/damon.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/linux/damon.h b/include/linux/damon.h
> index f23cbfa4248d..b972a7a3b6f0 100644
> --- a/include/linux/damon.h
> +++ b/include/linux/damon.h
> @@ -262,6 +262,7 @@ struct damos {
>   *
>   * @DAMON_OPS_VADDR:	Monitoring operations for virtual address spaces
>   * @DAMON_OPS_PADDR:	Monitoring operations for the physical address space
> + * @NR_DAMON_OPS:	Number of monitoring operations for a particular implementation

My previous comment to this part seems not answered?  I'd suggest
's/for a particular implementation/implementations/'


Thanks,
SJ

>   */
>  enum damon_ops_id {
>  	DAMON_OPS_VADDR,
> -- 
> 2.25.1
> 

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

end of thread, other threads:[~2022-05-07 20:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-07  7:08 [PATCH] Add documentation for Enum value 'NR_DAMON_OPS' in enum 'damon_ops_id' Gautam Menghani
2022-05-07 15:52 ` SeongJae Park
2022-05-07 16:56   ` [PATCH] Add documentation for Enum value 'NR_DAMON_OPS' in Gautam Menghani
2022-05-07 20:15     ` SeongJae Park

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.