Re: [PATCH 5/8] char: rpmb: add RPMB simulation device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tomas,

[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on v4.6-rc2 next-20160401]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Tomas-Winkler/Replay-Protected-Memory-Block-RPMB-subsystem/20160403-174929
config: s390-allyesconfig (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
        # save the attached .config to linux build tree
        make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   drivers/char/rpmb/rpmb_sim.c: In function 'rpmb_sim_calc_hmac':
>> drivers/char/rpmb/rpmb_sim.c:164:1: warning: 'rpmb_sim_calc_hmac' uses dynamic stack allocation
    }
    ^

vim +/rpmb_sim_calc_hmac +164 drivers/char/rpmb/rpmb_sim.c

   148	
   149		ret = crypto_shash_init(desc);
   150		if (ret)
   151			goto out;
   152	
   153		for (i = 0; i < blks; i++) {
   154			ret = crypto_shash_update(desc, frames[i].data, hmac_data_len);
   155			if (ret)
   156				goto out;
   157		}
   158		ret = crypto_shash_final(desc, mac);
   159	out:
   160		if (ret)
   161			dev_err(rsdev->dev, "digest error = %d", ret);
   162	
   163		return ret;
 > 164	}
   165	
   166	static int rpmb_op_not_programmed(struct rpmb_sim_dev *rsdev,
   167					  struct rpmb_data *rpmbd)
   168	{
   169		struct rpmb_frame *in_frame, *out_frame;
   170		u16 req;
   171	
   172		in_frame = &rpmbd->in_frames[0];

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

Attachment: .config.gz
Description: Binary data


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux