X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=wrapper%2Fpage_alloc.h;h=6d833d9970096fea98ddd745e10c0ce761f827a9;hb=2d0428212cbfa3f8428feee160b095f48c2ac974;hp=3a522a9d3307e221a68e19af688c9879d3d3d485;hpb=5a2f5e92e422d87a28581ba97e6b1789ff743bc6;p=lttng-modules.git diff --git a/wrapper/page_alloc.h b/wrapper/page_alloc.h index 3a522a9d..6d833d99 100644 --- a/wrapper/page_alloc.h +++ b/wrapper/page_alloc.h @@ -1,7 +1,5 @@ -#ifndef _LTTNG_WRAPPER_PAGE_ALLOC_H -#define _LTTNG_WRAPPER_PAGE_ALLOC_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + * * wrapper/page_alloc.h * * wrapper around get_pfnblock_flags_mask. Using KALLSYMS to get its address @@ -9,22 +7,11 @@ * GPL modules. * * Copyright (C) 2015 Mathieu Desnoyers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; only - * version 2.1 of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef _LTTNG_WRAPPER_PAGE_ALLOC_H +#define _LTTNG_WRAPPER_PAGE_ALLOC_H + #include /* @@ -32,7 +19,7 @@ * the get_pageblock_migratetype() macro uses it. */ #if (defined(CONFIG_KALLSYMS) \ - && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2) \ + && (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,19,2) \ || LTTNG_KERNEL_RANGE(3,14,36, 3,15,0) \ || LTTNG_KERNEL_RANGE(3,18,10, 3,19,0) \ || LTTNG_DEBIAN_KERNEL_RANGE(3,16,7,9,0,0, 3,17,0,0,0,0) \