Re: [PATCH next] mux: fix build-error when mux-core is built as module
From: Peter Rosin
Date: Tue Feb 10 2026 - 08:48:34 EST
Hi!
2026-02-10 at 14:36, Ulf Hansson wrote:
> On Mon, 9 Feb 2026 at 12:24, Josua Mayer <josua@xxxxxxxxxxxxx> wrote:
>>
>> The mux core header file uses ifdef CONFIG_MULTIPLEXER to select between
>> helper function prototypes and static inline stubs.
>>
>> This leads to build errors when CONFIG_MULTIPLEXER=m, because then
>> CONFIG_MULTIPLEXER_MODULE is defined instead.
>>
>> Replace the ifdef with IS_ENABLED to catch both builtin and module
>> cases, and fix the build error in module case.
>>
>> Fixes: ad314348ceb4 ("mux: Add helper functions for getting optional and selected mux-state")
>> Signed-off-by: Josua Mayer <josua@xxxxxxxxxxxxx>
Acked-by: Peter Rosin <peda@xxxxxxxxxx>
>
> Peter, do you intend to pick this up as a fix for v7.0-rc1? Otherwise,
> I am of course happy to help with it!
Be my guest :-)
Thanks,
Peter