diff mbox series

[v2,8/8] API/tst_tsc: Add guards and remove some boilerplate

Message ID 20210714071158.15868-9-rpalethorpe@suse.com
State Changes Requested
Headers show
Series Sparse based checker and rule proposal | expand

Commit Message

Richard Palethorpe July 14, 2021, 7:11 a.m. UTC
Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
---
 include/tst_tsc.h | 35 ++++++++---------------------------
 1 file changed, 8 insertions(+), 27 deletions(-)

Comments

Petr Vorel July 14, 2021, 11:22 a.m. UTC | #1
Hi Richie,

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr
diff mbox series

Patch

diff --git a/include/tst_tsc.h b/include/tst_tsc.h
index 9ad5fd659..3f49a6ca7 100644
--- a/include/tst_tsc.h
+++ b/include/tst_tsc.h
@@ -1,28 +1,6 @@ 
-/******************************************************************************
- *
- *   Copyright © International Business Machines  Corp., 2006-2008
- *
- *   This program is free software;  you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation; either version 2 of the License, or
- *   (at your option) any later version.
- *
- *   This program 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 General Public License for more details.
- *
- *   You should have received a copy of the GNU General Public License
- *   along with this program;  if not, write to the Free Software
- *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * NAME
- *       libtsc.h
- *
- * DESCRIPTION
- *
- * USAGE:
- *       To be included in some testcases.
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright © International Business Machines  Corp., 2006-2008
  *
  * AUTHOR
  *        Darren Hart <dvhltc@us.ibm.com>
@@ -30,8 +8,10 @@ 
  *
  * HISTORY
  *      It directly comes from the librttest.h (see its HISTORY).
- *
- *****************************************************************************/
+ */
+
+#ifndef TST_TSC_H
+#define TST_TSC_H
 
 #undef TSC_UNSUPPORTED
 
@@ -70,3 +50,4 @@ 
 #define TSC_UNSUPPORTED
 #endif
 
+#endif