[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove unused function 'do_trap_fiq'



On 16/08/2023 17:28, Julien Grall wrote:
On 16/08/2023 16:18, Nicola Vetrini wrote:
Hi,

Hi,

the function mentioned in the subject, defined in 'xen/arch/arm/traps.c' seems to have no caller (either from C code or from asm code), so I think it can be safely removed, unless
there's a reason for it to remain in Xen.

This is used by the arm32 code in arm32/head.S:

trap_fiq:
   vector fiq

where the macro vector will call do_trap_fiq.

So we need to keep the function around and a definition. Although we
can move the function to arm32/traps.c but this is somewhat unrelated.

Cheers,

Ok. Would you mind if a declaration was supplied in an appropriate header file for this function, to fully comply with Rule 8.4? This not only serves as useful documentation to developers that will touch the asm files, as Stefano mentioned some time ago in the preliminary thread
on R8.4, but also prevents an avoidable violation of the Rule, and
hence yet another deviation to keep track of.

--
Nicola Vetrini, BSc
Software Engineer, BUGSENG srl (https://bugseng.com)



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.