[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202208161258.HBI8vTO9-lkp@intel.com>
Date: Tue, 16 Aug 2022 12:50:39 +0800
From: kernel test robot <lkp@...el.com>
To: Szuying Chen <chensiying21@...il.com>, gregkh@...uxfoundation.org,
mika.westerberg@...ux.intel.com, andreas.noever@...il.com,
michael.jamet@...el.com, YehezkelShB@...il.com,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: kbuild-all@...ts.01.org, Yd_Tseng@...edia.com.tw,
Chloe_Chen@...edia.com.tw, Richard_Hsu@...edia.com.tw
Subject: Re: [PATCH] thunderbolt: thunderbolt: add vendor's NVM formats
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-rc1 next-20220815]
[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-thunderbolt-add-vendor-s-NVM-formats/20220815-121330
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 568035b01cfb107af8d2e4bd2fb9aea22cf5b868
config: i386-randconfig-m021
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
smatch warnings:
drivers/thunderbolt/nvm.c:159 tb_nvm_validate() warn: inconsistent indenting
drivers/thunderbolt/nvm.c:161 tb_nvm_validate() error: uninitialized symbol 'res'.
vim +159 drivers/thunderbolt/nvm.c
143
144 /**
145 * tb_nvm_vendor_handle() - support vendor's NVM format
146 * @sw: Thunderbolt switch
147 * @handle: 0:NvmUpgradeSuppport, 1:NvmAdd, 2:NvmWrite
148 */
149 int tb_nvm_validate(struct tb_switch *sw, unsigned int mode)
150 {
151 int res, i;
152
153 for (i = 0; i < ARRAY_SIZE(tb_nvm_vendors); i++) {
154 const struct tb_nvm_id *id = &tb_nvm_vendors[i];
155
156 if (id->hw_vendor_id && id->hw_vendor_id != sw->config.vendor_id)
157 continue;
158
> 159 res = id->validate(sw, mode);
160 }
> 161 return res;
162 }
163
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (131847 bytes)
Powered by blists - more mailing lists