]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
rasdaemon: enforce SPDX license tags
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 19 Jul 2024 07:53:41 +0000 (09:53 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 19 Jul 2024 08:38:49 +0000 (10:38 +0200)
Replace license text comments with SPDX tags. For files that don't
have any license, use the COPYING license (GPL-2.0).

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
96 files changed:
.github/workflows/ci.yml
.github/workflows/gen_release.pl
.github/workflows/on_tag.yml
.travis.yml
Makefile.am
bitfield.c
bitfield.h
configure.ac
contrib/edac-fake-inject
contrib/edac-tests
contrib/mc_event_trigger
contrib/mem_fail_trigger
contrib/qemu_einj.py
labels/apple
labels/asrock
labels/asus
labels/dell
labels/gigabyte
labels/intel
labels/lenovo
labels/supermicro
man/Makefile.am
man/ras-mc-ctl.8.in
man/rasdaemon.1.in
mce-amd-k8.c
mce-amd-smca.c
mce-amd.c
mce-intel-broadwell-de.c
mce-intel-broadwell-epex.c
mce-intel-dunnington.c
mce-intel-haswell.c
mce-intel-i10nm.c
mce-intel-ivb.c
mce-intel-knl.c
mce-intel-nehalem.c
mce-intel-p4-p6.c
mce-intel-sb.c
mce-intel-skylake-xeon.c
mce-intel-tulsa.c
mce-intel.c
misc/ras-mc-ctl.service.in
misc/rasdaemon.env
misc/rasdaemon.service.in
misc/rasdaemon.spec.in
new_ver.sh
non-standard-ampere.c
non-standard-ampere.h
non-standard-hisi_hip08.c
non-standard-hisilicon.c
non-standard-hisilicon.h
non-standard-jaguarmicro.c
non-standard-jaguarmicro.h
non-standard-yitian.c
non-standard-yitian.h
queue.c
queue.h
ras-aer-handler.c
ras-aer-handler.h
ras-arm-handler.c
ras-arm-handler.h
ras-cpu-isolation.c
ras-cpu-isolation.h
ras-cxl-handler.c
ras-cxl-handler.h
ras-devlink-handler.c
ras-devlink-handler.h
ras-diskerror-handler.c
ras-diskerror-handler.h
ras-events.c
ras-events.h
ras-extlog-handler.c
ras-extlog-handler.h
ras-logger.h
ras-mc-handler.c
ras-mc-handler.h
ras-mce-handler.c
ras-mce-handler.h
ras-memory-failure-handler.c
ras-memory-failure-handler.h
ras-non-standard-handler.c
ras-non-standard-handler.h
ras-page-isolation.c
ras-page-isolation.h
ras-record.c
ras-record.h
ras-report.c
ras-report.h
rasdaemon.c
rbtree.c
rbtree.h
scripts/spelling.txt
trigger.c
trigger.h
types.h
util/Makefile.am
util/ras-mc-ctl.in

index b27d8a0486ac609d20997acac02c405163b715e2..81500b8ed97c7827afa6d9b81a596a94485e2c06 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 name: CI
 
 on:
index 75a698eed33e7c4b00c2aa7bb4ef30490c28fdb7..c21d17230a1453d39476bbf60ab7a4033baad6cb 100755 (executable)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 #!/usr/bin/perl
 
 my $body_path = shift or die "Need a file name to store the release body";
index 71f2b09ee9ed21d24ee1e3215850a1f2d993009f..2b5d4234e36d4ec874ca39d23a50d583eb5e39c5 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 name: Create release on tag
 
 on:
index b6aa28f1e22ef2b122959aaab266e71c3a986cfa..61101f6a23cb4f2c23d71c04d5834f4e48bffda0 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 language: cpp
 compiler: gcc
 dist: bionic
index 56a8a63d37102d8d83db073099d7796ad3ed2040..b6821f3f4d787af296475483e1baf972d8d36191 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 AM_DISTCHECK_CONFIGURE_FLAGS = --enable-all
 ACLOCAL_AMFLAGS=-I m4
 SUBDIRS = util man
index 7766579a12219ef2f30f3edc5572da222bd00dc0..a0003d71643ef2ae18b2b3c30033b45a7a96b0fd 100644 (file)
@@ -1,22 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  *
- * The code below were adapted from Andi Kleen/Intel/SuSe mcelog code,
- * released under GNU Public General License, v.2
- *
- * 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
+ * The code below were adapted from Andi Kleen/Intel/SUSE mcelog code,
+ * released under GNU Public General License, v.2.
  */
 
 #include <stdio.h>
index b38db429f6417115da4cbffafcbda493c40eb945..67545401c1bff6fcb49c3562bc501d1b869ebc86 100644 (file)
@@ -1,20 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
- * The code below came from Andi Kleen/Intel/SuSe mcelog code,
+ * The code below came from Andi Kleen/Intel/SUSE mcelog code,
  * released under GNU Public General License, v.2
- *
- * 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
  */
 
 #include <stdint.h>
index 9495a9de97ffb7de7ddcf86d37045468dafb4b71..1059f3ca14248f293205ff2866f8f90f920884e5 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 AC_INIT([RASdaemon],[0.8.1])
 AM_SILENT_RULES([yes])
 AC_CANONICAL_TARGET
index e0bbae7e835d2596d9f724d49705edc391270419..8ba533a85cf23d8f0bf6d789db73b5e19c20a23e 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
 
 MC="$(ls -d /sys/devices/system/edac/mc/mc? |sed -e s,.*/mc,,)"
 
index 4910de29dc81648e0f75dc991f0156a89b681aba..8872001f0f2aa1d6ab9402dac1071dc566315bb5 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
 
 FILE=new-$(hostname)-$(date +"%Y-%m-%d-%H-%M-%S").txt
 run() {
index 5c6ccfaa9e6c1c73f8697fd01fab7e7eaa0259eb..9862595d0ba8ec2fde31f7b3b743b09f40e0fd0a 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
+#
 #  This shell script can be executed by rasdaemon in daemon mode when a
 #  mc_event is occured, environment variables include all information
 #  reported by tracepoint.
index a3ac36211ccad6412f884c2b33510cd08d513b3a..d75ce507a9ca2e619b6e1a9b1d9b8c1746954395 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
+#
 #  This shell script can be executed by rasdaemon in daemon mode when a
 #  memory_failure_event is occured, environment variables include all
 #  information reported by tracepoint.
index 611d923f17dfdac71ce69378299f39f8206f6254..0c28660d6461361aa0bd98663cdbee3eea2098a8 100755 (executable)
@@ -3,7 +3,7 @@
 # pylint: disable=C0301, C0114
 # SPDX-License-Identifier: GPL-2.0
 #
-# Copyright (C) 2024  Mauro Carvalho Chehab <mchehab@kernel.org>
+# Copyright (C) 2024  Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
 
 import argparse
 import json
index 2fece6e960b39a3dc27e7f86b73b34e9161ac1d5..264c75e5f1f76f7ffaa67d5e6156dcf3a998549d 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 # RASDAEMON Motherboard DIMM labels Database file.
 #
 #  Vendor-name and model-name are found from the program 'dmidecode'
index d7dd29ac422306897ffcc1d0576fd95359765609..30ae8eafceddff77f2b7023ecef26887d038e543 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 # RASDAEMON Motherboard DIMM labels Database file.
 #
 #  Vendor-name and model-name are found from the program 'dmidecode'
index a18e8a15aca7f4f52117496598113591dcbdb5de..83090b4059923c8ed98ccb3ae535fe3a710598c4 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 # RASDAEMON Motherboard DIMM labels Database file.
 #
 #  Vendor-name and model-name are found from the program 'dmidecode'
index dadf2c1ed53454c5b3749c997130f0016943b20d..005dc03126ced085e8bf5425fdf7d4e6a6974595 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 # RASDAEMON Motherboard DIMM labels Database file.
 #
 #  Vendor-name and model-name are found from the program 'dmidecode'
index 31b6ad64e7e09a905a178f2f21a307edeaf238e8..5cc7e466b642515a9876520133dcb98e53ebff8e 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 #
 vendor: GIGABYTE
   model: MZ62-HD0-00
@@ -6,8 +8,8 @@ vendor: GIGABYTE
 #  <label>: <mc>.<row>.<channel>
 #  ras-mc-ctl  --layout
 #          +---------------------------------------------------------------------------------------------------+
-#          |                      mc0                      |                      mc1                      |
-#          |  csrow0   |  csrow1   |  csrow2   |  csrow3   |  csrow0   |  csrow1   |  csrow2   |  csrow3   |
+#          |                       mc0                       |                       mc1                       |
+#          |  csrow0    |  csrow1    |  csrow2   |  csrow3   |  csrow0    |  csrow1    |  csrow2   |  csrow3   |
 #----------+---------------------------------------------------------------------------------------------------+
 #channel7: |  16384 MB  |  16384 MB  |     0 MB  |     0 MB  |  16384 MB  |  16384 MB  |     0 MB  |     0 MB  |
 #channel6: |  16384 MB  |  16384 MB  |     0 MB  |     0 MB  |  16384 MB  |  16384 MB  |     0 MB  |     0 MB  |
index 5bf169d18afcc247ba1078f3583cfb565040139e..ca682f61d3c692356cbd16dcb3d5e47a04441c07 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 # RASDAEMON Motherboard DIMM labels Database file.
 #
 #  Vendor-name and model-name are found from the program 'dmidecode'
index 7bc0fa3de80846643b4be522aff07f0f1bb497e5..2d1e319c04cdfd773841742910a7ee6fc63ac4d5 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 # RASDAEMON Motherboard DIMM labels Database file.
 #
 #  Vendor-name and model-name are found from the program 'dmidecode'
@@ -22,4 +24,4 @@ Vendor: LENOVO
     CPU1_DIMM3: 0.0.0; # CPU_SrcID#0_MC#0_Chan#0_DIMM#0
     CPU1_DIMM4: 1.0.0; # CPU_SrcID#0_MC#1_Chan#0_DIMM#0
     CPU1_DIMM6: 1.1.0; # CPU_SrcID#0_MC#1_Chan#1_DIMM#0
-    CPU1_DIMM2: 1.2.0; # CPU_SrcID#0_MC#1_Chan#2_DIMM#0
\ No newline at end of file
+    CPU1_DIMM2: 1.2.0; # CPU_SrcID#0_MC#1_Chan#2_DIMM#0
index 2d77faecb6a822dd8a94af5d509dc411229be0ce..361313bbed1619f0675b8882415b1a874f5659db 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 # RASDAEMON Motherboard DIMM labels Database file.
 #
 #  Vendor-name and model-name are found from the program 'dmidecode'
index 2e66237fd06a87a22c67229e6a87b333d188d94c..f6c9521876000934c8981026de897bef00a3f2d4 100644 (file)
@@ -1,2 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
+
 man_MANS = ras-mc-ctl.8 rasdaemon.1
 
index a605122f25b7786a45c9e550b6f35cdd5a33fd90..e9309c8d55be2e5d0487f409f953513d63f4803c 100644 (file)
@@ -1,7 +1,9 @@
 .\"****************************************************************************
 .\" $Id$
 .\"****************************************************************************
-.\"Copyright (c) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
+.\"SPDX-License-Identifier: GPL-2.0-or-later"
+.\"
+.\"Copyright (c) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
 .\"This tool is a modification of the edac-ctl, written as part of the
 .\"edac-utils:
 .\" Copyright (C) 2006-2007 The Regents of the University of California.
index 833c8e10f7113a4660368cca5f4848f71e7818ca..7cfef54e40ac9b58d69ae9d5a86d313d38eb9186 100644 (file)
@@ -1,7 +1,9 @@
 .\"****************************************************************************
 .\" $Id$
 .\"****************************************************************************
-.\"Copyright (c) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
+.\" SPDX-License-Identifier: GPL-2.0-or-later
+.\"
+.\"Copyright (c) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
 .\"
 .\" This is free software; you can redistribute it and/or modify it
 .\" under the terms of the GNU General Public License as published by
index d76d49b5f832d50c3ba944fa6be105fff04ffbe9..37890f3bfe7cb42db59700793c55d60ff9a74551 100644 (file)
@@ -1,22 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  *
- * The code below were adapted from Andi Kleen/Intel/SuSe mcelog code,
+ * The code below were adapted from Andi Kleen/Intel/SUSE mcelog code,
  * released under GNU Public General License, v.2
- *
- * 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
  */
 
 #include <stdio.h>
index eaf35279f055ad88ddbd5eec38ac7254f4e58002..909cb357c025697af87eada089db044a84a41890 100644 (file)
@@ -1,14 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2018, AMD, Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * 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.
  */
 
 #include <stdio.h>
index c4a5dcf6f4a6cb00014d2daeec676edaa307d7ba..1519d0d2c036a470c0fbbd982b39866b982961c1 100644 (file)
--- a/mce-amd.c
+++ b/mce-amd.c
@@ -1,14 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2018, The AMD, Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * 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.
  */
 
 #include <stdio.h>
index 00670e185f6e3550f997001f78f794aa8e79343c..1d01a5b8a3fe9a42c968a3780232a2cd800c0a02 100644 (file)
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * The code below came from Tony Luck's mcelog code,
  * released under GNU Public General License, v.2
- *
- * 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
  */
 
 #include <stdio.h>
index 9646e4cab7f225615c02af29807a79e69e3b6d74..c4cc89a7afd21222eb28946e7503963532efc7ca 100644 (file)
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * The code below came from Tony Luck's mcelog code,
  * released under GNU Public General License, v.2
- *
- * 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
  */
 
 #include <stdio.h>
index ee75991bbeb9c2b369bfebcb813356c0822ae5a4..915dbe481fd0c7adb8f90857a30802a616f687a8 100644 (file)
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
- * The code below came from Andi Kleen/Intel/SuSe mcelog code,
+ * The code below came from Andi Kleen/Intel/SUSE mcelog code,
  * released under GNU Public General License, v.2
- *
- * 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
  */
 
 #include <stdio.h>
index 8b44464d93412420278b4ed86c3fbe620b0e5c2f..f5c26126d38d68b4754dc74ccb7f0c6311fc2a4e 100644 (file)
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * The code below came from Tony Luck mcelog code,
  * released under GNU Public General License, v.2
- *
- * 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
  */
 
 #include <stdio.h>
index ea91963df3d2a7417d1c6128823e4ac92dc550f0..e692d981c17bf29bb45e6dafbb0b56fc1ae192fd 100644 (file)
@@ -1,23 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * The code below came from Tony Luck's mcelog code,
  * released under GNU Public General License, v.2
  *
  * Copyright (C) 2019 Intel Corporation
  * Decode Intel 10nm specific machine check errors.
- *
- * 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
  */
 
 #include <inttypes.h>
index 36b66802206f153443f21abd3cf2dbe8a3d5ae93..257299e5b737ea7e9f15a14b8fe4c478c79f6af2 100644 (file)
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * The code below came from Tony Luck mcelog code,
  * released under GNU Public General License, v.2
- *
- * 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
  */
 
 #include <stdio.h>
index 50baa2a641ba209021f32696f926190f07dd9bcc..c63665220223858cd21487149bfb5ef1dc86ae86 100644 (file)
@@ -1,18 +1,4 @@
-/*
- * 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
- */
+// SPDX-License-Identifier: GPL-2.0-or-later
 
 #include <stdio.h>
 #include <string.h>
index aca85e7dfa79bf5ea32ec37e2e87a221262d6af6..227feae2151b11f9a03190c1bffa32d7a59f467e 100644 (file)
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
- * The code below came from Andi Kleen/Intel/SuSe mcelog code,
+ * The code below came from Andi Kleen/Intel/SUSE mcelog code,
  * released under GNU Public General License, v.2
- *
- * 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
  */
 
 #include <stdio.h>
index 9f93314e89aec1b8513966bb6b7bf1db02531017..277c344dbdd82275e09a0d2e88324a175f0ea028 100644 (file)
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
- * The code below came from Andi Kleen/Intel/SuSe mcelog code,
+ * The code below came from Andi Kleen/Intel/SUSE mcelog code,
  * released under GNU Public General License, v.2
- *
- * 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
  */
 
 #include <stdio.h>
index bffdd5b48e0379a13413d7548e1bd0be559d876b..b1db3169f346f2e5f238357e37d246f485a7343e 100644 (file)
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
- * The code below came from Andi Kleen/Intel/SuSe mcelog code,
+ * The code below came from Andi Kleen/Intel/SUSE mcelog code,
  * released under GNU Public General License, v.2
- *
- * 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
  */
 
 #include <stdio.h>
index e8ff33714273b6afe72b94b84e0b9030b047f363..417cec2085ee188ef96d8b3b68cb7c1ea2d120fb 100644 (file)
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * The code below came from Tony Luck's mcelog code,
  * released under GNU Public General License, v.2
- *
- * 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
  */
 
 #include <stdio.h>
index ad9980454f2691ebfaee8b3b8184c37a320050c8..cbe774a8e2c6248dbd3215577e48fc2d08fb94d3 100644 (file)
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
- * The code below came from Andi Kleen/Intel/SuSe mcelog code,
+ * The code below came from Andi Kleen/Intel/SUSE mcelog code,
  * released under GNU Public General License, v.2
- *
- * 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
  */
 
 #include <stdio.h>
index b399467eb783c6a105d53d07913556e925c1876e..0ff3072dfd0ea7f55c681bd8ddbcda5698ef44dc 100644 (file)
@@ -1,22 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  *
- * The code below were adapted from Andi Kleen/Intel/SuSe mcelog code,
+ * The code below were adapted from Andi Kleen/Intel/SUSE mcelog code,
  * released under GNU Public General License, v.2
- *
- * 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
  */
 
 #include <errno.h>
index 8cb3651bb13edd11d0b786a77669afe4df6b2141..6089ec005c21559fb7f441d46a73e505c05953f0 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 [Unit]
 Description=Initialize EDAC v3.0.0 Drivers For Machine Hardware
 
index 3389a73861ae7fb29f7338dd6fc5eca1aa41c0d0..975eafe08ea9810c4b0c74b26ab0e925248a6317 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 # Page Isolation
 # Note: Run-time configuration is unsupported, service restart needed.
 # Note: this file should be installed at /etc/sysconfig/rasdaemon
index ff68b53a53d0a278808d62df0d459d0fc30783a8..0bb643f7c2d0b3c39386ec99fb259630e99939f1 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 [Unit]
 Description=RAS daemon to log the RAS events
 # only needed when not running in foreground (--foreground | -f)
index 5a6906e031a081e7881e99ae45831690988c6f5e..32c69b74df9b4053e74f7cd66443849de3c4502d 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
 Name:                  @PACKAGE@
 Version:               @PACKAGE_VERSION@
 Release:               1%{?dist}
index e3fe5fd42486bb60de899be78ea640ff8bb933f4..844a66f5646671c18f768bcd40af9e46c399a779 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
 
 autoreconf && ./configure --enable-all
 
index 01f63911a0ebec39a9fd029f479ac28c84b74c37..328f281b4f641a59cf4b32dd5a80394f81f0e9e1 100644 (file)
@@ -1,11 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (c) 2020, Ampere Computing LLC.
- *
- * 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.
- *
  */
 
 #include <stdbool.h>
index 1e1a0fa96aaca4c42e763c45cfe08298d786beb0..d986d48d98815d89f0373fabf1bf1ab242d3d033 100644 (file)
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Copyright (c) 2020, Ampere Computing LLC.
- *
- * 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.
- *
  */
 
 #ifndef __NON_STANDARD_AMPERE_H
index 853429683b318b2230490411a3990723483657f9..de5b5e903b2ad722a66a07900e2d6ca5f4cbe58e 100644 (file)
@@ -1,11 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (c) 2019 Hisilicon Limited.
- *
- * 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.
- *
  */
 
 #include <stdio.h>
index b8cd4d0a130d05ac81e57de7cf806f54bc72f3ae..35a006eb645ca891d00572954fe74cc579718d7a 100644 (file)
@@ -1,11 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (c) 2020 Hisilicon Limited.
- *
- * 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.
- *
  */
 
 #include <stdio.h>
index f39fabe0b8ba8b81a61afa93604dbc19a7b99319..44da9e7532afdfe4f314d5ef865a551925fea4fa 100644 (file)
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Copyright (c) 2020 Hisilicon Limited.
- *
- * 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.
- *
  */
 
 #ifndef __NON_STANDARD_HISILICON_H
index df763e7a07c279ea7713fcdc78d4997d98711381..ed05faa85303b268585fd0593759111c1b72d170 100644 (file)
@@ -1,11 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (c) 2023, JaguarMicro
- *
- * 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.
- *
  */
 
 #include "non-standard-jaguarmicro.h"
index b2f338049d3c80804ae4b2a38234885984d85b6a..bd2b49a5feadf50e22088dc4930ca7da83ae554b 100644 (file)
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Copyright (c) 2023, JaguarMicro
- *
- * 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.
- *
  */
 
 #ifndef __NON_STANDARD_JAGUAR_H
index 3f1eeb20f7f9207a29efdba7efac2024b52941b6..8daf5277dc1102a41333401c82a12aa4aef6fad4 100644 (file)
@@ -1,11 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (C) 2023 Alibaba Inc
- *
- * 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.
- *
  */
 
 #include <stdbool.h>
index 9f5af72e745d9c0d5a686871fa07ae21357407a0..082935a81724406f1622fbc4f50e10c8f05e269d 100644 (file)
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Copyright (C) 2023 Alibaba Inc
- *
- * 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.
- *
  */
 
 #ifndef __NON_STANDARD_YITIAN_H
diff --git a/queue.c b/queue.c
index 655ccd80b1d63922ba70c62da301fc084a2c32fe..8a8c50041b41bec5c2f76b7ea709fab0171eccb7 100644 (file)
--- a/queue.c
+++ b/queue.c
@@ -1,15 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved.
- *
- * 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.
  */
 
 #include <stdio.h>
diff --git a/queue.h b/queue.h
index 5459f403a94e1bf13da06169f9c4520e8ec97f31..4161964df9b3756440ee1dddbaab35e19b0992d3 100644 (file)
--- a/queue.h
+++ b/queue.h
@@ -1,15 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved.
- *
- * 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.
  */
 
 #ifndef __RAS_QUEUE_H
index e5fe23a2138082c509a6220c5b1dea5122a02757..cf3ecd3bf510aaeab67b0d9ba2bffaa4ba0313a8 100644 (file)
@@ -1,19 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
- *
- * 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
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  */
 
 #include <stdio.h>
index 0b483a51bfaa6a6af1c1d8495a7032010234928b..5eee690c099f1e33694a74781ea27fbecfbb5620 100644 (file)
@@ -1,19 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
- *
- * 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
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  */
 
 #ifndef __RAS_AER_HANDLER_H
index 77f635817fe87f4563b38d12e2acf8b4097f34cc..949be69e5e3f49df253817ed8d29ff673f6857e5 100644 (file)
@@ -1,14 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
-
- * 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.
  */
 
 #include <stdio.h>
index c2499ea6977e17f605d2c305a95a3948956235bc..a46c497096913f9899b65c38396c1b243f9efe96 100644 (file)
@@ -1,14 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
 /*
  * Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
-
- * 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.
  */
 
 #ifndef __RAS_ARM_HANDLER_H
index 90200c5d26f022e05f3b4d606222adb0a990c359..6abf6a3e28f0f7a3d7a1b5d3714caeb0f55cb3cd 100644 (file)
@@ -1,15 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved.
- *
- * 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.
  */
 
 #include <stdio.h>
index 5682106a7089abbc4850f8b5b8f2a47cd8553ba5..888a6c511c4893108506da6458bc4cf9a897b11a 100644 (file)
@@ -1,15 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
 /*
  * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved.
- *
- * 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.
  */
 
 #ifndef __RAS_CPU_ISOLATION_H
index 9f997e4fd3cbe7acd43d75389e6b4b41236c091b..037c19ce09dafff424a0ab695485ea1f274581bc 100644 (file)
@@ -1,15 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (c) Huawei Technologies Co., Ltd. 2023. All rights reserved.
- *
- * 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.
  */
 
 #include <endian.h>
index 5495f0d8646989d43f7911c87ee327900b7261fe..20c79580660e379d643f1aa868694f35c684aa08 100644 (file)
@@ -1,15 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Copyright (c) Huawei Technologies Co., Ltd. 2023. All rights reserved.
- *
- * 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.
  */
 
 #ifndef __RAS_CXL_HANDLER_H
index e27552191c5fc2c407adfcb30c918da914e15a7b..da5645d71e2f54d768fd8a45c4ecb64fae07ba2b 100644 (file)
@@ -1,19 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (C) 2019 Cong Wang <xiyou.wangcong@gmail.com>
- *
- * 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
  */
 
 #define _GNU_SOURCE
index a759ec14c65e5e397397adfc540bb07d4c2aaf35..47553da30ddc1e4dc707807baaf1ff2375f12410 100644 (file)
@@ -1,19 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Copyright (C) 2019 Cong Wang <xiyou.wangcong@gmail.com>
- *
- * 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
  */
 
 #ifndef __RAS_DEVLINK_HANDLER_H
index cf9cef0849de768ae5dd2fb7911cf24954070350..7fe49104d6ec94bc952e966338001b54f4174885 100644 (file)
@@ -1,19 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (C) 2019 Cong Wang <xiyou.wangcong@gmail.com>
- *
- * 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
  */
 
 #define _GNU_SOURCE
index 9581b3829b758249c367fa2cf7c53a0bd61e144c..9be82d653bc05c3bae3392b74d902db48fa6c7c2 100644 (file)
@@ -1,19 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Copyright (C) 2019 Cong Wang <xiyou.wangcong@gmail.com>
- *
- * 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
  */
 
 #ifndef __RAS_DISKERROR_HANDLER_H
index 27e2d50194bf05433f09299459f753b99afed536..b6e80b2927cd1ba0e8aacb0fb8f56e5e79db24c9 100644 (file)
@@ -1,19 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
- *
- * 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
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  */
 
 #include <dirent.h>
index c94bdd633dc5e50285c373b0a02bf6926197f4ad..47cc524fc4010d0a8408ff84b4ca49fca50579ab 100644 (file)
@@ -1,19 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
- *
- * 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
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  */
 
 #ifndef __RAS_EVENTS_H
index 8d4739ebc74a4c8fc601f646394290cc9cef396d..46c06cfa14e06863c46f7acbd5354245234021cf 100644 (file)
@@ -1,19 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * Copyright (C) 2014 Tony Luck <tony.luck@intel.com>
- *
- * 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
  */
 
 #include <ctype.h>
index 92f5c65b8fa7f9b9049965902bb5b3378cb83737..4a9732371bbf0556e06c526d21f89354bf54d8a8 100644 (file)
@@ -1,19 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Copyright (C) 2014 Tony Luck <tony.luck@intel.com>
- *
- * 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
  */
 
 #ifndef __RAS_EXTLOG_HANDLER_H
index 6afe41f5192f58c9983f88f281c2e650096d1f5a..75eb4db3a338cd94124364ea0a5bf66a6bb41876 100644 (file)
@@ -1,19 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Copyright (C) 2013 Petr Holasek <pholasek@redhat.com>
- *
- * 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
  */
 
 #ifndef __RAS_LOGGER_H
index 00d98433fd808e69b936529ecce165d056b0236a..191c045a568b608c952c501cf2e10aeb12f2d2a3 100644 (file)
@@ -1,19 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
- *
- * 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
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  */
 
 #define _GNU_SOURCE
index 72b3c2a1af449893a4da2f887b09d34e43ab1de0..2aa3c28305762a30a5c21f130fa07121c7b92fcf 100644 (file)
@@ -1,19 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
- *
- * 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
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  */
 
 #ifndef __RAS_MC_HANDLER_H
index c9b17d377e6c5d50ad3b881fde16872b07dd5373..ea58ac09126701bec7fa7145dfe317277271a3e0 100644 (file)
@@ -1,19 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
- *
- * 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
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  */
 
 #include <ctype.h>
@@ -31,7 +19,7 @@
 #include "types.h"
 
 /*
- * The code below were adapted from Andi Kleen/Intel/SuSe mcelog code,
+ * The code below were adapted from Andi Kleen/Intel/SUSE mcelog code,
  * released under GNU Public General License, v.2
  */
 static char *cputype_name[] = {
index 21818a46f32ba2f7229e7ffdb9c15c9a1404d0cd..57984ecc43571d70f801e9b750dcb1c5f6aeceed 100644 (file)
@@ -1,19 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
- *
- * 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
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  */
 
 #ifndef __RAS_MCE_HANDLER_H
index 358bc9a247257fd814d52a733beb86f3d3e22fd3..7ca0e802673767f2c0bd9995164feeb84561db3c 100644 (file)
@@ -1,15 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (c) Huawei Technologies Co., Ltd. 2020. All rights reserved.
- *
- * 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.
  */
 
 #include <assert.h>
index 217f1569b30291fbe5fe721bea646721464ff084..f0cea71d0f2c4bc494bd90e296a5edbb7afe8ae6 100644 (file)
@@ -1,15 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Copyright (c) Huawei Technologies Co., Ltd. 2020. All rights reserved.
- *
- * 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.
  */
 
 #ifndef __RAS_MEMORY_FAILURE_HANDLER_H
index 6d830fd8d3a162ba0a5eb25e0b5bebd33cfef0d6..b6b24d4d5c0594c45bd10b1b6fd0c3377d554c0e 100644 (file)
@@ -1,14 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
-
- * 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.
  */
 
 #include <stdbool.h>
index 3b7302b467cd28e12899d5b1b00588c34b31e1d7..e73dbcb29fdefdd3b29a4535947c30819161d9b4 100644 (file)
@@ -1,14 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
 /*
  * Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
-
- * 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.
  */
 
 #ifndef __RAS_NON_STANDARD_HANDLER_H
index d3706c1f5d00facfb5eabaa17e106b2dd1686e36..bb6b7770b641b17702913a4fba69f7b0a975a6bf 100644 (file)
@@ -1,15 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
- *
- * 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.
  */
 
 #include <ctype.h>
index 36c21a18943f33f373df5859d88997125bdee3bf..73c915788dc785d9eec1b5adf48041eda05eba68 100644 (file)
@@ -1,15 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
  * Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
- *
- * 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.
  */
 
 #ifndef __RAS_PAGE_ISOLATION_H
index 5cc81ea2b623c1d1ca7bfc60d7025e63bdc33e92..672bd57412a13b59f3e01ec12062eea6a1a8ba07 100644 (file)
@@ -1,20 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  * Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * 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
  */
 
 #include <errno.h>
index 750e2bb949802d15fa2ba9036991ab34c02c863e..bd861ff268c3d6cce1dffae84fabf56043c136c0 100644 (file)
@@ -1,20 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  * Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * 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
  */
 
 #ifndef __RAS_RECORD_H
index 3898041e82fd2a64badb20d4f8f0dca9d451743f..91f129dc5694ad14e37818f3c2713618d11a46e8 100644 (file)
@@ -1,14 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
+
 /*
  * Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
-
- * 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.
  */
 
 #include <stdio.h>
index 73e79778e2f2490524280c498b4bbd4c05285be2..ceb64ce0b81a88b35ecdf4016356be3e740b5fa4 100644 (file)
@@ -1,14 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
 /*
  * Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
-
- * 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.
  */
 
 #ifndef __RAS_REPORT_H
index 02e863e90912802c47dbdb0b3ae8663185199f81..95f997dcb64923804b0c900d2ec425a555b2d779 100644 (file)
@@ -1,19 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
- *
- * 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
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  */
 
 #include <argp.h>
index a29034679a7bc403b71e756e830427958a0d6dcc..e2caf35a18bf82eb5407e6aa974048f9b0bf5599 100644 (file)
--- a/rbtree.c
+++ b/rbtree.c
@@ -1,22 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Red Black Trees
  * (C) 1999  Andrea Arcangeli <andrea@suse.de>
  * (C) 2002  David Woodhouse <dwmw2@infradead.org>
  * Taken from the Linux 2.6.30 source with some minor modifications.
- *
- * 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include "rbtree.h"
index 398d3185bd05432b10257e786325b6185c1943fd..4ef97f4b94da21eecc538824e1e7ab3bd146c48a 100644 (file)
--- a/rbtree.h
+++ b/rbtree.h
@@ -1,21 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * Red Black Trees
  * (C) 1999  Andrea Arcangeli <andrea@suse.de>
  * Taken from the Linux 2.6.30 source.
-
- * 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 /*
index edec60d39bbf5086bc97fdda688b87f21ec16512..06c006ae98e5a598bd735e22a40d2aec23e94d67 100644 (file)
@@ -1,9 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0
+#
 # Originally from Debian's Lintian tool. Various false positives have been
 # removed, and various additions have been made as they've been discovered
 # in the kernel source.
 #
-# License: GPLv2
-#
 # The format of each line is:
 # mistake||correction
 #
index 113ac04e13a34e2c4739398001bf1e7c3d61b466..aa19a22f53e1d6e6b4ac56811801e0980ee98b29 100644 (file)
--- a/trigger.c
+++ b/trigger.c
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+
 #define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
index 0cc9df5501a122d51d848c1af506ae5817d561d9..7d25042e104381bcf8deb1383416d620ab7c0ff7 100644 (file)
--- a/trigger.h
+++ b/trigger.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
 #ifndef __TRIGGER_H__
 #define __TRIGGER_H__
 
diff --git a/types.h b/types.h
index 9f5060d7c00d399637b08144ae72d0ce26c01a34..58cac1f57a3c8f8f67e451ddb187d68b24991be5 100644 (file)
--- a/types.h
+++ b/types.h
@@ -1,21 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /*
- * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
- * Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * 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
+ * Copyright (C) 2013 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  */
 
 #ifndef __TYPES_H
index 950f4c0ea0f6ee4983ccf8e83719dda113ff9b63..9f779b1505d5958494a4b812fd4e533803d6fb29 100644 (file)
@@ -1,2 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
 dist_sbin_SCRIPTS = \
        ras-mc-ctl
index d53a12bd4ef402d6da926617bd8356151c93b0ec..c5166ea0e15d5b6e236c378062a849c1b8637286 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/perl -w
+# SPDX-License-Identifier: GPL-2.0
 
 #******************************************************************************
 # Copyright (c) 2013 Mauro Carvalho Chehab <mchehab+redhat@kernel.org>
 #  This version uses the new EDAC v 3.0.0 and upper API, with adds proper
 #  representation for the memory controllers found on Intel designs after
 #  2002. It requires Linux Kernel 3.5 or upper to work.
-#
-#  This 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 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.
 #****************************************************************************/
 
 use strict;