dm vdo int-map: remove unused parameters

Remove __always_unused parameters from static functions.
Also fix minor formatting issues.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407141607.M3E2XQ0Z-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202409101018.B75pIBKR-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202410011107.U2xbVLRA-lkp@intel.com/
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

authored by Matthew Sakai and committed by Mikulas Patocka 7e976b2b bd7e677c

Changed files
+11 -17
drivers
md
dm-vdo
+11 -17
drivers/md/dm-vdo/int-map.c
··· 70 70 * it's crucial to keep the hop fields near the buckets that they use them so they'll tend to share 71 71 * cache lines. 72 72 */ 73 - struct __packed bucket { 73 + struct bucket { 74 74 /** 75 75 * @first_hop: The biased offset of the first entry in the hop list of the neighborhood 76 76 * that hashes to this bucket. ··· 82 82 u64 key; 83 83 /** @value: The value stored in this bucket (NULL if empty). */ 84 84 void *value; 85 - }; 85 + } __packed; 86 86 87 87 /** 88 88 * struct int_map - The concrete definition of the opaque int_map type. ··· 310 310 /** 311 311 * search_hop_list() - Search the hop list associated with given hash bucket for a given search 312 312 * key. 313 - * @map: The map being searched. 314 313 * @bucket: The map bucket to search for the key. 315 314 * @key: The mapping key. 316 315 * @previous_ptr: Output. if not NULL, a pointer in which to store the bucket in the list preceding ··· 320 321 * 321 322 * Return: An entry that matches the key, or NULL if not found. 322 323 */ 323 - static struct bucket *search_hop_list(struct int_map *map __always_unused, 324 - struct bucket *bucket, 325 - u64 key, 324 + static struct bucket *search_hop_list(struct bucket *bucket, u64 key, 326 325 struct bucket **previous_ptr) 327 326 { 328 327 struct bucket *previous = NULL; ··· 354 357 */ 355 358 void *vdo_int_map_get(struct int_map *map, u64 key) 356 359 { 357 - struct bucket *match = search_hop_list(map, select_bucket(map, key), key, NULL); 360 + struct bucket *match = search_hop_list(select_bucket(map, key), key, NULL); 358 361 359 362 return ((match != NULL) ? match->value : NULL); 360 363 } ··· 440 443 441 444 /** 442 445 * move_empty_bucket() - Move an empty bucket closer to the start of the bucket array. 443 - * @map: The map containing the bucket. 444 446 * @hole: The empty bucket to fill with an entry that precedes it in one of its enclosing 445 447 * neighborhoods. 446 448 * ··· 450 454 * Return: The bucket that was vacated by moving its entry to the provided hole, or NULL if no 451 455 * entry could be moved. 452 456 */ 453 - static struct bucket *move_empty_bucket(struct int_map *map __always_unused, 454 - struct bucket *hole) 457 + static struct bucket *move_empty_bucket(struct bucket *hole) 455 458 { 456 459 /* 457 460 * Examine every neighborhood that the empty bucket is part of, starting with the one in ··· 511 516 /** 512 517 * update_mapping() - Find and update any existing mapping for a given key, returning the value 513 518 * associated with the key in the provided pointer. 514 - * @map: The int_map to attempt to modify. 515 519 * @neighborhood: The first bucket in the neighborhood that would contain the search key 516 520 * @key: The key with which to associate the new value. 517 521 * @new_value: The value to be associated with the key. ··· 519 525 * 520 526 * Return: true if the map contains a mapping for the key, false if it does not. 521 527 */ 522 - static bool update_mapping(struct int_map *map, struct bucket *neighborhood, 523 - u64 key, void *new_value, bool update, void **old_value_ptr) 528 + static bool update_mapping(struct bucket *neighborhood, u64 key, void *new_value, 529 + bool update, void **old_value_ptr) 524 530 { 525 - struct bucket *bucket = search_hop_list(map, neighborhood, key, NULL); 531 + struct bucket *bucket = search_hop_list(neighborhood, key, NULL); 526 532 527 533 if (bucket == NULL) { 528 534 /* There is no bucket containing the key in the neighborhood. */ ··· 578 584 * The nearest empty bucket isn't within the neighborhood that must contain the new 579 585 * entry, so try to swap it with bucket that is closer. 580 586 */ 581 - hole = move_empty_bucket(map, hole); 587 + hole = move_empty_bucket(hole); 582 588 } 583 589 584 590 return NULL; ··· 619 625 * Check whether the neighborhood already contains an entry for the key, in which case we 620 626 * optionally update it, returning the old value. 621 627 */ 622 - if (update_mapping(map, neighborhood, key, new_value, update, old_value_ptr)) 628 + if (update_mapping(neighborhood, key, new_value, update, old_value_ptr)) 623 629 return VDO_SUCCESS; 624 630 625 631 /* ··· 673 679 /* Select the bucket to search and search it for an existing entry. */ 674 680 struct bucket *bucket = select_bucket(map, key); 675 681 struct bucket *previous; 676 - struct bucket *victim = search_hop_list(map, bucket, key, &previous); 682 + struct bucket *victim = search_hop_list(bucket, key, &previous); 677 683 678 684 if (victim == NULL) { 679 685 /* There is no matching entry to remove. */