Hi Szuying, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v6.0-rc3 next-20220901] [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/Szuying-Chen/thunderbolt-add-vendor-s-NVM-formats/20220902-174246 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 42e66b1cc3a070671001f8a1e933a80818a192bf config: loongarch-randconfig-s051-20220901 (https://download.01.org/0day-ci/archive/20220904/202209040723.T3GBSVUx-lkp@xxxxxxxxx/config) compiler: loongarch64-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/02a1339d2c5a67367909bfcb11e307d3cfa44f74 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Szuying-Chen/thunderbolt-add-vendor-s-NVM-formats/20220902-174246 git checkout 02a1339d2c5a67367909bfcb11e307d3cfa44f74 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=loongarch SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@xxxxxxxxx> sparse warnings: (new ones prefixed by >>) drivers/thunderbolt/nvm.c: note: in included file: >> drivers/thunderbolt/tb.h:743:20: sparse: sparse: marked inline, but without a definition >> drivers/thunderbolt/tb.h:743:20: sparse: sparse: marked inline, but without a definition vim +743 drivers/thunderbolt/tb.h 742 > 743 inline int nvm_read(struct tb_switch *sw, unsigned int address, 744 void *buf, size_t size); 745 struct tb_nvm *tb_nvm_alloc(struct device *dev); 746 int tb_nvm_add_active(struct tb_nvm *nvm, size_t size, nvmem_reg_read_t reg_read); 747 int tb_nvm_write_buf(struct tb_nvm *nvm, unsigned int offset, void *val, 748 size_t bytes); 749 int tb_nvm_add_non_active(struct tb_nvm *nvm, size_t size, 750 nvmem_reg_write_t reg_write); 751 void tb_nvm_free(struct tb_nvm *nvm); 752 void tb_nvm_exit(void); 753 -- 0-DAY CI Kernel Test Service https://01.org/lkp