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.

nodemask: drop nodes_shift

nodes_shift_{left,right} are not used. Drop them.

Signed-off-by: Yury Norov [NVIDIA] <yury.norov@gmail.com>

-19
-19
include/linux/nodemask.h
··· 39 39 * int nodes_full(mask) Is mask full (all bits sets)? 40 40 * int nodes_weight(mask) Hamming weight - number of set bits 41 41 * 42 - * void nodes_shift_right(dst, src, n) Shift right 43 - * void nodes_shift_left(dst, src, n) Shift left 44 - * 45 42 * unsigned int first_node(mask) Number lowest set bit, or MAX_NUMNODES 46 43 * unsigend int next_node(node, mask) Next node past 'node', or MAX_NUMNODES 47 44 * unsigned int next_node_in(node, mask) Next node past 'node', or wrap to first, ··· 242 245 static __always_inline int __nodes_weight(const nodemask_t *srcp, unsigned int nbits) 243 246 { 244 247 return bitmap_weight(srcp->bits, nbits); 245 - } 246 - 247 - #define nodes_shift_right(dst, src, n) \ 248 - __nodes_shift_right(&(dst), &(src), (n), MAX_NUMNODES) 249 - static __always_inline void __nodes_shift_right(nodemask_t *dstp, 250 - const nodemask_t *srcp, int n, int nbits) 251 - { 252 - bitmap_shift_right(dstp->bits, srcp->bits, n, nbits); 253 - } 254 - 255 - #define nodes_shift_left(dst, src, n) \ 256 - __nodes_shift_left(&(dst), &(src), (n), MAX_NUMNODES) 257 - static __always_inline void __nodes_shift_left(nodemask_t *dstp, 258 - const nodemask_t *srcp, int n, int nbits) 259 - { 260 - bitmap_shift_left(dstp->bits, srcp->bits, n, nbits); 261 248 } 262 249 263 250 /* FIXME: better would be to fix all architectures to never return