From: kernel test robot <lkp@intel.com>
To: Carlos Ferreira <carlosmiguelferreira.2003@gmail.com>,
hdegoede@redhat.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org,
carlosmiguelferreira.2003@gmail.com
Subject: Re: [PATCH v3 1/1] HP: wmi: added support for 4 zone keyboard rgb
Date: Mon, 8 Jul 2024 06:22:11 +0800 [thread overview]
Message-ID: <202407080657.XLHI1WRv-lkp@intel.com> (raw)
In-Reply-To: <20240707175613.27529-2-carlosmiguelferreira.2003@gmail.com>
Hi Carlos,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v6.10-rc6 next-20240703]
[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/Carlos-Ferreira/HP-wmi-added-support-for-4-zone-keyboard-rgb/20240708-015808
base: linus/master
patch link: https://lore.kernel.org/r/20240707175613.27529-2-carlosmiguelferreira.2003%40gmail.com
patch subject: [PATCH v3 1/1] HP: wmi: added support for 4 zone keyboard rgb
config: i386-randconfig-001-20240708 (https://download.01.org/0day-ci/archive/20240708/202407080657.XLHI1WRv-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240708/202407080657.XLHI1WRv-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/202407080657.XLHI1WRv-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/platform/x86/hp/hp-wmi.c:1590:28: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1590 | buff[25 + zone * 3] = FIELD_GET(FOURZONE_COLOR_R, color);
| ^
>> drivers/platform/x86/hp/hp-wmi.c:1609:15: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1609 | colors[i] = FIELD_PREP(FOURZONE_COLOR_R, buff[25 + i * 3])
| ^
2 errors generated.
vim +/FIELD_GET +1590 drivers/platform/x86/hp/hp-wmi.c
1579
1580 static int fourzone_set_colors(u32 color, size_t zone)
1581 {
1582 u8 buff[128];
1583 int ret;
1584
1585 ret = hp_wmi_perform_query(HPWMI_FOURZONE_COLOR_GET, HPWMI_FOURZONE,
1586 &buff, sizeof(buff), sizeof(buff));
1587 if (ret != 0)
1588 return -EINVAL;
1589
> 1590 buff[25 + zone * 3] = FIELD_GET(FOURZONE_COLOR_R, color);
1591 buff[25 + zone * 3 + 1] = FIELD_GET(FOURZONE_COLOR_G, color);
1592 buff[25 + zone * 3 + 2] = FIELD_GET(FOURZONE_COLOR_B, color);
1593
1594 return hp_wmi_perform_query(HPWMI_FOURZONE_COLOR_SET, HPWMI_FOURZONE,
1595 &buff, sizeof(buff), sizeof(buff));
1596 }
1597
1598 static int fourzone_get_colors(u32 *colors)
1599 {
1600 u8 buff[128];
1601 int ret;
1602
1603 ret = hp_wmi_perform_query(HPWMI_FOURZONE_COLOR_GET, HPWMI_FOURZONE,
1604 &buff, sizeof(buff), sizeof(buff));
1605 if (ret != 0)
1606 return -EINVAL;
1607
1608 for (int i = 0; i < 4; i++) {
> 1609 colors[i] = FIELD_PREP(FOURZONE_COLOR_R, buff[25 + i * 3])
1610 | FIELD_PREP(FOURZONE_COLOR_G, buff[25 + i * 3 + 1])
1611 | FIELD_PREP(FOURZONE_COLOR_B, buff[25 + i * 3 + 2]);
1612 }
1613
1614 return 0;
1615 }
1616
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-07-07 22:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-07 17:54 [PATCH v3 0/1] HP: wmi: added support for 4 zone keyboard rgb Carlos Ferreira
2024-07-07 17:54 ` [PATCH v3 1/1] " Carlos Ferreira
2024-07-07 22:22 ` kernel test robot [this message]
2024-07-08 0:36 ` kernel test robot
2024-07-11 8:41 ` Ilpo Järvinen
2024-07-11 15:17 ` Hans de Goede
2024-07-11 17:37 ` Hans de Goede
2024-07-12 16:39 ` Carlos Ferreira
2024-07-13 11:29 ` Hans de Goede
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=202407080657.XLHI1WRv-lkp@intel.com \
--to=lkp@intel.com \
--cc=carlosmiguelferreira.2003@gmail.com \
--cc=hdegoede@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=platform-driver-x86@vger.kernel.org \
/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