Skip to content

Commit 74a2bd0

Browse files
committed
nodemask: drop nodes_shift
nodes_shift_{left,right} are not used. Drop them. Signed-off-by: Yury Norov [NVIDIA] <yury.norov@gmail.com>
1 parent ca91b95 commit 74a2bd0

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

include/linux/nodemask.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939
* int nodes_full(mask) Is mask full (all bits sets)?
4040
* int nodes_weight(mask) Hamming weight - number of set bits
4141
*
42-
* void nodes_shift_right(dst, src, n) Shift right
43-
* void nodes_shift_left(dst, src, n) Shift left
44-
*
4542
* unsigned int first_node(mask) Number lowest set bit, or MAX_NUMNODES
4643
* unsigend int next_node(node, mask) Next node past 'node', or MAX_NUMNODES
4744
* unsigned int next_node_in(node, mask) Next node past 'node', or wrap to first,
@@ -247,22 +244,6 @@ static __always_inline int __nodes_weight(const nodemask_t *srcp, unsigned int n
247244
return bitmap_weight(srcp->bits, nbits);
248245
}
249246

250-
#define nodes_shift_right(dst, src, n) \
251-
__nodes_shift_right(&(dst), &(src), (n), MAX_NUMNODES)
252-
static __always_inline void __nodes_shift_right(nodemask_t *dstp,
253-
const nodemask_t *srcp, int n, int nbits)
254-
{
255-
bitmap_shift_right(dstp->bits, srcp->bits, n, nbits);
256-
}
257-
258-
#define nodes_shift_left(dst, src, n) \
259-
__nodes_shift_left(&(dst), &(src), (n), MAX_NUMNODES)
260-
static __always_inline void __nodes_shift_left(nodemask_t *dstp,
261-
const nodemask_t *srcp, int n, int nbits)
262-
{
263-
bitmap_shift_left(dstp->bits, srcp->bits, n, nbits);
264-
}
265-
266247
/* FIXME: better would be to fix all architectures to never return
267248
> MAX_NUMNODES, then the silly min_ts could be dropped. */
268249

0 commit comments

Comments
 (0)