From: kernel test robot <lkp@intel.com>
To: Artur Weber <aweber.kernel@gmail.com>, Lee Jones <lee@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Florian Fainelli <florian.fainelli@broadcom.com>,
Ray Jui <rjui@broadcom.com>,
Scott Branden <sbranden@broadcom.com>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@broadcom.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev,
Stanislav Jakubek <stano.jakubek@gmail.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-rpi-kernel@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
Artur Weber <aweber.kernel@gmail.com>
Subject: Re: [PATCH 4/6] mfd: bcm590xx: Add compatible for BCM59054
Date: Tue, 31 Oct 2023 11:38:05 +0800 [thread overview]
Message-ID: <202310311110.QsKHR6Ap-lkp@intel.com> (raw)
In-Reply-To: <20231030-bcm59054-v1-4-3517f980c1e3@gmail.com>
Hi Artur,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1]
url: https://github.com/intel-lab-lkp/linux/commits/Artur-Weber/dt-bindings-mfd-brcm-bcm59056-Convert-to-YAML/20231031-040046
base: 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1
patch link: https://lore.kernel.org/r/20231030-bcm59054-v1-4-3517f980c1e3%40gmail.com
patch subject: [PATCH 4/6] mfd: bcm590xx: Add compatible for BCM59054
config: loongarch-randconfig-001-20231031 (https://download.01.org/0day-ci/archive/20231031/202310311110.QsKHR6Ap-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231031/202310311110.QsKHR6Ap-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/202310311110.QsKHR6Ap-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/mfd/bcm590xx.c: In function 'bcm590xx_i2c_probe':
>> drivers/mfd/bcm590xx.c:53:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
53 | bcm590xx->device_type = (unsigned int)of_device_get_match_data(bcm590xx->dev);
| ^
vim +53 drivers/mfd/bcm590xx.c
39
40 static int bcm590xx_i2c_probe(struct i2c_client *i2c_pri)
41 {
42 struct bcm590xx *bcm590xx;
43 int ret;
44
45 bcm590xx = devm_kzalloc(&i2c_pri->dev, sizeof(*bcm590xx), GFP_KERNEL);
46 if (!bcm590xx)
47 return -ENOMEM;
48
49 i2c_set_clientdata(i2c_pri, bcm590xx);
50 bcm590xx->dev = &i2c_pri->dev;
51 bcm590xx->i2c_pri = i2c_pri;
52
> 53 bcm590xx->device_type = (unsigned int)of_device_get_match_data(bcm590xx->dev);
54
55 bcm590xx->regmap_pri = devm_regmap_init_i2c(i2c_pri,
56 &bcm590xx_regmap_config_pri);
57 if (IS_ERR(bcm590xx->regmap_pri)) {
58 ret = PTR_ERR(bcm590xx->regmap_pri);
59 dev_err(&i2c_pri->dev, "primary regmap init failed: %d\n", ret);
60 return ret;
61 }
62
63 /* Secondary I2C slave address is the base address with A(2) asserted */
64 bcm590xx->i2c_sec = i2c_new_dummy_device(i2c_pri->adapter,
65 i2c_pri->addr | BIT(2));
66 if (IS_ERR(bcm590xx->i2c_sec)) {
67 dev_err(&i2c_pri->dev, "failed to add secondary I2C device\n");
68 return PTR_ERR(bcm590xx->i2c_sec);
69 }
70 i2c_set_clientdata(bcm590xx->i2c_sec, bcm590xx);
71
72 bcm590xx->regmap_sec = devm_regmap_init_i2c(bcm590xx->i2c_sec,
73 &bcm590xx_regmap_config_sec);
74 if (IS_ERR(bcm590xx->regmap_sec)) {
75 ret = PTR_ERR(bcm590xx->regmap_sec);
76 dev_err(&bcm590xx->i2c_sec->dev,
77 "secondary regmap init failed: %d\n", ret);
78 goto err;
79 }
80
81 ret = devm_mfd_add_devices(&i2c_pri->dev, -1, bcm590xx_devs,
82 ARRAY_SIZE(bcm590xx_devs), NULL, 0, NULL);
83 if (ret < 0) {
84 dev_err(&i2c_pri->dev, "failed to add sub-devices: %d\n", ret);
85 goto err;
86 }
87
88 return 0;
89
90 err:
91 i2c_unregister_device(bcm590xx->i2c_sec);
92 return ret;
93 }
94
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-10-31 3:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-30 19:36 [PATCH 0/6] mfd: bcm590xx: Add support for BCM59054 Artur Weber
2023-10-30 19:36 ` [PATCH 1/6] dt-bindings: mfd: brcm,bcm59056: Convert to YAML Artur Weber
2023-10-31 5:52 ` Krzysztof Kozlowski
2023-10-31 9:36 ` Artur Weber
2023-10-31 13:54 ` Krzysztof Kozlowski
2023-10-30 19:36 ` [PATCH 2/6] dt-bindings: mfd: brcm,bcm59056: Add compatible for BCM59054 Artur Weber
2023-10-31 5:54 ` Krzysztof Kozlowski
2023-10-30 19:36 ` [PATCH 3/6] ARM: dts: Drop DTS for BCM59056 PMIC Artur Weber
2023-10-30 19:36 ` [PATCH 4/6] mfd: bcm590xx: Add compatible for BCM59054 Artur Weber
2023-10-31 3:38 ` kernel test robot [this message]
2023-11-06 9:46 ` kernel test robot
2023-10-30 19:36 ` [PATCH 5/6] regulator: bcm590xx: Add support " Artur Weber
2023-11-06 15:04 ` kernel test robot
2023-10-30 19:36 ` [PATCH 6/6] regulator: bcm590xx: Add proper handling for PMMODE registers Artur Weber
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=202310311110.QsKHR6Ap-lkp@intel.com \
--to=lkp@intel.com \
--cc=aweber.kernel@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=krzk@kernel.org \
--cc=lee@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rjui@broadcom.com \
--cc=robh+dt@kernel.org \
--cc=sbranden@broadcom.com \
--cc=stano.jakubek@gmail.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;
as well as URLs for NNTP newsgroup(s).