Cleanup: remove trailing white spaces across project
[lttng-modules.git] / wrapper / random.c
index 5b88f7edd7a5e60d1d8444b40e3047869ea247f0..0bd853ba4a8774e3b5fbab26bded1d8a599a617d 100644 (file)
@@ -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,22 +7,10 @@
  * modules.
  *
  * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
- * 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 <linux/errno.h>
+
 /* boot_id depends on sysctl */
 #if defined(CONFIG_SYSCTL)
 
@@ -29,7 +18,7 @@
 #include <linux/file.h>
 #include <linux/sched.h>
 #include <linux/uaccess.h>
-#include "random.h"
+#include <wrapper/random.h>
 
 /*
  * Returns string boot id.
@@ -58,7 +47,7 @@ int wrapper_get_bootid(char *bootid)
                ret = -EINVAL;
                goto end;
        }
-       
+
        bootid[BOOT_ID_LEN - 1] = '\0';
        ret = 0;
 end:
This page took 0.023878 seconds and 4 git commands to generate.