public inbox for xenomai@lists.linux.dev
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Florian Bezdeka <florian.bezdeka@siemens.com>
Cc: xenomai@lists.linux.dev,
	 Fabian Scheler <fabian.scheler@siemens.com>,
	Tobias Schaffner <tobias.schaffner@siemens.com>,
	 Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [PATCH Dovetail 6.10 - 6.16] x86: irq_pipeline: Fix build failure for !IRQ_PIPELINE but X86_FRED
Date: Tue, 09 Sep 2025 15:47:04 +0200	[thread overview]
Message-ID: <87zfb3viuf.fsf@xenomai.org> (raw)
In-Reply-To: <20250905-wip-flo-fix-build-failure-no-pipline-but-fred-v1-1-492c5e4edd52@siemens.com> (Florian Bezdeka's message of "Fri, 05 Sep 2025 11:38:07 +0200")

Florian Bezdeka <florian.bezdeka@siemens.com> writes:

> The POSTED_MSI_NOTIFICATION_VECTOR is present since 6.10, so
> FIRST_SYSTEM_APIC_VECTOR was off by one resulting in the following build
> warning:
>
> ./arch/x86/include/asm/irq_vectors.h:104:41: error: array index in initializer exceeds array bounds
>   104 | #define POSTED_MSI_NOTIFICATION_VECTOR  0xeb
>       |                                         ^~~~
> arch/x86/entry/entry_fred.c:98:37: note: in definition of macro ‘SYSVEC’
>    98 | #define SYSVEC(_vector, _function) [_vector - FIRST_SYSTEM_VECTOR] = fred_sysvec_##_function
>       |                                     ^~~~~~~
> arch/x86/entry/entry_fred.c:121:16: note: in expansion of macro ‘POSTED_MSI_NOTIFICATION_VECTOR’
>   121 |         SYSVEC(POSTED_MSI_NOTIFICATION_VECTOR,  posted_msi_notification),
>       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./arch/x86/include/asm/irq_vectors.h:104:41: note: (near initialization for ‘sysvec_table’)
>   104 | #define POSTED_MSI_NOTIFICATION_VECTOR  0xeb
>       |                                         ^~~~
> arch/x86/entry/entry_fred.c:98:37: note: in definition of macro ‘SYSVEC’
>    98 | #define SYSVEC(_vector, _function) [_vector - FIRST_SYSTEM_VECTOR] = fred_sysvec_##_function
>       |                                     ^~~~~~~
> arch/x86/entry/entry_fred.c:121:16: note: in expansion of macro ‘POSTED_MSI_NOTIFICATION_VECTOR’
>   121 |         SYSVEC(POSTED_MSI_NOTIFICATION_VECTOR,  posted_msi_notification),
>       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Required build configuration:
>   - CONFIG_IRQ_PIPELINE = n
>   - CONFIG_X86_FRED = y
>
> Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
> ---
> Cc: Fabian Scheler <fabian.scheler@siemens.com>
> Cc: Tobias Schaffner <tobias.schaffner@siemens.com>
> Cc: Jan Kiszka <jan.kiszka@siemens.com>
> Cc: Philippe Gerum <rpm@xenomai.org>
> ---
>  arch/x86/include/asm/irq_vectors.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/include/asm/irq_vectors.h b/arch/x86/include/asm/irq_vectors.h
> index de7592d870e9..dd755c95f3b4 100644
> --- a/arch/x86/include/asm/irq_vectors.h
> +++ b/arch/x86/include/asm/irq_vectors.h
> @@ -109,7 +109,7 @@
>  #define FIRST_SYSTEM_APIC_VECTOR	CALL_FUNCTION_OOB_VECTOR
>  #define NR_APIC_VECTORS	        	(NR_VECTORS - FIRST_SYSTEM_VECTOR)
>  #else
> -#define FIRST_SYSTEM_APIC_VECTOR	LOCAL_TIMER_VECTOR
> +#define FIRST_SYSTEM_APIC_VECTOR	POSTED_MSI_NOTIFICATION_VECTOR
>  #endif
>  
>  #define NR_VECTORS			 256
>
> ---
> base-commit: eec111a874f5899e1078ef785ccf29dff986e5a0
> change-id: 20250905-wip-flo-fix-build-failure-no-pipline-but-fred-3951c96cb5a5
>
> Best regards,

Merged into v6.12, v6.16. Thanks.

-- 
Philippe.

      reply	other threads:[~2025-09-09 13:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-05  9:38 [PATCH Dovetail 6.10 - 6.16] x86: irq_pipeline: Fix build failure for !IRQ_PIPELINE but X86_FRED Florian Bezdeka
2025-09-09 13:47 ` Philippe Gerum [this message]

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=87zfb3viuf.fsf@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=fabian.scheler@siemens.com \
    --cc=florian.bezdeka@siemens.com \
    --cc=jan.kiszka@siemens.com \
    --cc=tobias.schaffner@siemens.com \
    --cc=xenomai@lists.linux.dev \
    /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