Skip to contentSkip to conversation

mm: Removed @freeptr_offset to prevent doc warning

PATCH Superseded R Sundar 2 participants 4 messages Sep 1, 2024 – Sep 2, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

R Sundar

author
#0 lore raw

PATCH 1/1 mm: Removed @freeptr_offset to prevent doc warning

./mm/slab_common.c:385: warning: Excess function parameter 'freeptr_offset' description in 'kmem_cache_create_usercopy' Removed @freeptr_offset to fix above doc warning.

---
 mm/slab_common.c | 1 -
 1 file changed, 1 deletion(-)
mm/slab_common.c +0 -1
index d48ef4fe1ea8..ad438ba62485 100644
@@ -353,7 +353,6 @@ do_kmem_cache_create_usercopy(const char *name,
  * for copying to userspace
  * @name: A string which is used in /proc/slabinfo to identify this cache.
  * @size: The size of objects to be created in this cache.
- * @freeptr_offset: Custom offset for the free pointer in RCU caches
  * @align: The required alignment for the objects.
  * @flags: SLAB flags
  * @useroffset: Usercopy region offset
Signature · 1 line
2.34.1
author
#1 lore raw
Quoted 13 lines · R Sundar

./mm/slab_common.c:385: warning: Excess function parameter 'freeptr_offset' description in 'kmem_cache_create_usercopy' Removed @freeptr_offset to fix above doc warning.

---
  mm/slab_common.c | 1 -
  1 file changed, 1 deletion(-)
mm/slab_common.c +0 -0
index d48ef4fe1ea8..ad438ba62485 100644

mm/slab_common.c do_kmem_cache_create_usercopy(const char *name, · line 358

Quoted 7 lines
mm/slab_common.c +0 -1
@@ -353,7 +353,6 @@ do_kmem_cache_create_usercopy(const char *name,
   * for copying to userspace
   * @name: A string which is used in /proc/slabinfo to identify this cache.
   * @size: The size of objects to be created in this cache.
- * @freeptr_offset: Custom offset for the free pointer in RCU caches
   * @align: The required alignment for the objects.
   * @flags: SLAB flags
   * @useroffset: Usercopy region offset

Sorry , Forget to mention.

This patch is for linux-next repository.

Thanks,
Sundar

#2 lore raw
In reply to R Sundar
Quoted 4 lines · R Sundar

./mm/slab_common.c:385: warning: Excess function parameter 'freeptr_offset' description in 'kmem_cache_create_usercopy' Removed @freeptr_offset to fix above doc warning.

This is for Christian's vfs tree, so added him to recipients. There was also a lkp report:
https://lore.kernel.org/all/[email protected]/

Quoted 16 lines
---
 mm/slab_common.c | 1 -
 1 file changed, 1 deletion(-)
mm/slab_common.c +0 -1
index d48ef4fe1ea8..ad438ba62485 100644
@@ -353,7 +353,6 @@ do_kmem_cache_create_usercopy(const char *name,
  * for copying to userspace
  * @name: A string which is used in /proc/slabinfo to identify this cache.
  * @size: The size of objects to be created in this cache.
- * @freeptr_offset: Custom offset for the free pointer in RCU caches
  * @align: The required alignment for the objects.
  * @flags: SLAB flags
  * @useroffset: Usercopy region offset
author
#3 lore raw
Quoted 10 lines · Vlastimil Babka
Quoted 4 lines · R Sundar

./mm/slab_common.c:385: warning: Excess function parameter 'freeptr_offset' description in 'kmem_cache_create_usercopy' Removed @freeptr_offset to fix above doc warning.

This is for Christian's vfs tree, so added him to recipients. There was also a lkp report:
https://lore.kernel.org/all/[email protected]/

Hi,

Thanks for adding recipients.

Sent a v2 patch after adding Reported-by and Closes Tag.

https://lore.kernel.org/all/[email protected]/

Thanks,
Sundar

Quoted 17 lines
Quoted 16 lines
---
  mm/slab_common.c | 1 -
  1 file changed, 1 deletion(-)
mm/slab_common.c +0 -1
index d48ef4fe1ea8..ad438ba62485 100644
@@ -353,7 +353,6 @@ do_kmem_cache_create_usercopy(const char *name,
   * for copying to userspace
   * @name: A string which is used in /proc/slabinfo to identify this cache.
   * @size: The size of objects to be created in this cache.
- * @freeptr_offset: Custom offset for the free pointer in RCU caches
   * @align: The required alignment for the objects.
   * @flags: SLAB flags
   * @useroffset: Usercopy region offset