X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lib%2Falign.h;h=94acacf2f66253d598864355d73ccb0479ab8707;hb=6bb4326c067161532e0e6f3a0deec2d28b4595e8;hp=0b861000300c726ec2e0f242b1d31ca8d020ccde;hpb=6c29ebe78ae39a3eaf707aec5ad0988df0e13ca4;p=lttng-modules.git diff --git a/lib/align.h b/lib/align.h index 0b861000..94acacf2 100644 --- 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 or LGPL-2.1) * - * (C) Copyright 2010-2011 - Mathieu Desnoyers + * lib/align.h * - * Dual LGPL v2.1/GPL v2 license. + * Copyright (C) 2010-2012 Mathieu Desnoyers */ +#ifndef _LTTNG_ALIGN_H +#define _LTTNG_ALIGN_H + #ifdef __KERNEL__ #include -#include "bug.h" +#include #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))); \ - (((align_drift) - (alignment)) & ((alignment) - 1); \ + (((align_drift) - (alignment)) & ((alignment) - 1)); \ }) #endif /* __KERNEL__ */