Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dm-pcache: cleanup: fix coding style report by checkpatch.pl

A patch from a few days ago fixed the division issue on 32-bit machines,
but it introduced a coding style problem.

WARNING: Missing a blank line after declarations
+ u32 rem;
+ div_u64_rem(off >> PCACHE_CACHE_SUBTREE_SIZE_SHIFT,
cache->n_ksets, &rem);

total: 0 errors, 1 warnings, 634 lines checked

Signed-off-by: Dongsheng Yang <dongsheng.yang@linux.dev>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

authored by

Dongsheng Yang and committed by
Mikulas Patocka
24735771 1f9ad14a

+5 -3
+5 -3
drivers/md/dm-pcache/cache.h
··· 372 372 373 373 static inline u32 get_kset_id(struct pcache_cache *cache, u64 off) 374 374 { 375 - u32 rem; 376 - div_u64_rem(off >> PCACHE_CACHE_SUBTREE_SIZE_SHIFT, cache->n_ksets, &rem); 377 - return rem; 375 + u32 kset_id; 376 + 377 + div_u64_rem(off >> PCACHE_CACHE_SUBTREE_SIZE_SHIFT, cache->n_ksets, &kset_id); 378 + 379 + return kset_id; 378 380 } 379 381 380 382 static inline struct pcache_cache_kset *get_kset(struct pcache_cache *cache, u32 kset_id)