[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204191448.K7JF5bcS-lkp@intel.com>
Date: Tue, 19 Apr 2022 14:26:42 +0800
From: kernel test robot <lkp@...el.com>
To: Ingo Molnar <mingo@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mingo-tip:sched/headers 2193/2356]
drivers/crypto/qat/qat_common/adf_gen4_pm.c:99:17: warning: assignment to
'struct adf_gen4_pm_data *' from 'int' makes pointer from integer without a
cast
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: af93551cf39027d176f30b9beafc60a4c130998a
commit: f2ce8327351a044882fbafa2cad2f9c3688414b4 [2193/2356] headers/deps: pci/x86: Optimize <asm/pci.h> dependencies
config: x86_64-randconfig-a006-20220418 (https://download.01.org/0day-ci/archive/20220419/202204191448.K7JF5bcS-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=f2ce8327351a044882fbafa2cad2f9c3688414b4
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout f2ce8327351a044882fbafa2cad2f9c3688414b4
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/bus/mhi/host/ drivers/crypto/qat/qat_common/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
drivers/crypto/qat/qat_common/adf_gen4_pm.c: In function 'pm_bh_handler':
drivers/crypto/qat/qat_common/adf_gen4_pm.c:72:9: error: implicit declaration of function 'kfree'; did you mean 'vfree'? [-Werror=implicit-function-declaration]
72 | kfree(pm_data);
| ^~~~~
| vfree
drivers/crypto/qat/qat_common/adf_gen4_pm.c: In function 'adf_gen4_handle_pm_interrupt':
drivers/crypto/qat/qat_common/adf_gen4_pm.c:99:19: error: implicit declaration of function 'kzalloc'; did you mean 'vzalloc'? [-Werror=implicit-function-declaration]
99 | pm_data = kzalloc(sizeof(*pm_data), GFP_ATOMIC);
| ^~~~~~~
| vzalloc
>> drivers/crypto/qat/qat_common/adf_gen4_pm.c:99:17: warning: assignment to 'struct adf_gen4_pm_data *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
99 | pm_data = kzalloc(sizeof(*pm_data), GFP_ATOMIC);
| ^
cc1: some warnings being treated as errors
vim +99 drivers/crypto/qat/qat_common/adf_gen4_pm.c
e5745f34113b75 Wojciech Ziemba 2022-02-10 74
e5745f34113b75 Wojciech Ziemba 2022-02-10 75 bool adf_gen4_handle_pm_interrupt(struct adf_accel_dev *accel_dev)
e5745f34113b75 Wojciech Ziemba 2022-02-10 76 {
e5745f34113b75 Wojciech Ziemba 2022-02-10 77 void __iomem *pmisc = adf_get_pmisc_base(accel_dev);
e5745f34113b75 Wojciech Ziemba 2022-02-10 78 struct adf_gen4_pm_data *pm_data = NULL;
e5745f34113b75 Wojciech Ziemba 2022-02-10 79 u32 errsou2;
e5745f34113b75 Wojciech Ziemba 2022-02-10 80 u32 errmsk2;
e5745f34113b75 Wojciech Ziemba 2022-02-10 81 u32 val;
e5745f34113b75 Wojciech Ziemba 2022-02-10 82
e5745f34113b75 Wojciech Ziemba 2022-02-10 83 /* Only handle the interrupt triggered by PM */
e5745f34113b75 Wojciech Ziemba 2022-02-10 84 errmsk2 = ADF_CSR_RD(pmisc, ADF_GEN4_ERRMSK2);
e5745f34113b75 Wojciech Ziemba 2022-02-10 85 if (errmsk2 & ADF_GEN4_PM_SOU)
e5745f34113b75 Wojciech Ziemba 2022-02-10 86 return false;
e5745f34113b75 Wojciech Ziemba 2022-02-10 87
e5745f34113b75 Wojciech Ziemba 2022-02-10 88 errsou2 = ADF_CSR_RD(pmisc, ADF_GEN4_ERRSOU2);
e5745f34113b75 Wojciech Ziemba 2022-02-10 89 if (!(errsou2 & ADF_GEN4_PM_SOU))
e5745f34113b75 Wojciech Ziemba 2022-02-10 90 return false;
e5745f34113b75 Wojciech Ziemba 2022-02-10 91
e5745f34113b75 Wojciech Ziemba 2022-02-10 92 /* Disable interrupt */
e5745f34113b75 Wojciech Ziemba 2022-02-10 93 val = ADF_CSR_RD(pmisc, ADF_GEN4_ERRMSK2);
e5745f34113b75 Wojciech Ziemba 2022-02-10 94 val |= ADF_GEN4_PM_SOU;
e5745f34113b75 Wojciech Ziemba 2022-02-10 95 ADF_CSR_WR(pmisc, ADF_GEN4_ERRMSK2, val);
e5745f34113b75 Wojciech Ziemba 2022-02-10 96
e5745f34113b75 Wojciech Ziemba 2022-02-10 97 val = ADF_CSR_RD(pmisc, ADF_GEN4_PM_INTERRUPT);
e5745f34113b75 Wojciech Ziemba 2022-02-10 98
e5745f34113b75 Wojciech Ziemba 2022-02-10 @99 pm_data = kzalloc(sizeof(*pm_data), GFP_ATOMIC);
e5745f34113b75 Wojciech Ziemba 2022-02-10 100 if (!pm_data)
e5745f34113b75 Wojciech Ziemba 2022-02-10 101 return false;
e5745f34113b75 Wojciech Ziemba 2022-02-10 102
e5745f34113b75 Wojciech Ziemba 2022-02-10 103 pm_data->pm_int_sts = val;
e5745f34113b75 Wojciech Ziemba 2022-02-10 104 pm_data->accel_dev = accel_dev;
e5745f34113b75 Wojciech Ziemba 2022-02-10 105
e5745f34113b75 Wojciech Ziemba 2022-02-10 106 INIT_WORK(&pm_data->pm_irq_work, pm_bh_handler);
e5745f34113b75 Wojciech Ziemba 2022-02-10 107 adf_misc_wq_queue_work(&pm_data->pm_irq_work);
e5745f34113b75 Wojciech Ziemba 2022-02-10 108
e5745f34113b75 Wojciech Ziemba 2022-02-10 109 return true;
e5745f34113b75 Wojciech Ziemba 2022-02-10 110 }
e5745f34113b75 Wojciech Ziemba 2022-02-10 111 EXPORT_SYMBOL_GPL(adf_gen4_handle_pm_interrupt);
e5745f34113b75 Wojciech Ziemba 2022-02-10 112
:::::: The code at line 99 was first introduced by commit
:::::: e5745f34113b758b45d134dec04a7df94dc67131 crypto: qat - enable power management for QAT GEN4
:::::: TO: Wojciech Ziemba <wojciech.ziemba@...el.com>
:::::: CC: Herbert Xu <herbert@...dor.apana.org.au>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists