Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ma Ke <make24@iscas.ac.cn>,
	srini@kernel.org, lgirdwood@gmail.com, broonie@kernel.org,
	perex@perex.cz, tiwai@suse.com, pierre-louis.bossart@linux.dev
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
	Ma Ke <make24@iscas.ac.cn>,
	stable@vger.kernel.org
Subject: Re: [PATCH v2] ASoC: wcd934x: fix error handling in wcd934x_codec_parse_data()
Date: Mon, 22 Sep 2025 15:45:03 +0800	[thread overview]
Message-ID: <202509221535.es8PWacQ-lkp@intel.com> (raw)
In-Reply-To: <20250922013507.558-1-make24@iscas.ac.cn>

Hi Ma,

kernel test robot noticed the following build warnings:

[auto build test WARNING on broonie-sound/for-next]
[also build test WARNING on linus/master v6.17-rc7 next-20250919]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Ma-Ke/ASoC-wcd934x-fix-error-handling-in-wcd934x_codec_parse_data/20250922-094038
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
patch link:    https://lore.kernel.org/r/20250922013507.558-1-make24%40iscas.ac.cn
patch subject: [PATCH v2] ASoC: wcd934x: fix error handling in wcd934x_codec_parse_data()
config: i386-buildonly-randconfig-005-20250922 (https://download.01.org/0day-ci/archive/20250922/202509221535.es8PWacQ-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250922/202509221535.es8PWacQ-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/202509221535.es8PWacQ-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> sound/soc/codecs/wcd934x.c:5862:38: warning: cast from 'void (*)(struct device *)' to 'void (*)(void *)' converts to incompatible function type [-Wcast-function-type-strict]
    5862 |         ret = devm_add_action_or_reset(dev, (void (*)(void *))put_device, &wcd->sidev->dev);
         |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/device/devres.h:166:34: note: expanded from macro 'devm_add_action_or_reset'
     166 |         __devm_add_action_or_reset(dev, action, data, #action)
         |                                         ^~~~~~
   1 warning generated.


vim +5862 sound/soc/codecs/wcd934x.c

  5837	
  5838	static int wcd934x_codec_probe(struct platform_device *pdev)
  5839	{
  5840		struct device *dev = &pdev->dev;
  5841		struct wcd934x_ddata *data = dev_get_drvdata(dev->parent);
  5842		struct wcd934x_codec *wcd;
  5843		int ret, irq;
  5844	
  5845		wcd = devm_kzalloc(dev, sizeof(*wcd), GFP_KERNEL);
  5846		if (!wcd)
  5847			return -ENOMEM;
  5848	
  5849		wcd->dev = dev;
  5850		wcd->regmap = data->regmap;
  5851		wcd->extclk = data->extclk;
  5852		wcd->sdev = to_slim_device(data->dev);
  5853		mutex_init(&wcd->sysclk_mutex);
  5854		mutex_init(&wcd->micb_lock);
  5855		wcd->common.dev = dev->parent;
  5856		wcd->common.max_bias = 4;
  5857	
  5858		ret = wcd934x_codec_parse_data(wcd);
  5859		if (ret)
  5860			return ret;
  5861	
> 5862		ret = devm_add_action_or_reset(dev, (void (*)(void *))put_device, &wcd->sidev->dev);
  5863		if (ret)
  5864			return ret;
  5865	
  5866		/* set default rate 9P6MHz */
  5867		regmap_update_bits(wcd->regmap, WCD934X_CODEC_RPM_CLK_MCLK_CFG,
  5868				   WCD934X_CODEC_RPM_CLK_MCLK_CFG_MCLK_MASK,
  5869				   WCD934X_CODEC_RPM_CLK_MCLK_CFG_9P6MHZ);
  5870		memcpy(wcd->rx_chs, wcd934x_rx_chs, sizeof(wcd934x_rx_chs));
  5871		memcpy(wcd->tx_chs, wcd934x_tx_chs, sizeof(wcd934x_tx_chs));
  5872	
  5873		irq = regmap_irq_get_virq(data->irq_data, WCD934X_IRQ_SLIMBUS);
  5874		if (irq < 0)
  5875			return dev_err_probe(wcd->dev, irq, "Failed to get SLIM IRQ\n");
  5876	
  5877		ret = devm_request_threaded_irq(dev, irq, NULL,
  5878						wcd934x_slim_irq_handler,
  5879						IRQF_TRIGGER_RISING | IRQF_ONESHOT,
  5880						"slim", wcd);
  5881		if (ret)
  5882			return dev_err_probe(dev, ret, "Failed to request slimbus irq\n");
  5883	
  5884		wcd934x_register_mclk_output(wcd);
  5885		platform_set_drvdata(pdev, wcd);
  5886	
  5887		return devm_snd_soc_register_component(dev, &wcd934x_component_drv,
  5888						       wcd934x_slim_dais,
  5889						       ARRAY_SIZE(wcd934x_slim_dais));
  5890	}
  5891	

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

      reply	other threads:[~2025-09-22  7:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-22  1:35 [PATCH v2] ASoC: wcd934x: fix error handling in wcd934x_codec_parse_data() Ma Ke
2025-09-22  7:45 ` kernel test robot [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=202509221535.es8PWacQ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=make24@iscas.ac.cn \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=perex@perex.cz \
    --cc=pierre-louis.bossart@linux.dev \
    --cc=srini@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=tiwai@suse.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