projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update for kernel 5.7: use vmalloc_sync_mappings on kernels >= 5.7
[lttng-modules.git]
/
lib
/
align.h
diff --git
a/lib/align.h
b/lib/align.h
index 0b861000300c726ec2e0f242b1d31ca8d020ccde..c06954946beb66496ac0f7d3a37290ef9774c6f1 100644
(file)
--- a/
lib/align.h
+++ b/
lib/align.h
@@
-1,18
+1,17
@@
-#ifndef _LTTNG_ALIGN_H
-#define _LTTNG_ALIGN_H
-
-/*
- * lib/align.h
+/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
*
*
- *
(C) Copyright 2010-2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
lib/align.h
*
*
- *
Dual LGPL v2.1/GPL v2 license.
+ *
Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
*/
+#ifndef _LTTNG_ALIGN_H
+#define _LTTNG_ALIGN_H
+
#ifdef __KERNEL__
#include <linux/types.h>
#ifdef __KERNEL__
#include <linux/types.h>
-#include
"bug.h"
+#include
<lib/bug.h>
#define ALIGN_FLOOR(x, a) __ALIGN_FLOOR_MASK(x, (typeof(x)) (a) - 1)
#define __ALIGN_FLOOR_MASK(x, mask) ((x) & ~(mask))
#define ALIGN_FLOOR(x, a) __ALIGN_FLOOR_MASK(x, (typeof(x)) (a) - 1)
#define __ALIGN_FLOOR_MASK(x, mask) ((x) & ~(mask))
@@
-53,7
+52,7
@@
({ \
BUILD_RUNTIME_BUG_ON((alignment) == 0 \
|| ((alignment) & ((alignment) - 1))); \
({ \
BUILD_RUNTIME_BUG_ON((alignment) == 0 \
|| ((alignment) & ((alignment) - 1))); \
- (((align_drift) - (alignment)) & ((alignment) - 1)
;
\
+ (((align_drift) - (alignment)) & ((alignment) - 1)
);
\
})
#endif /* __KERNEL__ */
})
#endif /* __KERNEL__ */
This page took
0.027222 seconds
and
4
git commands to generate.