public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* Re: [PATCH] staging: rtl8723bs: refactor halbtc8723b1ant_CoexTableWithType() to remove duplication
       [not found] <aYiMi-X5r4aUEC32@BERA.localdomain>
@ 2026-02-08 18:35 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-08 18:35 UTC (permalink / raw)
  To: Bera Yüzlü, gregkh, linux-staging
  Cc: llvm, oe-kbuild-all, linux-kernel

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@intel.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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-08 18:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <aYiMi-X5r4aUEC32@BERA.localdomain>
2026-02-08 18:35 ` [PATCH] staging: rtl8723bs: refactor halbtc8723b1ant_CoexTableWithType() to remove duplication kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox