From: kernel test robot <lkp@intel.com>
To: Alex Vdovydchenko <xzeol@yahoo.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v4 2/2] hwmon: add MP5920 driver
Date: Wed, 3 Jul 2024 12:53:33 +0800 [thread overview]
Message-ID: <202407031245.ZIvUCyeR-lkp@intel.com> (raw)
In-Reply-To: <20240702115252.981416-3-xzeol@yahoo.com>
Hi Alex,
kernel test robot noticed the following build warnings:
[auto build test WARNING on groeck-staging/hwmon-next]
[also build test WARNING on next-20240702]
[cannot apply to robh/for-next krzk-dt/for-next linus/master v6.10-rc6]
[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/Alex-Vdovydchenko/dt-bindings-hwmon-Add-MPS-mp5920/20240702-202656
base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
patch link: https://lore.kernel.org/r/20240702115252.981416-3-xzeol%40yahoo.com
patch subject: [PATCH v4 2/2] hwmon: add MP5920 driver
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20240703/202407031245.ZIvUCyeR-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/20240703/202407031245.ZIvUCyeR-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/202407031245.ZIvUCyeR-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/hwmon/pmbus/mp5920.c: In function 'mp5920_probe':
>> drivers/hwmon/pmbus/mp5920.c:49:62: warning: field precision specifier '.*' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
49 | return dev_err_probe(dev, -ENODEV, "Model '%.*s' not supported\n",
| ~~^~
| |
| int
50 | sizeof(buf), buf);
| ~~~~~~~~~~~
| |
| long unsigned int
vim +49 drivers/hwmon/pmbus/mp5920.c
33
34 static int mp5920_probe(struct i2c_client *client)
35 {
36 struct device *dev = &client->dev;
37 int ret;
38 u8 buf[I2C_SMBUS_BLOCK_MAX];
39
40 if (!i2c_check_functionality(client->adapter,
41 I2C_FUNC_SMBUS_READ_WORD_DATA))
42 return -ENODEV;
43
44 ret = i2c_smbus_read_block_data(client, PMBUS_MFR_MODEL, buf);
45 if (ret < 0)
46 return dev_err_probe(dev, ret, "Failed to read PMBUS_MFR_MODEL\n");
47
48 if (ret != 6 || strncmp(buf, "MP5920", 6)) {
> 49 return dev_err_probe(dev, -ENODEV, "Model '%.*s' not supported\n",
50 sizeof(buf), buf);
51 }
52
53 return pmbus_do_probe(client, &mp5920_info);
54 }
55
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-07-03 4:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240702115252.981416-1-xzeol.ref@yahoo.com>
2024-07-02 11:52 ` [PATCH v4 0/2] Add MPS MP5920 Host-Swap controller Alex Vdovydchenko
2024-07-02 11:52 ` [PATCH v4 1/2] dt-bindings: hwmon: Add MPS mp5920 Alex Vdovydchenko
2024-07-02 13:10 ` Krzysztof Kozlowski
2024-07-02 19:29 ` Guenter Roeck
2024-07-03 15:49 ` Conor Dooley
2024-07-02 11:52 ` [PATCH v4 2/2] hwmon: add MP5920 driver Alex Vdovydchenko
2024-07-02 19:00 ` Thomas Weißschuh
2024-07-02 19:39 ` Guenter Roeck
2024-07-02 19:36 ` Guenter Roeck
2024-07-03 4:53 ` kernel test robot [this message]
2024-07-03 5:27 ` kernel test robot
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=202407031245.ZIvUCyeR-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=xzeol@yahoo.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 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.