From: kernel test robot <lkp@intel.com>
To: "Marek Behún" <kabel@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Lee Jones <lee@kernel.org>
Subject: drivers/leds/leds-turris-omnia.c:438:15: sparse: sparse: cast to restricted __le16
Date: Fri, 1 Dec 2023 22:21:46 +0800 [thread overview]
Message-ID: <202312012213.wUNHTGnZ-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 994d5c58e50e91bb02c7be4a91d5186292a895c8
commit: 43e9082fbccc7df8b2028c1ba040c58cefda703f leds: turris-omnia: Add support for enabling/disabling HW gamma correction
date: 4 weeks ago
config: loongarch-randconfig-r034-20230511 (https://download.01.org/0day-ci/archive/20231201/202312012213.wUNHTGnZ-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20231201/202312012213.wUNHTGnZ-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/202312012213.wUNHTGnZ-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/leds/leds-turris-omnia.c:438:15: sparse: sparse: cast to restricted __le16
drivers/leds/leds-turris-omnia.c:446:16: sparse: sparse: cast to restricted __le16
vim +438 drivers/leds/leds-turris-omnia.c
426
427 static int omnia_mcu_get_features(const struct i2c_client *client)
428 {
429 u16 reply;
430 int err;
431
432 err = omnia_cmd_read_raw(client->adapter, OMNIA_MCU_I2C_ADDR,
433 CMD_GET_STATUS_WORD, &reply, sizeof(reply));
434 if (err < 0)
435 return err;
436
437 /* Check whether MCU firmware supports the CMD_GET_FEAUTRES command */
> 438 if (!(le16_to_cpu(reply) & STS_FEATURES_SUPPORTED))
439 return 0;
440
441 err = omnia_cmd_read_raw(client->adapter, OMNIA_MCU_I2C_ADDR,
442 CMD_GET_FEATURES, &reply, sizeof(reply));
443 if (err < 0)
444 return err;
445
446 return le16_to_cpu(reply);
447 }
448
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-12-01 14:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-01 14:21 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-02 2:38 drivers/leds/leds-turris-omnia.c:438:15: sparse: sparse: cast to restricted __le16 kernel test robot
2023-11-29 15:43 kernel test robot
2023-11-29 13:20 kernel test robot
2023-11-29 13:20 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=202312012213.wUNHTGnZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=kabel@kernel.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox