Skip to contentSkip to conversation

Remove unused function 'do_trap_fiq'

DISCUSSION Nicola Vetrini 2 participants 3 messages Aug 16, 2023 – Aug 17, 2023

lore
Share & tools
lore
#0 lore raw

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.

Regards,

Signature · 2 lines
Nicola Vetrini, BSc
Software Engineer, BUGSENG srl (https://bugseng.com)
#1 lore raw
Quoted 1 line · Nicola Vetrini

Hi,

Hi,

Quoted 3 lines

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,

Signature · 1 line
Julien Grall
#2 lore raw
Quoted 14 lines · Julien Grall
Quoted 1 line · Nicola Vetrini

Hi,

Hi,

Quoted 3 lines

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

Quoted 6 lines

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.

Signature · 2 lines
Nicola Vetrini, BSc
Software Engineer, BUGSENG srl (https://bugseng.com)