[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202601240759.oXmYGyUC-lkp@intel.com>
Date: Sat, 24 Jan 2026 08:05:24 +0800
From: kernel test robot <lkp@...el.com>
To: Maciej Strozek <mstrozek@...nsource.cirrus.com>,
Mark Brown <broonie@...nel.org>, Takashi Iwai <tiwai@...e.com>,
Lee Jones <lee@...nel.org>, Krzysztof Kozlowski <krzk@...nel.org>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
Jaroslav Kysela <perex@...ex.cz>,
Bard Liao <yung-chuan.liao@...ux.intel.com>,
Peter Ujfalusi <peter.ujfalusi@...ux.intel.com>,
linux-kernel@...r.kernel.org, linux-sound@...r.kernel.org,
patches@...nsource.cirrus.com, devicetree@...r.kernel.org,
Maciej Strozek <mstrozek@...nsource.cirrus.com>
Subject: Re: [PATCH v3 3/4] mfd: cs42l43: Add support for the B variant
Hi Maciej,
kernel test robot noticed the following build warnings:
[auto build test WARNING on lee-mfd/for-mfd-next]
[also build test WARNING on lee-mfd/for-mfd-fixes broonie-sound/for-next lee-leds/for-leds-next linus/master v6.19-rc6 next-20260122]
[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/Maciej-Strozek/ASoC-sdw_utils-Add-CS42L43B-codec-info/20260123-233105
base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
patch link: https://lore.kernel.org/r/20260123150945.100038-4-mstrozek%40opensource.cirrus.com
patch subject: [PATCH v3 3/4] mfd: cs42l43: Add support for the B variant
config: x86_64-randconfig-003-20260124 (https://download.01.org/0day-ci/archive/20260124/202601240759.oXmYGyUC-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/20260124/202601240759.oXmYGyUC-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601240759.oXmYGyUC-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/mfd/cs42l43-i2c.c:50:24: warning: cast to smaller integer type 'int' from 'const void *' [-Wvoid-pointer-to-int-cast]
50 | cs42l43->variant_id = (int)device_get_match_data(cs42l43->dev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +50 drivers/mfd/cs42l43-i2c.c
37
38 static int cs42l43_i2c_probe(struct i2c_client *i2c)
39 {
40 struct cs42l43 *cs42l43;
41
42 cs42l43 = devm_kzalloc(&i2c->dev, sizeof(*cs42l43), GFP_KERNEL);
43 if (!cs42l43)
44 return -ENOMEM;
45
46 cs42l43->dev = &i2c->dev;
47 cs42l43->irq = i2c->irq;
48 /* A device on an I2C is always attached by definition. */
49 cs42l43->attached = true;
> 50 cs42l43->variant_id = (int)device_get_match_data(cs42l43->dev);
51
52 cs42l43->regmap = devm_regmap_init_i2c(i2c, &cs42l43_i2c_regmap);
53 if (IS_ERR(cs42l43->regmap))
54 return dev_err_probe(cs42l43->dev, PTR_ERR(cs42l43->regmap),
55 "Failed to allocate regmap\n");
56
57 return cs42l43_dev_probe(cs42l43);
58 }
59
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists