CC: [email protected]
CC: [email protected]
TO: Eric Biggers <[email protected]>
CC: Ulf Hansson <[email protected]>
CC: Satya Tangirala <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   b501b85957deb17f1fe0a861fee820255519d526
commit: 1e80709bdbfc1e1f3cac0ba8ed9a58f5789bcf51 mmc: cqhci: add support for 
inline encryption
date:   10 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 10 months ago
config: openrisc-randconfig-m031-20211123 
(https://download.01.org/0day-ci/archive/20211126/[email protected]/config)
compiler: or1k-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
drivers/mmc/host/cqhci-crypto.c:176 cqhci_crypto_init() warn: missing error 
code 'err'

vim +/err +176 drivers/mmc/host/cqhci-crypto.c

1e80709bdbfc1e Eric Biggers 2021-01-25  149  
1e80709bdbfc1e Eric Biggers 2021-01-25  150  /**
1e80709bdbfc1e Eric Biggers 2021-01-25  151   * cqhci_crypto_init - initialize 
CQHCI crypto support
1e80709bdbfc1e Eric Biggers 2021-01-25  152   * @cq_host: a cqhci host
1e80709bdbfc1e Eric Biggers 2021-01-25  153   *
1e80709bdbfc1e Eric Biggers 2021-01-25  154   * If the driver previously set 
MMC_CAP2_CRYPTO and the CQE declares
1e80709bdbfc1e Eric Biggers 2021-01-25  155   * CQHCI_CAP_CS, initialize the 
crypto support.  This involves reading the
1e80709bdbfc1e Eric Biggers 2021-01-25  156   * crypto capability registers, 
initializing the keyslot manager, clearing all
1e80709bdbfc1e Eric Biggers 2021-01-25  157   * keyslots, and enabling 128-bit 
task descriptors.
1e80709bdbfc1e Eric Biggers 2021-01-25  158   *
1e80709bdbfc1e Eric Biggers 2021-01-25  159   * Return: 0 if crypto was 
initialized or isn't supported; whether
1e80709bdbfc1e Eric Biggers 2021-01-25  160   *    MMC_CAP2_CRYPTO remains set 
indicates which one of those cases it is.
1e80709bdbfc1e Eric Biggers 2021-01-25  161   *    Also can return a negative 
errno value on unexpected error.
1e80709bdbfc1e Eric Biggers 2021-01-25  162   */
1e80709bdbfc1e Eric Biggers 2021-01-25  163  int cqhci_crypto_init(struct 
cqhci_host *cq_host)
1e80709bdbfc1e Eric Biggers 2021-01-25  164  {
1e80709bdbfc1e Eric Biggers 2021-01-25  165     struct mmc_host *mmc = 
cq_host->mmc;
1e80709bdbfc1e Eric Biggers 2021-01-25  166     struct device *dev = 
mmc_dev(mmc);
1e80709bdbfc1e Eric Biggers 2021-01-25  167     struct blk_keyslot_manager *ksm 
= &mmc->ksm;
1e80709bdbfc1e Eric Biggers 2021-01-25  168     unsigned int num_keyslots;
1e80709bdbfc1e Eric Biggers 2021-01-25  169     unsigned int cap_idx;
1e80709bdbfc1e Eric Biggers 2021-01-25  170     enum blk_crypto_mode_num 
blk_mode_num;
1e80709bdbfc1e Eric Biggers 2021-01-25  171     unsigned int slot;
1e80709bdbfc1e Eric Biggers 2021-01-25  172     int err = 0;
1e80709bdbfc1e Eric Biggers 2021-01-25  173  
1e80709bdbfc1e Eric Biggers 2021-01-25  174     if (!(mmc->caps2 & 
MMC_CAP2_CRYPTO) ||
1e80709bdbfc1e Eric Biggers 2021-01-25  175         !(cqhci_readl(cq_host, 
CQHCI_CAP) & CQHCI_CAP_CS))
1e80709bdbfc1e Eric Biggers 2021-01-25 @176             goto out;

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to