diff mbox series

[XEN,v3,1/2] xen/vmap: use ISOLATE_LSB to wrap a violation of Rule 10.1

Message ID d891af807a7d4430a2ea5e4e9aa520b14c709246.1700724699.git.nicola.vetrini@bugseng.com (mailing list archive)
State New, archived
Headers show
Series use the macro ISOLATE_LSB where appropriate | expand

Commit Message

Nicola Vetrini Nov. 23, 2023, 7:37 a.m. UTC
No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
---
Changes in v2:
- Changed macro name
Changes in v3:
- Changed macro name
---
 xen/common/vmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/xen/common/vmap.c b/xen/common/vmap.c
index 4fd6b3067ec1..330e2ba897d7 100644
--- a/xen/common/vmap.c
+++ b/xen/common/vmap.c
@@ -53,7 +53,7 @@  static void *vm_alloc(unsigned int nr, unsigned int align,
     if ( !align )
         align = 1;
     else if ( align & (align - 1) )
-        align &= -align;
+        align = ISOLATE_LSB(align);
 
     ASSERT((t >= VMAP_DEFAULT) && (t < VMAP_REGION_NR));
     if ( !vm_base[t] )