Skip to contentSkip to conversation

dm clone: Make __hash_find static

PATCH New YueHaibing 1 participant 1 message Sep 23, 2019 Device mapper

lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 dm clone: Make __hash_find static

drivers/md/dm-clone-target.c:594:34: warning:
symbol '__hash_find' was not declared. Should it be static?

---
 drivers/md/dm-clone-target.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/md/dm-clone-target.c +3 -2
index cd6f9e9..0f99b68 100644
@@ -591,8 +591,9 @@ static struct hash_table_bucket *get_hash_table_bucket(struct clone *clone,
  *
  * NOTE: Must be called with the bucket lock held
  */
-struct dm_clone_region_hydration *__hash_find(struct hash_table_bucket *bucket,
-					      unsigned long region_nr)
+static struct
+dm_clone_region_hydration *__hash_find(struct hash_table_bucket *bucket,
+				       unsigned long region_nr)
 {
 	struct dm_clone_region_hydration *hd;
 
Signature · 1 line
2.7.4