Skip to content

Commit

Permalink
rasdaemon: enforce SPDX license tags
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mchehab committed Jul 19, 2024
1 parent 15f32fc commit b10da30
Show file tree
Hide file tree
Showing 96 changed files with 207 additions and 794 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0

name: CI

on:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gen_release.pl
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/on_tag.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0

name: Create release on tag

on:
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0

language: cpp
compiler: gcc
dist: bionic
Expand Down
2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0

AM_DISTCHECK_CONFIGURE_FLAGS = --enable-all
ACLOCAL_AMFLAGS=-I m4
SUBDIRS = util man
Expand Down
21 changes: 4 additions & 17 deletions bitfield.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
17 changes: 2 additions & 15 deletions bitfield.h
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0

AC_INIT([RASdaemon],[0.8.1])
AM_SILENT_RULES([yes])
AC_CANONICAL_TARGET
Expand Down
1 change: 1 addition & 0 deletions contrib/edac-fake-inject
Original file line number Diff line number Diff line change
@@ -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,,)"

Expand Down
1 change: 1 addition & 0 deletions contrib/edac-tests
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0

FILE=new-$(hostname)-$(date +"%Y-%m-%d-%H-%M-%S").txt
run() {
Expand Down
2 changes: 2 additions & 0 deletions contrib/mc_event_trigger
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 2 additions & 0 deletions contrib/mem_fail_trigger
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion contrib/qemu_einj.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# pylint: disable=C0301, C0114
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (C) 2024 Mauro Carvalho Chehab <[email protected]>
# Copyright (C) 2024 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

import argparse
import json
Expand Down
2 changes: 2 additions & 0 deletions labels/apple
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 2 additions & 0 deletions labels/asrock
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 2 additions & 0 deletions labels/asus
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 2 additions & 0 deletions labels/dell
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 4 additions & 2 deletions labels/gigabyte
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0

#
vendor: GIGABYTE
model: MZ62-HD0-00
Expand All @@ -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 |
Expand Down
2 changes: 2 additions & 0 deletions labels/intel
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
4 changes: 3 additions & 1 deletion labels/lenovo
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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
CPU1_DIMM2: 1.2.0; # CPU_SrcID#0_MC#1_Chan#2_DIMM#0
2 changes: 2 additions & 0 deletions labels/supermicro
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 2 additions & 0 deletions man/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# SPDX-License-Identifier: GPL-2.0

man_MANS = ras-mc-ctl.8 rasdaemon.1

4 changes: 3 additions & 1 deletion man/ras-mc-ctl.8.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.\"****************************************************************************
.\" $Id$
.\"****************************************************************************
.\"Copyright (c) 2013 Mauro Carvalho Chehab <[email protected]>
.\"SPDX-License-Identifier: GPL-2.0-or-later"
.\"
.\"Copyright (c) 2013 Mauro Carvalho Chehab <[email protected]>
.\"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.
Expand Down
4 changes: 3 additions & 1 deletion man/rasdaemon.1.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.\"****************************************************************************
.\" $Id$
.\"****************************************************************************
.\"Copyright (c) 2013 Mauro Carvalho Chehab <[email protected]>
.\" SPDX-License-Identifier: GPL-2.0-or-later
.\"
.\"Copyright (c) 2013 Mauro Carvalho Chehab <[email protected]>
.\"
.\" This is free software; you can redistribute it and/or modify it
.\" under the terms of the GNU General Public License as published by
Expand Down
19 changes: 3 additions & 16 deletions mce-amd-k8.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
10 changes: 1 addition & 9 deletions mce-amd-smca.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
10 changes: 1 addition & 9 deletions mce-amd.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
15 changes: 1 addition & 14 deletions mce-intel-broadwell-de.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
16 changes: 2 additions & 14 deletions mce-intel-broadwell-epex.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
18 changes: 3 additions & 15 deletions mce-intel-dunnington.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
16 changes: 2 additions & 14 deletions mce-intel-haswell.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
16 changes: 2 additions & 14 deletions mce-intel-i10nm.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
Loading

0 comments on commit b10da30

Please sign in to comment.