[mcgrof-next:20210903-firmware-builtin 8/8] drivers/base/firmware_loader/builtin/main.c:42:6: warning: no previous prototype for 'firmware_is_builtin'

From: kernel test robot
Date: Sat Sep 04 2021 - 00:12:55 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210903-firmware-builtin
head: f04680656e851c6cde6f2ee077053edf49c2a65e
commit: f04680656e851c6cde6f2ee077053edf49c2a65e [8/8] test_firmware: add support for testing built-in firmware
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/commit/?id=f04680656e851c6cde6f2ee077053edf49c2a65e
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20210903-firmware-builtin
git checkout f04680656e851c6cde6f2ee077053edf49c2a65e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sh

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/base/firmware_loader/builtin/main.c:42:6: warning: no previous prototype for 'firmware_is_builtin' [-Wmissing-prototypes]
42 | bool firmware_is_builtin(const struct firmware *fw)
| ^~~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FW_LOADER_BUILTIN
Depends on FW_LOADER
Selected by
- TEST_BUILTIN_FIRMWARE && RUNTIME_TESTING_MENU && TEST_FIRMWARE


vim +/firmware_is_builtin +42 drivers/base/firmware_loader/builtin/main.c

7ee0e1090d8707 Luis Chamberlain 2021-09-03 41
7ee0e1090d8707 Luis Chamberlain 2021-09-03 @42 bool firmware_is_builtin(const struct firmware *fw)

:::::: The code at line 42 was first introduced by commit
:::::: 7ee0e1090d8707d9e53490697ccd0200fcba07a9 firmware_loader: formalize built-in firmware API

:::::: TO: Luis Chamberlain <mcgrof@xxxxxxxxxx>
:::::: CC: Luis Chamberlain <mcgrof@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip