All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Julia Lawall <julia.lawall@inria.fr>
Subject: Re: [PATCH v5 2/7] mux: Add helper functions for getting optional and selected mux-state
Date: Mon, 19 Jan 2026 02:03:02 +0800	[thread overview]
Message-ID: <202601190136.Fpl1Voph-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20260118-rz-sdio-mux-v5-2-3c37e8872683@solid-run.com>
References: <20260118-rz-sdio-mux-v5-2-3c37e8872683@solid-run.com>
TO: Josua Mayer <josua@solid-run.com>
TO: "Marc Kleine-Budde" <mkl@pengutronix.de>
TO: Vincent Mailhol <mailhol@kernel.org>
TO: Vinod Koul <vkoul@kernel.org>
TO: Neil Armstrong <neil.armstrong@linaro.org>
TO: Peter Rosin <peda@axentia.se>
TO: Aaro Koskinen <aaro.koskinen@iki.fi>
TO: Andreas Kemnade <andreas@kemnade.info>
TO: Kevin Hilman <khilman@baylibre.com>
TO: Roger Quadros <rogerq@kernel.org>
TO: Tony Lindgren <tony@atomide.com>
TO: Janusz Krzysztofik <jmkrzyszt@gmail.com>
TO: Vignesh R <vigneshr@ti.com>
TO: Andi Shyti <andi.shyti@kernel.org>
TO: Ulf Hansson <ulf.hansson@linaro.org>
TO: Rob Herring <robh@kernel.org>
TO: Krzysztof Kozlowski <krzk@kernel.org>
TO: Conor Dooley <conor+dt@kernel.org>
TO: Geert Uytterhoeven <geert+renesas@glider.be>
TO: Magnus Damm <magnus.damm@gmail.com>
TO: Wolfram Sang <wsa-dev@sang-engineering.com>
CC: Yazan Shhady <yazan.shhady@solid-run.com>
CC: Jon Nettleton <jon@solid-run.com>
CC: Mikhail Anikin <mikhail.anikin@solid-run.com>
CC: linux-can@vger.kernel.org
CC: linux-phy@lists.infradead.org
CC: linux-kernel@vger.kernel.org
CC: linux-omap@vger.kernel.org
CC: linux-i2c@vger.kernel.org
CC: linux-mmc@vger.kernel.org
CC: devicetree@vger.kernel.org

Hi Josua,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 8f0b4cce4481fb22653697cced8d0d04027cb1e8]

url:    https://github.com/intel-lab-lkp/linux/commits/Josua-Mayer/phy-can-transceiver-rename-temporary-helper-function-to-avoid-conflict/20260118-183905
base:   8f0b4cce4481fb22653697cced8d0d04027cb1e8
patch link:    https://lore.kernel.org/r/20260118-rz-sdio-mux-v5-2-3c37e8872683%40solid-run.com
patch subject: [PATCH v5 2/7] mux: Add helper functions for getting optional and selected mux-state
:::::: branch date: 7 hours ago
:::::: commit date: 7 hours ago
config: i386-randconfig-054-20260118 (https://download.01.org/0day-ci/archive/20260119/202601190136.Fpl1Voph-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0

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>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202601190136.Fpl1Voph-lkp@intel.com/

cocci warnings: (new ones prefixed by >>)
>> drivers/mux/core.c:721:18-24: ERROR: reference preceded by free on line 720

vim +721 drivers/mux/core.c

a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14  702  
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  703  /*
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  704   * mux_state_get() - Get the mux-state for a device.
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  705   * @dev: The device that needs a mux-state.
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  706   * @mux_name: The name identifying the mux-state.
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  707   *
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  708   * Return: A pointer to the mux-state, or an ERR_PTR with a negative errno.
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  709   */
f7086d2a8ffae3 drivers/mux/core.c     Josua Mayer 2026-01-18  710  static struct mux_state *mux_state_get(struct device *dev, const char *mux_name, bool optional)
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  711  {
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  712  	struct mux_state *mstate;
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  713  
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  714  	mstate = kzalloc(sizeof(*mstate), GFP_KERNEL);
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  715  	if (!mstate)
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  716  		return ERR_PTR(-ENOMEM);
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  717  
f7086d2a8ffae3 drivers/mux/core.c     Josua Mayer 2026-01-18  718  	mstate->mux = mux_get(dev, mux_name, &mstate->state, optional);
f7086d2a8ffae3 drivers/mux/core.c     Josua Mayer 2026-01-18  719  	if (IS_ERR_OR_NULL(mstate->mux)) {
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07 @720  		kfree(mstate);
f7086d2a8ffae3 drivers/mux/core.c     Josua Mayer 2026-01-18 @721  		return ERR_CAST(mstate->mux);
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  722  	}
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  723  
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  724  	return mstate;
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  725  }
6632866df852bd drivers/mux/core.c     Peter Rosin 2022-01-07  726  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2026-01-18 18:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-18 18:03 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-01-18 10:28 [PATCH v5 0/7] mmc: host: renesas_sdhi_core: support configuring an optional sdio mux Josua Mayer
2026-01-18 10:28 ` [PATCH v5 2/7] mux: Add helper functions for getting optional and selected mux-state Josua Mayer
2026-01-18 10:28   ` Josua Mayer
2026-01-18 13:28   ` kernel test robot
2026-01-18 13:28     ` kernel test robot
2026-01-20  9:45   ` Geert Uytterhoeven
2026-01-20  9:45     ` Geert Uytterhoeven
2026-01-21  9:00     ` Josua Mayer
2026-01-21  9:00       ` Josua Mayer
2026-01-20 15:57   ` Geert Uytterhoeven
2026-01-20 15:57     ` Geert Uytterhoeven

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=202601190136.Fpl1Voph-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=julia.lawall@inria.fr \
    --cc=oe-kbuild@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.