From: Stefan Weil <weil@mail.berlios.de>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] Add QEMU_NORETURN to some functions
Date: Mon, 02 Mar 2009 16:11:02 +0100 [thread overview]
Message-ID: <49ABF706.6060807@mail.berlios.de> (raw)
In-Reply-To: <49ABEAF6.10502@us.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 322 bytes --]
Anthony Liguori schrieb:
> Stefan Weil wrote:
>> Would a patch which only adds noreturn to header files be accepted?
>
> Yup.
>
> Regards,
>
> Anthony Liguori
Here is an extract of my previous patch.
This new patch adds the noreturn attribute only to global functions
declared in header files.
Regards
Stefan Weil
[-- Attachment #2: noreturn.patch --]
[-- Type: text/x-diff, Size: 3069 bytes --]
Add missing QEMU_NORETURN attribute to several global functions.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Index: trunk/bsd-user/qemu.h
===================================================================
--- trunk.orig/bsd-user/qemu.h 2009-03-01 11:04:00.000000000 +0100
+++ trunk/bsd-user/qemu.h 2009-03-02 15:48:59.000000000 +0100
@@ -136,7 +136,7 @@
abi_long arg5, abi_long arg6);
void gemu_log(const char *fmt, ...) __attribute__((format(printf,1,2)));
extern THREAD CPUState *thread_env;
-void cpu_loop(CPUState *env, enum BSDType bsd_type);
+void QEMU_NORETURN cpu_loop(CPUState *env, enum BSDType bsd_type);
void init_paths(const char *prefix);
const char *path(const char *pathname);
char *target_strerror(int err);
Index: trunk/darwin-user/qemu.h
===================================================================
--- trunk.orig/darwin-user/qemu.h 2009-03-01 11:04:01.000000000 +0100
+++ trunk/darwin-user/qemu.h 2009-03-02 15:48:59.000000000 +0100
@@ -105,7 +105,7 @@
void write_dt(void *ptr, unsigned long addr, unsigned long limit, int flags);
extern CPUState *global_env;
-void cpu_loop(CPUState *env);
+void QEMU_NORETURN cpu_loop(CPUState *env);
void init_paths(const char *prefix);
const char *path(const char *pathname);
Index: trunk/exec-all.h
===================================================================
--- trunk.orig/exec-all.h 2009-03-01 11:04:00.000000000 +0100
+++ trunk/exec-all.h 2009-03-02 15:48:59.000000000 +0100
@@ -74,8 +74,8 @@
int cpu_restore_state_copy(struct TranslationBlock *tb,
CPUState *env, unsigned long searched_pc,
void *puc);
-void cpu_resume_from_signal(CPUState *env1, void *puc);
-void cpu_io_recompile(CPUState *env, void *retaddr);
+void QEMU_NORETURN cpu_resume_from_signal(CPUState *env1, void *puc);
+void QEMU_NORETURN cpu_io_recompile(CPUState *env, void *retaddr);
TranslationBlock *tb_gen_code(CPUState *env,
target_ulong pc, target_ulong cs_base, int flags,
int cflags);
Index: trunk/linux-user/qemu.h
===================================================================
--- trunk.orig/linux-user/qemu.h 2009-03-01 11:04:01.000000000 +0100
+++ trunk/linux-user/qemu.h 2009-03-02 15:48:59.000000000 +0100
@@ -174,7 +174,7 @@
abi_long arg5, abi_long arg6);
void gemu_log(const char *fmt, ...) __attribute__((format(printf,1,2)));
extern THREAD CPUState *thread_env;
-void cpu_loop(CPUState *env);
+void QEMU_NORETURN cpu_loop(CPUState *env);
void init_paths(const char *prefix);
const char *path(const char *pathname);
char *target_strerror(int err);
Index: trunk/target-arm/exec.h
===================================================================
--- trunk.orig/target-arm/exec.h 2009-03-01 11:04:00.000000000 +0100
+++ trunk/target-arm/exec.h 2009-03-02 15:48:59.000000000 +0100
@@ -55,4 +55,4 @@
#include "softmmu_exec.h"
#endif
-void raise_exception(int);
+void QEMU_NORETURN raise_exception(int);
next prev parent reply other threads:[~2009-03-02 15:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-13 21:44 [Qemu-devel] [PATCH] Add QEMU_NORETURN to some functions Stefan Weil
2009-02-16 15:41 ` Anthony Liguori
2009-02-16 18:10 ` Stefan Weil
[not found] ` <49A9673D.8000805@mail.berlios.de>
[not found] ` <49A9B0C4.3090606@us.ibm.com>
[not found] ` <49A9B7A0.7030606@mail.berlios.de>
[not found] ` <49AB1BC8.2060309@us.ibm.com>
[not found] ` <49AB953B.2050802@mail.berlios.de>
[not found] ` <49ABEAF6.10502@us.ibm.com>
2009-03-02 15:11 ` Stefan Weil [this message]
2009-02-16 16:05 ` Anthony Liguori
2009-02-16 19:05 ` Stefan Weil
2009-02-17 0:34 ` Jamie Lokier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49ABF706.6060807@mail.berlios.de \
--to=weil@mail.berlios.de \
--cc=aliguori@us.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).