Skip to contentSkip to conversation

dm vdo: Modify mismatched function name

PATCH In review Jiapeng Chong 2 participants 9 messages Feb 21, 2024 – Feb 22, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 8/8 dm vdo: Modify mismatched function name

No functional modification involved.

drivers/md/dm-vdo/admin-state.c:310: warning: expecting prototype for vdo_drain_operation(). Prototype was for assert_vdo_drain_operation() instead.

---
 drivers/md/dm-vdo/admin-state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/admin-state.c +1 -1
index 8663c1e91616..3f9dba525154 100644
@@ -300,7 +300,7 @@ static bool check_code(bool valid, const struct admin_state_code *code, const ch
 }
 
 /**
- * vdo_drain_operation() - Check that an operation is a drain.
+ * assert_vdo_drain_operation() - Check that an operation is a drain.
  * @waiter The completion to finish with an error if the operation is not a drain.
  *
  * Return: true if the specified operation is a drain.
Signature · 1 line
2.20.1.7.g153144c
#1 lore raw

PATCH 1/8 dm vdo: Modify mismatched function name

No functional modification involved.

drivers/md/dm-vdo/vdo.c:276: warning: expecting prototype for vdo_read_geometry_block(). Prototype was for read_geometry_block() instead.

---
 drivers/md/dm-vdo/vdo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/vdo.c +1 -1
index 23a4f1d1b6dc..411c58341173 100644
@@ -266,7 +266,7 @@ static int __must_check initialize_thread_config(struct thread_count_config coun
 }
 
 /**
- * vdo_read_geometry_block() - Synchronously read the geometry block from a vdo's underlying block
+ * read_geometry_block() - Synchronously read the geometry block from a vdo's underlying block
  *                             device.
  * @vdo: The vdo whose geometry is to be read.
  *
Signature · 1 line
2.20.1.7.g153144c
maintainer
#2 lore raw
Quoted 16 lines · Jiapeng Chong

No functional modification involved.

drivers/md/dm-vdo/vdo.c:276: warning: expecting prototype for vdo_read_geometry_block(). Prototype was for read_geometry_block() instead.

---
  drivers/md/dm-vdo/vdo.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/vdo.c +0 -0
index 23a4f1d1b6dc..411c58341173 100644

drivers/md/dm-vdo/vdo.c static int __must_check initialize_thread_config(struct thread_count_config coun · line 272

Quoted 8 lines
drivers/md/dm-vdo/vdo.c +1 -1
@@ -266,7 +266,7 @@ static int __must_check initialize_thread_config(struct thread_count_config coun
  }
 
  /**
- * vdo_read_geometry_block() - Synchronously read the geometry block from a vdo's underlying block
+ * read_geometry_block() - Synchronously read the geometry block from a vdo's underlying block
   *                             device.
   * @vdo: The vdo whose geometry is to be read.
   *

Thanks for the reports! I'll apply these soon.

Matt

#3 lore raw

PATCH 2/8 dm vdo: Modify mismatched function name

In reply to Jiapeng Chong

No functional modification involved.

drivers/md/dm-vdo/slab-depot.c:2042: warning: expecting prototype for vdo_find_free_block(). Prototype was for find_free_block() instead. drivers/md/dm-vdo/slab-depot.c:5036: warning: expecting prototype for get_depot_slab_journal_statistics(). Prototype was for get_slab_journal_statistics() instead.

---
 drivers/md/dm-vdo/slab-depot.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/md/dm-vdo/slab-depot.c +2 -2
index b11972a8a08b..a85d2983800d 100644
@@ -2029,7 +2029,7 @@ static inline slab_block_number find_zero_byte_in_word(const u8 *word_ptr,
 }
 
 /**
- * vdo_find_free_block() - Find the first block with a reference count of zero in the specified
+ * find_free_block() - Find the first block with a reference count of zero in the specified
  *                         range of reference counter indexes.
  * @slab: The slab counters to scan.
  * @index_ptr: A pointer to hold the array index of the free block.
@@ -5026,7 +5026,7 @@ get_ref_counts_statistics(const struct slab_depot *depot)
 }
 
 /**
- * get_depot_slab_journal_statistics() - Get the aggregated slab journal statistics for the depot.
+ * get_slab_journal_statistics() - Get the aggregated slab journal statistics for the depot.
  * @depot: The slab depot.
  *
  * Return: The aggregated statistics for all slab journals in the depot.
Signature · 1 line
2.20.1.7.g153144c
#4 lore raw

PATCH 3/8 dm vdo: Modify mismatched function name

In reply to Jiapeng Chong

No functional modification involved.

drivers/md/dm-vdo/physical-zone.c:268: warning: expecting prototype for vdo_free_pbn_lock_pool(). Prototype was for free_pbn_lock_pool() instead.

---
 drivers/md/dm-vdo/physical-zone.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/physical-zone.c +1 -1
index b80c4d3a9bde..14d502ea77c9 100644
@@ -258,7 +258,7 @@ static int make_pbn_lock_pool(size_t capacity, struct pbn_lock_pool **pool_ptr)
 }
 
 /**
- * vdo_free_pbn_lock_pool() - Free a PBN lock pool.
+ * free_pbn_lock_pool() - Free a PBN lock pool.
  * @pool: The lock pool to free.
  *
  * This also frees all the PBN locks it allocated, so the caller must ensure that all locks have
Signature · 1 line
2.20.1.7.g153144c
#5 lore raw

PATCH 4/8 dm vdo: Modify mismatched function name

In reply to Jiapeng Chong

No functional modification involved.

drivers/md/dm-vdo/logical-zone.c:303: warning: expecting prototype for void attempt_generation_complete_notification()(). Prototype was for attempt_generation_complete_notification() instead.

---
 drivers/md/dm-vdo/logical-zone.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/logical-zone.c +1 -1
index a040fe9c0779..131161e0c152 100644
@@ -295,7 +295,7 @@ static void notify_flusher(struct vdo_completion *completion)
 }
 
 /**
- * void attempt_generation_complete_notification() - Notify the flusher if some generation no
+ * attempt_generation_complete_notification() - Notify the flusher if some generation no
  *                                                   longer has active VIOs.
  * @completion: The zone completion.
  */
Signature · 1 line
2.20.1.7.g153144c
#6 lore raw

PATCH 5/8 dm vdo: Modify mismatched function name

In reply to Jiapeng Chong

No functional modification involved.

drivers/md/dm-vdo/encodings.c:1178: warning: expecting prototype for vdo_decode_component(). Prototype was for decode_vdo_component() instead.

---
 drivers/md/dm-vdo/encodings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/encodings.c +1 -1
index 42ffd793deeb..f4fee2c1d656 100644
@@ -1170,7 +1170,7 @@ static struct vdo_component unpack_vdo_component_41_0(struct packed_vdo_componen
 }
 
 /**
- * vdo_decode_component() - Decode the component data for the vdo itself out of the super block.
+ * decode_vdo_component() - Decode the component data for the vdo itself out of the super block.
  *
  * Return: VDO_SUCCESS or an error.
  */
Signature · 1 line
2.20.1.7.g153144c
#7 lore raw

PATCH 6/8 dm vdo: Modify mismatched function name

In reply to Jiapeng Chong

No functional modification involved.

drivers/md/dm-vdo/flush.c:97: warning: expecting prototype for waiter_as_flush(). Prototype was for vdo_waiter_as_flush() instead.

---
 drivers/md/dm-vdo/flush.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/flush.c +1 -1
index e4be450aa12c..57e87f0d7069 100644
@@ -88,7 +88,7 @@ static inline struct vdo_flush *completion_as_vdo_flush(struct vdo_completion *c
 }
 
 /**
- * waiter_as_flush() - Convert a vdo_flush's generic wait queue entry back to the vdo_flush.
+ * vdo_waiter_as_flush() - Convert a vdo_flush's generic wait queue entry back to the vdo_flush.
  * @waiter: The wait queue entry to convert.
  *
  * Return: The wait queue entry as a vdo_flush.
Signature · 1 line
2.20.1.7.g153144c
#8 lore raw

PATCH 7/8 dm vdo dedupe: Modify mismatched function name

In reply to Jiapeng Chong

No functional modification involved.

drivers/md/dm-vdo/dedupe.c:2792: warning: expecting prototype for vdo_dump_hash_zone(). Prototype was for dump_hash_zone() instead.

---
 drivers/md/dm-vdo/dedupe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/dedupe.c +1 -1
index a9b189395592..a2535e909a80 100644
@@ -2785,7 +2785,7 @@ static const char *index_state_to_string(struct hash_zones *zones,
 }
 
 /**
- * vdo_dump_hash_zone() - Dump information about a hash zone to the log for debugging.
+ * dump_hash_zone() - Dump information about a hash zone to the log for debugging.
  * @zone: The zone to dump.
  */
 static void dump_hash_zone(const struct hash_zone *zone)
Signature · 1 line
2.20.1.7.g153144c