Re: [PATCH] platform/x86: bitland-mifs-wmi: add TM2424 thin-ultrabook perf-mode quirk

From: kernel test robot

Date: Sun Aug 23 2026 - 07:46:37 EST


Hi,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on v7.2 next-20260821]
[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/kento-kekto-ru/platform-x86-bitland-mifs-wmi-add-TM2424-thin-ultrabook-perf-mode-quirk/20260817-005825
base: linus/master
patch link: https://lore.kernel.org/r/20260816215825.289356-1-kento%40kekto.ru
patch subject: [PATCH] platform/x86: bitland-mifs-wmi: add TM2424 thin-ultrabook perf-mode quirk
config: i386-buildonly-randconfig-002-20260823 (https://download.01.org/0day-ci/archive/20260823/202608231515.K5glAxIO-lkp@xxxxxxxxx/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260823/202608231515.K5glAxIO-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608231515.K5glAxIO-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/platform/x86/bitland-mifs-wmi.c:743:2: error: initializing 'struct attribute *' with an expression of type 'const struct attribute *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
743 | &dev_attr_gpu_mode.attr,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/platform/x86/bitland-mifs-wmi.c:744:2: error: initializing 'struct attribute *' with an expression of type 'const struct attribute *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
744 | &dev_attr_kb_mode.attr,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/platform/x86/bitland-mifs-wmi.c:745:2: error: initializing 'struct attribute *' with an expression of type 'const struct attribute *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
745 | &dev_attr_fan_boost.attr,
| ^~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.


vim +743 drivers/platform/x86/bitland-mifs-wmi.c

dc1ec4fa86b2b8b Mingyou Chen 2026-03-23 741
8bbb6b46df1cecc KentoNion 2026-08-17 742 static struct attribute *laptop_attrs[] = {
dc1ec4fa86b2b8b Mingyou Chen 2026-03-23 @743 &dev_attr_gpu_mode.attr,
dc1ec4fa86b2b8b Mingyou Chen 2026-03-23 744 &dev_attr_kb_mode.attr,
dc1ec4fa86b2b8b Mingyou Chen 2026-03-23 745 &dev_attr_fan_boost.attr,
dc1ec4fa86b2b8b Mingyou Chen 2026-03-23 746 NULL,
dc1ec4fa86b2b8b Mingyou Chen 2026-03-23 747 };
8bbb6b46df1cecc KentoNion 2026-08-17 748

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki