cpuset remap const fix
Subsystems (2)
PATCH 1/1 cpuset remap const fix
Put const qualifier on the const argument of various bitmap, nodemask and cpumask *_remap definitions, instead of on the other argument. ... duh.
Signed-off-by Paul Jackson <[email protected]>
---
This fixes a botch in *-mm patch "cpuset bitmap and mask remap operators"
include/linux/bitmap.h | 2 +- include/linux/cpumask.h | 2 +- include/linux/nodemask.h | 2 +- lib/bitmap.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
include/linux/bitmap.h +1 -1
@@ -106,7 +106,7 @@ extern int bitmap_scnlistprintf(char *bu const unsigned long *src, int nbits);extern int bitmap_parselist (const char *buf,unsigned long *maskp,int nmaskbits); -extern void bitmap_remap (const unsigned long *dst,unsigned long *src, +extern void bitmap_remap (unsigned long *dst,const unsigned long *src,const unsigned long *old,const unsigned long *new,int bits);extern int bitmap_bitremap (int oldbit,const unsigned long *old,const unsigned long *new,int bits);
include/linux/cpumask.h +1 -1
@@ -308,7 +308,7 @@ static inline int __cpu_remap(int oldbit#define cpus_remap (dst, src, old, new) \ __cpus_remap(&(dst), &(src), &(old), &(new), NR_CPUS) -static inline void __cpus_remap (const cpumask_t *dstp,cpumask_t *srcp, +static inline void __cpus_remap (cpumask_t *dstp,const cpumask_t *srcp,const cpumask_t *oldp,const cpumask_t *newp,int nbits) {bitmap_remap (dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits);
include/linux/nodemask.h +1 -1
@@ -321,7 +321,7 @@ static inline int __node_remap(int oldbi#define nodes_remap (dst, src, old, new) \ __nodes_remap(&(dst), &(src), &(old), &(new), MAX_NUMNODES) -static inline void __nodes_remap (const nodemask_t *dstp,nodemask_t *srcp, +static inline void __nodes_remap (nodemask_t *dstp,const nodemask_t *srcp,const nodemask_t *oldp,const nodemask_t *newp,int nbits) {bitmap_remap (dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits);
lib/bitmap.c +1 -1
@@ -619,7 +619,7 @@ static int bitmap_ord_to_pos(const unsig* comes into this routine with bits 1, 5 and 7 set, then @dst should * leave with bits 12, 13 and 15 set. */ -void bitmap_remap (const unsigned long *dst,unsigned long *src, +void bitmap_remap (unsigned long *dst,const unsigned long *src,const unsigned long *old,const unsigned long *new,int bits) {
Signature · 3 lines
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <[email protected]> 1.650.933.1373