]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: make SPDX License expression more sound
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Thu, 16 Dec 2021 09:45:03 +0000 (10:45 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jan 2022 20:44:27 +0000 (15:44 -0500)
commit9142fad4365fda9bd9db14fae4bc244f07ebdd4b
treec85474f7fdf13f05ed6f04a19f78f573d44cb5a5
parent7b3573b3036ae7aba00af3e4c4fa571c249936c0
drm/amdkfd: make SPDX License expression more sound

Commit 6f62a2944e34 ("drm/amdkfd: Add sysfs bitfields and enums to uAPI")
adds include/uapi/linux/kfd_sysfs.h with the "GPL-2.0 OR MIT WITH
Linux-syscall-note" SPDX-License expression.

The command ./scripts/spdxcheck.py warns:

  include/uapi/linux/kfd_sysfs.h: 1:48 Exception not valid for license MIT: Linux-syscall-note

For a uapi header, the file under GPLv2 License must be combined with the
Linux-syscall-note, but combining the MIT License with the
Linux-syscall-note makes no sense, as the note provides an exception for
GPL-licensed code, not for permissively licensed code.

So, reorganize the SPDX expression to only combine the note with the GPL
License condition. This makes spdxcheck happy again.

Fixes: 6f62a2944e34 ("drm/amdkfd: Add sysfs bitfields and enums to uAPI")
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Reviewed-by: kstewart@linuxfoundation.org
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
include/uapi/linux/kfd_sysfs.h