X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=wrapper%2Frandom.c;h=eb41769c650f54d1ddb569f207a1bc45e0765292;hb=01a12501e0b0395b60c7e392cb7dded51ae572ca;hp=82876e75152b9d8c32240f6180043c89dbdaf287;hpb=2fa61a31bef36ed9a9ddb8652a9e82d4e0c739ce;p=lttng-modules.git diff --git a/wrapper/random.c b/wrapper/random.c index 82876e75..eb41769c 100644 --- a/wrapper/random.c +++ b/wrapper/random.c @@ -1,4 +1,5 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + * * wrapper/random.c * * wrapper around bootid read. Using KALLSYMS to get its address when @@ -6,20 +7,6 @@ * modules. * * Copyright (C) 2011-2012 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 @@ -68,6 +55,7 @@ end: filp_close(file, current->files); return ret; } +EXPORT_SYMBOL_GPL(wrapper_get_bootid); #else @@ -75,5 +63,6 @@ int wrapper_get_bootid(char *bootid) { return -ENOSYS; } +EXPORT_SYMBOL_GPL(wrapper_get_bootid); #endif