public inbox for linux-phy@lists.infradead.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Josua Mayer <josua@solid-run.com>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	Rob Herring <robh@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Magnus Damm <magnus.damm@gmail.com>,
	Wolfram Sang <wsa-dev@sang-engineering.com>,
	Marc Kleine-Budde <mkl@pengutronix.de>,
	Vincent Mailhol <mailhol@kernel.org>,
	Vinod Koul <vkoul@kernel.org>,
	Kishon Vijay Abraham I <kishon@kernel.org>,
	Peter Rosin <peda@axentia.se>,
	Aaro Koskinen <aaro.koskinen@iki.fi>,
	Andreas Kemnade <andreas@kemnade.info>,
	Kevin Hilman <khilman@baylibre.com>,
	Roger Quadros <rogerq@kernel.org>,
	Tony Lindgren <tony@atomide.com>, Vignesh R <vigneshr@ti.com>,
	Janusz Krzysztofik <jmkrzyszt@gmail.com>,
	Andi Shyti <andi.shyti@kernel.org>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	kernel test robot <lkp@intel.com>
Cc: "oe-kbuild-all@lists.linux.dev" <oe-kbuild-all@lists.linux.dev>,
	Mikhail Anikin <mikhail.anikin@solid-run.com>,
	Yazan Shhady <yazan.shhady@solid-run.com>,
	Jon Nettleton <jon@solid-run.com>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-renesas-soc@vger.kernel.org"
	<linux-renesas-soc@vger.kernel.org>,
	"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>,
	"linux-phy@lists.infradead.org" <linux-phy@lists.infradead.org>
Subject: Re: [PATCH v4 2/7] mux: Add helper functions for getting optional and selected mux-state
Date: Thu, 8 Jan 2026 08:45:08 +0100	[thread overview]
Message-ID: <9e172c95-25bb-4608-932c-e761b1b1802d@kernel.org> (raw)
In-Reply-To: <3396461.44csPzL39Z@josua-pc>

On 08/01/2026 08:42, Josua Mayer wrote:
> On Wednesday, 31 December 2025 21:18:51 IST kernel test robot wrote:
>> Hi Josua,
>>
>> kernel test robot noticed the following build errors:
>>
>> [auto build test ERROR on 8f0b4cce4481fb22653697cced8d0d04027cb1e8]
>>
>> url:   
>> https://github.com/intel-lab-lkp/linux/commits/Josua-Mayer/phy-can-transcei
>> ver-rename-temporary-helper-function-to-avoid-conflict/20251229-223153 base:
>>   8f0b4cce4481fb22653697cced8d0d04027cb1e8
>> patch link:   
>> https://lore.kernel.org/r/20251229-rz-sdio-mux-v4-2-a023e55758fe%40solid-ru
>> n.com patch subject: [PATCH v4 2/7] mux: Add helper functions for getting
>> optional and selected mux-state config: parisc-randconfig-002-20260101
>> (https://download.01.org/0day-ci/archive/20260101/202601010305.tpY47HE4-lkp
>> @intel.com/config) compiler: hppa-linux-gcc (GCC) 10.5.0
>> reproduce (this is a W=1 build):
>> (https://download.01.org/0day-ci/archive/20260101/202601010305.tpY47HE4-lkp
>> @intel.com/reproduce)
>>
>> If you fix the issue in a separate patch/commit (i.e. not just a new version
>> of the same patch/commit), kindly add following tags
>>
>> | Reported-by: kernel test robot <lkp@intel.com>
>> | Closes:
>> | https://lore.kernel.org/oe-kbuild-all/202601010305.tpY47HE4-lkp@intel.com
>> | /
>> All error/warnings (new ones prefixed by >>):
>>
>>    In file included from drivers/mux/core.c:19:
>>
>>    include/linux/mux/consumer.h: In function 'mux_control_put':
>>>> include/linux/mux/consumer.h:138:9: warning: 'return' with a value, in
>>>> function returning void [-Wreturn-type]
>>      138 |  return -EOPNOTSUPP;
>>
>>          |         ^
>>
> To be fixed in next version
> 
>>    include/linux/mux/consumer.h:136:20: note: declared here
>>      136 | static inline void mux_control_put(struct mux_control *mux)
>>
>>          |                    ^~~~~~~~~~~~~~~
>>
>>    drivers/mux/core.c: At top level:
>>>> drivers/mux/core.c:302:14: error: redefinition of 'mux_control_states'
>>
>>      302 | unsigned int mux_control_states(struct mux_control *mux)
>>
>>          |              ^~~~~~~~~~~~~~~~~~
>>
>>    In file included from drivers/mux/core.c:19:
>>    include/linux/mux/consumer.h:70:28: note: previous definition of
>> 'mux_control_states' was here 70 | static inline unsigned int
>> mux_control_states(struct mux_control *mux)
>>          |                            ^~~~~~~~~~~~~~~~~~
> 
> I don't understand how this is possible.
> In the header file line 136 the inline declaration for mux_control_states is 
> gated by ifdef CONFIG_MULTIPLEXER else case.
> 
> The build of mux/core.c itself is gated in Makefile by CONFIG_MULTIPLEXER.
> 
> So mux/core.c is not being built when CONFIG_MULTIPLEXER is not set.
> If it is set, we hit in the header file the non-inline declaration near start
> of the file.


You have all the tools in this email to actually reproduce it. Did you try?

Best regards,
Krzysztof

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  reply	other threads:[~2026-01-08  7:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-29 14:27 [PATCH v4 0/7] mmc: host: renesas_sdhi_core: support configuring an optional sdio mux Josua Mayer
2025-12-29 14:27 ` [PATCH v4 1/7] phy: can-transceiver: rename temporary helper function to avoid conflict Josua Mayer
2025-12-29 14:27 ` [PATCH v4 2/7] mux: Add helper functions for getting optional and selected mux-state Josua Mayer
2025-12-31 19:18   ` kernel test robot
2026-01-08  7:42     ` Josua Mayer
2026-01-08  7:45       ` Krzysztof Kozlowski [this message]
2025-12-29 14:27 ` [PATCH v4 3/7] mux: add help text for MULTIPLEXER config option Josua Mayer
2025-12-29 14:27 ` [PATCH v4 4/7] phy: can-transceiver: drop temporary helper getting optional mux-state Josua Mayer
2025-12-29 14:27 ` [PATCH v4 5/7] i2c: omap: switch to new generic helper for getting selected mux-state Josua Mayer
2026-01-14 11:52   ` Wolfram Sang
2025-12-29 14:27 ` [PATCH v4 6/7] dt-bindings: mmc: renesas,sdhi: Add mux-states property Josua Mayer
2025-12-29 14:27 ` [PATCH v4 7/7] mmc: host: renesas_sdhi_core: support selecting an optional mux Josua Mayer
2026-01-14 11:49   ` Wolfram Sang
2026-01-18  7:33     ` Josua Mayer

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=9e172c95-25bb-4608-932c-e761b1b1802d@kernel.org \
    --to=krzk@kernel.org \
    --cc=aaro.koskinen@iki.fi \
    --cc=andi.shyti@kernel.org \
    --cc=andreas@kemnade.info \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=jmkrzyszt@gmail.com \
    --cc=jon@solid-run.com \
    --cc=josua@solid-run.com \
    --cc=khilman@baylibre.com \
    --cc=kishon@kernel.org \
    --cc=linux-can@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=magnus.damm@gmail.com \
    --cc=mailhol@kernel.org \
    --cc=mikhail.anikin@solid-run.com \
    --cc=mkl@pengutronix.de \
    --cc=neil.armstrong@linaro.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=peda@axentia.se \
    --cc=robh@kernel.org \
    --cc=rogerq@kernel.org \
    --cc=tony@atomide.com \
    --cc=ulf.hansson@linaro.org \
    --cc=vigneshr@ti.com \
    --cc=vkoul@kernel.org \
    --cc=wsa-dev@sang-engineering.com \
    --cc=yazan.shhady@solid-run.com \
    /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