Re: [PATCH v5 14/18] rust: Introduce interrupt module
From: Peter Zijlstra
Date: Mon Aug 10 2026 - 05:01:49 EST
On Fri, Aug 07, 2026 at 12:02:11AM -0700, Boqun Feng wrote:
> diff --git a/rust/helpers/interrupt.c b/rust/helpers/interrupt.c
> new file mode 100644
> index 000000000000..51b319bd4c00
> --- /dev/null
> +++ b/rust/helpers/interrupt.c
> @@ -0,0 +1,18 @@
> +// SPDX-License-Identifier: GPL-2.0
> +
> +#include <linux/spinlock.h>
> +
> +__rust_helper void rust_helper_local_interrupt_disable(void)
> +{
> + local_interrupt_disable();
> +}
> +
> +__rust_helper void rust_helper_local_interrupt_enable(void)
> +{
> + local_interrupt_enable();
> +}
> +
> +__rust_helper bool rust_helper_irqs_disabled(void)
> +{
> + return irqs_disabled();
> +}
This last one doesn't appear used in this patch; can I remove it?