mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
27 lines
694 B
Diff
27 lines
694 B
Diff
diff --git a/bitops.h b/bitops.h
|
|
index 323c571..7f30b06 100644
|
|
--- a/kernel-lib/bitops.h
|
|
+++ b/kernel-lib/bitops.h
|
|
@@ -69,6 +65,9 @@ static inline unsigned long hweight_long(unsigned long w)
|
|
}
|
|
|
|
#define BITOP_WORD(nr) ((nr) / BITS_PER_LONG)
|
|
+#ifndef __always_inline
|
|
+#define __always_inline inline __attribute__((always_inline))
|
|
+#endif
|
|
|
|
/**
|
|
* __ffs - find first bit in word.
|
|
diff --git a/kerncompat.h.orig b/kerncompat.h
|
|
index bb03194e127e..28f832a2e625 100644
|
|
--- a/kerncompat.h
|
|
+++ b/kerncompat.h
|
|
@@ -28,6 +28,7 @@
|
|
#include <assert.h>
|
|
#include <stddef.h>
|
|
#include <linux/types.h>
|
|
+#include <linux/limits.h>
|
|
#include <stdint.h>
|
|
|
|
#define ptr_to_u64(x) ((u64)(uintptr_t)x)
|