mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c:3194 cudbg_collect_flash() error: uninitialized symbol 'rc'.
@ 2020-08-12 17:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-12 17:29 UTC (permalink / raw)
  To: Vishal Kulkarni; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1953 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fb893de323e2d39f7a1f6df425703a2edbdf56ea
commit: 17b332f48074e7ee2169ee4268ced6274e1c95c3 cxgb4: add support to read serial flash
date:   8 weeks ago
config: parisc-randconfig-m031-20200811 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0

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

New smatch warnings:
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c:3194 cudbg_collect_flash() error: uninitialized symbol 'rc'.

Old smatch warnings:
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c:3157 cudbg_collect_qdesc() error: uninitialized symbol 'rc'.

vim +/rc +3194 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c

  3159	
  3160	int cudbg_collect_flash(struct cudbg_init *pdbg_init,
  3161				struct cudbg_buffer *dbg_buff,
  3162				struct cudbg_error *cudbg_err)
  3163	{
  3164		struct adapter *padap = pdbg_init->adap;
  3165		u32 count = padap->params.sf_size, n;
  3166		struct cudbg_buffer temp_buff = {0};
  3167		u32 addr, i;
  3168		int rc;
  3169	
  3170		addr = FLASH_EXP_ROM_START;
  3171	
  3172		for (i = 0; i < count; i += SF_PAGE_SIZE) {
  3173			n = min_t(u32, count - i, SF_PAGE_SIZE);
  3174	
  3175			rc = cudbg_get_buff(pdbg_init, dbg_buff, n, &temp_buff);
  3176			if (rc) {
  3177				cudbg_err->sys_warn = CUDBG_STATUS_PARTIAL_DATA;
  3178				goto out;
  3179			}
  3180			rc = t4_read_flash(padap, addr, n, (u32 *)temp_buff.data, 0);
  3181			if (rc)
  3182				goto out;
  3183	
  3184			addr += (n * 4);
  3185			rc = cudbg_write_and_release_buff(pdbg_init, &temp_buff,
  3186							  dbg_buff);
  3187			if (rc) {
  3188				cudbg_err->sys_warn = CUDBG_STATUS_PARTIAL_DATA;
  3189				goto out;
  3190			}
  3191		}
  3192	
  3193	out:
> 3194		return rc;

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30858 bytes --]

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

only message in thread, other threads:[~2020-08-12 17:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12 17:29 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c:3194 cudbg_collect_flash() error: uninitialized symbol 'rc' 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

Powered by JetHome