Re: [PATCH v2] staging: rtl8723bs: remove reduntant functions

From: Andy Shevchenko

Date: Mon Mar 23 2026 - 04:29:26 EST


On Mon, Mar 23, 2026 at 02:47:35AM +0800, kernel test robot wrote:
> Hi Bera,
>
> kernel test robot noticed the following build errors:

I can't reproduce this with clang 19:
$ clang --version
Debian clang version 19.1.7 (3+b1)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-19/bin

Bug in Clang? Or something happened to LKP?

+Cc: Nathan et alii.

Also, looking at the code I don't see how it's possible (yes, there is a
dangling declaration which has to be removed, but shouldn't it be rather a
compiler warning something near to declared-but-not-used?).

Bera, you need to remove the definition from
drivers/staging/rtl8723bs/hal/HalHWImg8723B_RF.h.

> [auto build test ERROR on staging/staging-testing]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Bera-Y-zl/staging-rtl8723bs-remove-reduntant-functions/20260322-055430
> base: staging/staging-testing
> patch link: https://lore.kernel.org/r/20260321104001.46968-2-b9788213%40gmail.com
> patch subject: [PATCH v2] staging: rtl8723bs: remove reduntant functions
> config: i386-randconfig-051-20260322 (https://download.01.org/0day-ci/archive/20260323/202603230240.3WRmMrTj-lkp@xxxxxxxxx/config)
> compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260323/202603230240.3WRmMrTj-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/202603230240.3WRmMrTj-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>, old ones prefixed by <<):
>
> >> ERROR: modpost: "ODM_ReadAndConfig_MP_8723B_TXPWR_LMT" [drivers/staging/rtl8723bs/r8723bs.ko] undefined!

--
With Best Regards,
Andy Shevchenko