]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common header file not applicable to open-vm-tools.
authorKruti Pendharkar <kp025370@broadcom.com>
Tue, 18 Feb 2025 09:13:55 +0000 (01:13 -0800)
committerKruti Pendharkar <kp025370@broadcom.com>
Tue, 18 Feb 2025 09:13:55 +0000 (01:13 -0800)
open-vm-tools/lib/include/vm_basic_defs.h

index 3ddf4d77f76ffdd89ec50809bc385f7d1e2457d6..fe0ac446b18593464dc39e4c37a3977ec46e6140 100644 (file)
@@ -309,6 +309,10 @@ Max(int a, int b)
 #define BYTES_2_PAGES(_nbytes)  ((_nbytes) >> PAGE_SHIFT)
 #endif
 
+#ifndef ROUNDUP_BYTES_2_PAGES
+#define ROUNDUP_BYTES_2_PAGES(_nbytes) VM_PAGES_SPANNED(0, (_nbytes))
+#endif
+
 #ifndef BYTES_2_PAGES_4KB
 #define BYTES_2_PAGES_4KB(_nbytes)  ((_nbytes) >> PAGE_SHIFT_4KB)
 #endif