From: kernel test robot <lkp@intel.com>
To: "Nuno Sá via B4 Relay" <devnull+nuno.sa.analog.com@kernel.org>,
linux-hwmon@vger.kernel.org, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org, linux-doc@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>,
Jonathan Corbet <corbet@lwn.net>,
Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>
Subject: Re: [PATCH v2 2/3] hwmon: ltc4283: Add support for the LTC4283 Swap Controller
Date: Fri, 5 Sep 2025 05:30:48 +0800 [thread overview]
Message-ID: <202509050501.MXDrcrZA-lkp@intel.com> (raw)
In-Reply-To: <20250903-ltc4283-support-v2-2-6bce091510bf@analog.com>
Hi Nuno,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 9703c672af8dd3573c76ce509dfff26bf6c4768d]
url: https://github.com/intel-lab-lkp/linux/commits/Nuno-S-via-B4-Relay/dt-binbings-hwmon-Document-the-LTC4283-Swap-Controller/20250903-180813
base: 9703c672af8dd3573c76ce509dfff26bf6c4768d
patch link: https://lore.kernel.org/r/20250903-ltc4283-support-v2-2-6bce091510bf%40analog.com
patch subject: [PATCH v2 2/3] hwmon: ltc4283: Add support for the LTC4283 Swap Controller
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20250905/202509050501.MXDrcrZA-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250905/202509050501.MXDrcrZA-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/202509050501.MXDrcrZA-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/hwmon/ltc4283.c:595:10: warning: result of comparison of constant 65536 with expression of type 'u16' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
595 | if (tmp == BIT(16))
| ~~~ ^ ~~~~~~~
1 warning generated.
vim +595 drivers/hwmon/ltc4283.c
586
587 static int __ltc4283_write_in_history(struct ltc4283_hwmon *st,
588 u32 reg, long lowest, u32 fs)
589 {
590 __be16 __raw;
591 u16 tmp;
592 int ret;
593
594 tmp = DIV_ROUND_CLOSEST(BIT(16) * lowest, fs);
> 595 if (tmp == BIT(16))
596 tmp = U16_MAX;
597
598 __raw = cpu_to_be16(tmp);
599
600 ret = regmap_bulk_write(st->map, reg, &__raw, sizeof(__raw));
601 if (ret)
602 return ret;
603
604 tmp = 0;
605 return regmap_bulk_write(st->map, reg + 1, &tmp, sizeof(tmp));
606 }
607
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-09-04 21:33 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-03 10:04 [PATCH v2 0/3] hwmon: Add support for the LTC4283 Hot Swap Controller Nuno Sá
2025-09-03 10:04 ` Nuno Sá via B4 Relay
2025-09-03 10:04 ` [PATCH v2 1/3] dt-binbings: hwmon: Document the LTC4283 " Nuno Sá
2025-09-03 10:04 ` Nuno Sá via B4 Relay
2025-09-03 21:48 ` Rob Herring
2025-09-06 0:27 ` Guenter Roeck
2025-09-03 10:05 ` [PATCH v2 2/3] hwmon: ltc4283: Add support for " Nuno Sá
2025-09-03 10:05 ` Nuno Sá via B4 Relay
2025-09-04 21:30 ` kernel test robot [this message]
2025-09-06 1:24 ` Guenter Roeck
2025-09-12 14:00 ` Nuno Sá
2025-09-13 11:02 ` Guenter Roeck
2025-10-08 13:07 ` Nuno Sá
2025-10-08 14:11 ` Guenter Roeck
2025-10-08 14:45 ` Nuno Sá
2025-09-03 10:05 ` [PATCH v2 3/3] gpio: gpio-ltc4283: " Nuno Sá
2025-09-03 10:05 ` Nuno Sá via B4 Relay
2025-09-03 11:26 ` Andy Shevchenko
2025-09-09 10:27 ` Nuno Sá
2025-09-09 11:32 ` Andy Shevchenko
2025-09-04 2:42 ` Randy Dunlap
2025-09-04 19:57 ` Linus Walleij
2025-09-09 10:22 ` Nuno Sá
2025-09-09 10:25 ` Nuno Sá
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=202509050501.MXDrcrZA-lkp@intel.com \
--to=lkp@intel.com \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=devnull+nuno.sa.analog.com@kernel.org \
--cc=jdelvare@suse.com \
--cc=krzk@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@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.