Skip to contentSkip to conversation

gpu/drm_memory: fix a few warnings

PATCH RESEND Superseded Qian Cai 1 participant 2 messages Jun 7, 2019 – Jun 21, 2019

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Qian Cai

author
#0 lore raw

PATCH RESEND 1/1 gpu/drm_memory: fix a few warnings

The opening comment mark "/**" is reserved for kernel-doc comments, so it will generate a warning with "make W=1".

drivers/gpu/drm/drm_memory.c:2: warning: Cannot understand * \file drm_memory.c

Also, silence a checkpatch warning by adding a license identfiter where it indicates the MIT license further down in the source file.

WARNING: Missing or malformed SPDX-License-Identifier tag in line 1

---
 drivers/gpu/drm/drm_memory.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_memory.c +2 -1
index 132fef8ff1b6..683042c8ee2c 100644
@@ -1,4 +1,5 @@
-/**
+// SPDX-License-Identifier: MIT
+/*
  * \file drm_memory.c
  * Memory management wrappers for DRM
  *
Signature · 1 line
1.8.3.1
author
#1 lore raw

Ping.

Quoted 27 lines · Qian Cai

The opening comment mark "/**" is reserved for kernel-doc comments, so it will generate a warning with "make W=1".

drivers/gpu/drm/drm_memory.c:2: warning: Cannot understand  * \file drm_memory.c

Also, silence a checkpatch warning by adding a license identfiter where it indicates the MIT license further down in the source file.

WARNING: Missing or malformed SPDX-License-Identifier tag in line 1

---
 drivers/gpu/drm/drm_memory.c | 3 ++-

 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_memory.c +2 -1
index 132fef8ff1b6..683042c8ee2c 100644
@@ -1,4 +1,5 @@
-/**
+// SPDX-License-Identifier: MIT
+/*
   * \file drm_memory.c
   * Memory management wrappers for DRM
   *