netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net:master 66/72] drivers/net/ethernet/chelsio/cxgb3/t3_hw.c:700:1: warning: 'vpdstrtou16.constprop' uses dynamic stack allocation
@ 2016-02-20  7:52 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-02-20  7:52 UTC (permalink / raw)
  To: Steve Wise; +Cc: kbuild-all, netdev

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git master
head:   d07c0278da1f4cfc91c3d46d0d07a0d13a949892
commit: 1003e19c466dc37812b5f88b2d5308ee63bb3fa0 [66/72] cxgb3: fix up vpd strings for kstrto*()
config: s390-allmodconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 1003e19c466dc37812b5f88b2d5308ee63bb3fa0
        # save the attached .config to linux build tree
        make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/chelsio/cxgb3/t3_hw.c: In function 'vpdstrtou16.constprop':
>> drivers/net/ethernet/chelsio/cxgb3/t3_hw.c:700:1: warning: 'vpdstrtou16.constprop' uses dynamic stack allocation
    }
    ^
   drivers/net/ethernet/chelsio/cxgb3/t3_hw.c: In function 'vpdstrtouint.constprop':
>> drivers/net/ethernet/chelsio/cxgb3/t3_hw.c:691:1: warning: 'vpdstrtouint.constprop' uses dynamic stack allocation
    }
    ^

vim +700 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c

   685	{
   686		char tok[len + 1];
   687	
   688		memcpy(tok, s, len);
   689		tok[len] = 0;
   690		return kstrtouint(strim(tok), base, val);
 > 691	}
   692	
   693	static int vpdstrtou16(char *s, int len, unsigned int base, u16 *val)
   694	{
   695		char tok[len + 1];
   696	
   697		memcpy(tok, s, len);
   698		tok[len] = 0;
   699		return kstrtou16(strim(tok), base, val);
 > 700	}
   701	
   702	/**
   703	 *	get_vpd_params - read VPD parameters from VPD EEPROM

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 39928 bytes --]

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

only message in thread, other threads:[~2016-02-20  7:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-20  7:52 [net:master 66/72] drivers/net/ethernet/chelsio/cxgb3/t3_hw.c:700:1: warning: 'vpdstrtou16.constprop' uses dynamic stack allocation kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).