[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/2] linux-user: Move the SPDX license identifier to first lin
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 1/2] linux-user: Move the SPDX license identifier to first line |
Date: |
Thu, 4 Nov 2021 08:15:40 +0100 |
Tools consuming SPDX license identifiers benefit from having
the SPDX tag in its own comment, not embedded with the license
text. Move the tag to the first line.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
linux-user/semihost.c | 3 +--
linux-user/errnos.c.inc | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/linux-user/semihost.c b/linux-user/semihost.c
index 17f074ac565..df1de3131d4 100644
--- a/linux-user/semihost.c
+++ b/linux-user/semihost.c
@@ -1,30 +1,29 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ARM Compatible Semihosting Console Support.
*
* Copyright (c) 2019 Linaro Ltd
*
* Currently ARM and RISC-V are unique in having support for
* semihosting support in linux-user. So for now we implement the
* common console API but just for arm and risc-v linux-user.
- *
- * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "qemu/osdep.h"
#include "semihosting/console.h"
#include "qemu.h"
#include "user-internals.h"
#include <termios.h>
int qemu_semihosting_console_outs(CPUArchState *env, target_ulong addr)
{
int len = target_strlen(addr);
void *s;
if (len < 0){
qemu_log_mask(LOG_GUEST_ERROR,
"%s: passed inaccessible address " TARGET_FMT_lx,
__func__, addr);
return 0;
}
s = lock_user(VERIFY_READ, addr, (long)(len + 1), 1);
g_assert(s); /* target_strlen has already verified this will work */
diff --git a/linux-user/errnos.c.inc b/linux-user/errnos.c.inc
index 963ba1ce9d1..2fa8b78705b 100644
--- a/linux-user/errnos.c.inc
+++ b/linux-user/errnos.c.inc
@@ -1,42 +1,41 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* This list is the union of errno values overridden in asm-<arch>/errno.h
* minus the errnos that are not actually generic to all archs.
*
* Please keep this list sorted alphabetically.
*
* Copyright (c) 2003 Fabrice Bellard
*
* 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, see <http://www.gnu.org/licenses/>.
- *
- * SPDX-License-Identifier: GPL-2.0-or-later
*/
E(EADDRINUSE)
E(EADDRNOTAVAIL)
E(EADV)
E(EAFNOSUPPORT)
E(EAGAIN)
E(EALREADY)
E(EBADE)
E(EBADFD)
E(EBADMSG)
E(EBADR)
E(EBADRQC)
E(EBADSLT)
E(EBFONT)
E(ECANCELED)
E(ECHRNG)
E(ECOMM)
E(ECONNABORTED)
E(ECONNREFUSED)
--
2.31.1