[PATCH] mm/damon : Add documentation for Enum value

Gautam Menghani posted 1 patch 3 years, 12 months ago
include/linux/damon.h | 1 +
1 file changed, 1 insertion(+)
[PATCH] mm/damon : Add documentation for Enum value
Posted by Gautam Menghani 3 years, 12 months ago
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 v3:
- Add the subsystem in subject.
- Modify the description for NR_DAMON_OPS field.

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 implementations
  */
 enum damon_ops_id {
 	DAMON_OPS_VADDR,
-- 
2.25.1
Re: [PATCH] mm/damon : Add documentation for Enum value
Posted by SeongJae Park 3 years, 12 months ago
Hi Gautam,


On Sun, 8 May 2022 13:03:16 +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 v3:
> - Add the subsystem in subject.
> - Modify the description for NR_DAMON_OPS field.

Thank you for making the changes.

Reviewed-by: SeongJae Park <sj@kernel.org>


Thanks,
SJ

> 
> 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 implementations
>   */
>  enum damon_ops_id {
>  	DAMON_OPS_VADDR,
> -- 
> 2.25.1
>
Re: [PATCH] mm/damon : Add documentation for Enum value
Posted by SeongJae Park 3 years, 12 months ago
Hi Gautam,


I just found this patch is not cleanly applicable on top of the mm-unstable
branch[1].  Could you please rebase?

[1] https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/log/?h=mm-unstable


Thanks,
SJ

On Sun, 8 May 2022 09:19:43 +0000 SeongJae Park <sj@kernel.org> wrote:

> Hi Gautam,
> 
> 
> On Sun, 8 May 2022 13:03:16 +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 v3:
> > - Add the subsystem in subject.
> > - Modify the description for NR_DAMON_OPS field.
> 
> Thank you for making the changes.
> 
> Reviewed-by: SeongJae Park <sj@kernel.org>
> 
> 
> Thanks,
> SJ
> 
> > 
> > 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 implementations
> >   */
> >  enum damon_ops_id {
> >  	DAMON_OPS_VADDR,
> > -- 
> > 2.25.1
> >
Re: [PATCH] mm/damon : Add documentation for Enum value
Posted by Andrew Morton 3 years, 12 months ago
On Mon,  9 May 2022 08:11:54 +0000 SeongJae Park <sj@kernel.org> wrote:

> I just found this patch is not cleanly applicable on top of the mm-unstable
> branch[1].  Could you please rebase?
> 
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/log/?h=mm-unstable

I got it.  It was just the DAMON_OPS_VADDR->DAMON_OPS_FVADDR rename.