From: kernel test robot <lkp@intel.com>
To: Dirga Yuza <dirgayuza123@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH] platform/x86: acer-wmi: Add 4-zone RGB keyboard support for Acer Nitro AN515-58
Date: Sun, 10 May 2026 19:59:39 +0800 [thread overview]
Message-ID: <202605101956.GFGLqih0-lkp@intel.com> (raw)
In-Reply-To: <20260503062131.158944-1-dirgayuza123@gmail.com>
Hi Dirga,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:
[auto build test WARNING on linus/master]
[also build test WARNING on v7.1-rc2 next-20260508]
[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/Dirga-Yuza/platform-x86-acer-wmi-Add-4-zone-RGB-keyboard-support-for-Acer-Nitro-AN515-58/20260510-030340
base: linus/master
patch link: https://lore.kernel.org/r/20260503062131.158944-1-dirgayuza123%40gmail.com
patch subject: [RFC PATCH] platform/x86: acer-wmi: Add 4-zone RGB keyboard support for Acer Nitro AN515-58
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20260510/202605101956.GFGLqih0-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260510/202605101956.GFGLqih0-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/202605101956.GFGLqih0-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/bitops.h:6,
from include/linux/kernel.h:23,
from drivers/platform/x86/acer-wmi.c:14:
drivers/platform/x86/acer-wmi.c: In function 'acer_wmi_poll_and_enable_zones':
include/linux/bits.h:48:27: warning: left shift count >= width of type [-Wshift-count-overflow]
48 | (type_max(t) << (l) & \
| ^~
include/linux/bits.h:51:33: note: in expansion of macro 'GENMASK_TYPE'
51 | #define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
| ^~~~~~~~~~~~
drivers/platform/x86/acer-wmi.c:102:39: note: in expansion of macro 'GENMASK'
102 | #define ACER_GAMING_KBL_SET_ALL_ZONES GENMASK(43, 40)
| ^~~~~~~
drivers/platform/x86/acer-wmi.c:2793:17: note: in expansion of macro 'ACER_GAMING_KBL_SET_ALL_ZONES'
2793 | ACER_GAMING_KBL_SET_ALL_ZONES,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:49:27: warning: right shift count >= width of type [-Wshift-count-overflow]
49 | type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
| ^~
include/linux/bits.h:51:33: note: in expansion of macro 'GENMASK_TYPE'
51 | #define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
| ^~~~~~~~~~~~
drivers/platform/x86/acer-wmi.c:102:39: note: in expansion of macro 'GENMASK'
102 | #define ACER_GAMING_KBL_SET_ALL_ZONES GENMASK(43, 40)
| ^~~~~~~
drivers/platform/x86/acer-wmi.c:2793:17: note: in expansion of macro 'ACER_GAMING_KBL_SET_ALL_ZONES'
2793 | ACER_GAMING_KBL_SET_ALL_ZONES,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/bitops.h:6,
from include/linux/kernel.h:23,
from acer-wmi.c:14:
acer-wmi.c: In function 'acer_wmi_poll_and_enable_zones':
include/linux/bits.h:48:27: warning: left shift count >= width of type [-Wshift-count-overflow]
48 | (type_max(t) << (l) & \
| ^~
include/linux/bits.h:51:33: note: in expansion of macro 'GENMASK_TYPE'
51 | #define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
| ^~~~~~~~~~~~
acer-wmi.c:102:39: note: in expansion of macro 'GENMASK'
102 | #define ACER_GAMING_KBL_SET_ALL_ZONES GENMASK(43, 40)
| ^~~~~~~
acer-wmi.c:2793:17: note: in expansion of macro 'ACER_GAMING_KBL_SET_ALL_ZONES'
2793 | ACER_GAMING_KBL_SET_ALL_ZONES,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:49:27: warning: right shift count >= width of type [-Wshift-count-overflow]
49 | type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
| ^~
include/linux/bits.h:51:33: note: in expansion of macro 'GENMASK_TYPE'
51 | #define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
| ^~~~~~~~~~~~
acer-wmi.c:102:39: note: in expansion of macro 'GENMASK'
102 | #define ACER_GAMING_KBL_SET_ALL_ZONES GENMASK(43, 40)
| ^~~~~~~
acer-wmi.c:2793:17: note: in expansion of macro 'ACER_GAMING_KBL_SET_ALL_ZONES'
2793 | ACER_GAMING_KBL_SET_ALL_ZONES,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +49 include/linux/bits.h
31299a5e0211241 Vincent Mailhol 2025-03-26 35
19408200c094858 Vincent Mailhol 2025-03-26 36 /*
19408200c094858 Vincent Mailhol 2025-03-26 37 * Generate a mask for the specified type @t. Additional checks are made to
19408200c094858 Vincent Mailhol 2025-03-26 38 * guarantee the value returned fits in that type, relying on
19408200c094858 Vincent Mailhol 2025-03-26 39 * -Wshift-count-overflow compiler check to detect incompatible arguments.
19408200c094858 Vincent Mailhol 2025-03-26 40 * For example, all these create build errors or warnings:
19408200c094858 Vincent Mailhol 2025-03-26 41 *
19408200c094858 Vincent Mailhol 2025-03-26 42 * - GENMASK(15, 20): wrong argument order
19408200c094858 Vincent Mailhol 2025-03-26 43 * - GENMASK(72, 15): doesn't fit unsigned long
19408200c094858 Vincent Mailhol 2025-03-26 44 * - GENMASK_U32(33, 15): doesn't fit in a u32
19408200c094858 Vincent Mailhol 2025-03-26 45 */
19408200c094858 Vincent Mailhol 2025-03-26 46 #define GENMASK_TYPE(t, h, l) \
19408200c094858 Vincent Mailhol 2025-03-26 47 ((t)(GENMASK_INPUT_CHECK(h, l) + \
19408200c094858 Vincent Mailhol 2025-03-26 48 (type_max(t) << (l) & \
19408200c094858 Vincent Mailhol 2025-03-26 @49 type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
19408200c094858 Vincent Mailhol 2025-03-26 50
104ea1c84b91c9f Vincent Mailhol 2025-06-09 @51 #define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
104ea1c84b91c9f Vincent Mailhol 2025-06-09 52 #define GENMASK_ULL(h, l) GENMASK_TYPE(unsigned long long, h, l)
104ea1c84b91c9f Vincent Mailhol 2025-06-09 53
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2026-05-10 11:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-03 6:19 [RFC PATCH] platform/x86: acer-wmi: Add 4-zone RGB keyboard support for Acer Nitro AN515-58 Dirga Yuza
2026-05-10 11:59 ` kernel test robot [this message]
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=202605101956.GFGLqih0-lkp@intel.com \
--to=lkp@intel.com \
--cc=dirgayuza123@gmail.com \
--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.