[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202602090207.A176hCPb-lkp@intel.com>
Date: Mon, 9 Feb 2026 02:35:20 +0800
From: kernel test robot <lkp@...el.com>
To: Bera Yüzlü <b9788213@...il.com>,
gregkh@...uxfoundation.org, linux-staging@...ts.linux.dev
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: rtl8723bs: refactor
halbtc8723b1ant_CoexTableWithType() to remove duplication
Hi Bera,
kernel test robot noticed the following build warnings:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/intel-lab-lkp/linux/commits/Bera-Y-zl/staging-rtl8723bs-refactor-halbtc8723b1ant_CoexTableWithType-to-remove-duplication/20260208-211800
base: staging/staging-testing
patch link: https://lore.kernel.org/r/aYiMi-X5r4aUEC32%40BERA.localdomain
patch subject: [PATCH] staging: rtl8723bs: refactor halbtc8723b1ant_CoexTableWithType() to remove duplication
config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20260209/202602090207.A176hCPb-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260209/202602090207.A176hCPb-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602090207.A176hCPb-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:700:9: warning: result of comparison of constant -1 with expression of type 'u8' (aka 'unsigned char') is always true [-Wtautological-constant-out-of-range-compare]
700 | if (-1 < type && type < 8)
| ~~ ^ ~~~~
1 warning generated.
vim +700 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
682
683 static void halbtc8723b1ant_CoexTableWithType(
684 struct btc_coexist *pBtCoexist, bool bForceExec, u8 type
685 )
686 {
687 static const u32 table[8][2] = {
688 {0x55555555, 0x55555555},
689 {0x55555555, 0x5a5a5a5a},
690 {0x5a5a5a5a, 0x5a5a5a5a},
691 {0xaaaa5555, 0xaaaa5a5a},
692 {0x55555555, 0xaaaa5a5a},
693 {0x5a5a5a5a, 0xaaaa5a5a},
694 {0x55555555, 0xaaaaaaaa},
695 {0xaaaaaaaa, 0xaaaaaaaa}
696 };
697
698 pCoexSta->nCoexTableType = type;
699
> 700 if (-1 < type && type < 8)
701 halbtc8723b1ant_CoexTable(
702 pBtCoexist, bForceExec, table[type][0], table[type][1], 0xffffff, 0x3
703 );
704 }
705
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists