|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH v3] xen: introduce function type bug_fn_t.
On 17/11/23 11:12, Julien Grall wrote: Hi Federico, On 17/11/2023 08:28, Federico Serafini wrote:Hmmm... I read the second part as you will validate the type in run_in_exception_handle(). But I can't find such change. How about:Introduce function type bug_fn_t. This improves readability and helps to validate that the function passed to run_in_exception_handle() has the expected prototype."and could be used to help validating that ..." No need to send a new revision for that. I can do it on commit.Use the newly-intoduced type to address a violation of MISRA C:2012 Rule 8.2. Suggested-by: Julien Grall <julien@xxxxxxx> Signed-off-by: Federico Serafini <federico.serafini@xxxxxxxxxxx>Acked-by: Julien Grall <jgrall@xxxxxxxxxx>--- xen/arch/arm/traps.c | 2 +- xen/include/xen/bug.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index ce89f16404..8492e2b7bb 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c@@ -1236,7 +1236,7 @@ int do_bug_frame(const struct cpu_user_regs *regs, vaddr_t pc) Thanks for the information! -- Federico Serafini, M.Sc. Software Engineer, BUGSENG (http://bugseng.com)
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |