X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Fpage_alloc.h;h=6d833d9970096fea98ddd745e10c0ce761f827a9;hb=5b3fb979c7f3c5ab12f2489f71d9617624f7cc2d;hp=7802a12a960ae4bf08193fefc3ae733e256e7049;hpb=397c12b422ce844037885f5c35d824dd5ae4fec6;p=lttng-modules.git diff --git a/wrapper/page_alloc.h b/wrapper/page_alloc.h index 7802a12a..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,30 +7,19 @@ * 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 */ -#include "../lttng-kernel-version.h" +#ifndef _LTTNG_WRAPPER_PAGE_ALLOC_H +#define _LTTNG_WRAPPER_PAGE_ALLOC_H + +#include /* * We need to redefine get_pfnblock_flags_mask to our wrapper, because * 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) \