Re: [PATCH v2] usb: typec: tcpm: Export partner Source Capabilities
by kernel test robot
Hi Kyle,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on usb/usb-testing]
[also build test ERROR on v5.11-rc7 next-20210212]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Kyle-Tso/usb-typec-tcpm-Export-p...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: i386-randconfig-m021-20210214 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/a80af7a2f4fa112b43e7b2b262729a8e1...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Kyle-Tso/usb-typec-tcpm-Export-partner-Source-Capabilities/20210214-113553
git checkout a80af7a2f4fa112b43e7b2b262729a8e1b28c132
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/usb/typec/tcpm/tcpm.c: In function 'tcpm_get_partner_src_caps':
>> drivers/usb/typec/tcpm/tcpm.c:5762:11: error: implicit declaration of function 'tcpm_copy_pdos' [-Werror=implicit-function-declaration]
5762 | nr_pdo = tcpm_copy_pdos(*src_pdo, port->source_caps,
| ^~~~~~~~~~~~~~
At top level:
drivers/usb/typec/tcpm/tcpm.c:2106:39: warning: 'tcpm_altmode_ops' defined but not used [-Wunused-const-variable=]
2106 | static const struct typec_altmode_ops tcpm_altmode_ops = {
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/tcpm_copy_pdos +5762 drivers/usb/typec/tcpm/tcpm.c
5741
5742 /*
5743 * Don't call this function in interrupt context. Caller needs to free the
5744 * memory by calling tcpm_put_partner_src_caps.
5745 */
5746 int tcpm_get_partner_src_caps(struct tcpm_port *port, u32 **src_pdo)
5747 {
5748 unsigned int nr_pdo;
5749
5750 mutex_lock(&port->lock);
5751 if (port->nr_source_caps == 0) {
5752 mutex_unlock(&port->lock);
5753 return -ENODATA;
5754 }
5755
5756 *src_pdo = kcalloc(port->nr_source_caps, sizeof(u32), GFP_KERNEL);
5757 if (!src_pdo) {
5758 mutex_unlock(&port->lock);
5759 return -ENOMEM;
5760 }
5761
> 5762 nr_pdo = tcpm_copy_pdos(*src_pdo, port->source_caps,
5763 port->nr_source_caps);
5764 mutex_unlock(&port->lock);
5765 return nr_pdo;
5766 }
5767 EXPORT_SYMBOL_GPL(tcpm_get_partner_src_caps);
5768
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[chrome-os:chromeos-5.4 79/92] drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c:110:17: warning: unused variable 'PREDIV'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 986b386cc5a4100995a114d3de51d1222bdfba6a
commit: 187393e78ebbcae9368b8abbb3bc753ea9176cbe [79/92] UPSTREAM: phy: mediatek: Move mtk_hdmi_phy driver into drivers/phy/mediatek folder
config: arm64-randconfig-r016-20210214 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 187393e78ebbcae9368b8abbb3bc753ea9176cbe
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c:110:17: warning: unused variable 'PREDIV' [-Wunused-const-variable]
static const u8 PREDIV[3][4] = {
^
>> drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c:116:17: warning: unused variable 'TXDIV' [-Wunused-const-variable]
static const u8 TXDIV[3][4] = {
^
>> drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c:122:17: warning: unused variable 'FBKSEL' [-Wunused-const-variable]
static const u8 FBKSEL[3][4] = {
^
>> drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c:128:17: warning: unused variable 'FBKDIV' [-Wunused-const-variable]
static const u8 FBKDIV[3][4] = {
^
>> drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c:134:17: warning: unused variable 'DIVEN' [-Wunused-const-variable]
static const u8 DIVEN[3][4] = {
^
>> drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c:140:17: warning: unused variable 'HTPLLBP' [-Wunused-const-variable]
static const u8 HTPLLBP[3][4] = {
^
>> drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c:146:17: warning: unused variable 'HTPLLBC' [-Wunused-const-variable]
static const u8 HTPLLBC[3][4] = {
^
>> drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c:152:17: warning: unused variable 'HTPLLBR' [-Wunused-const-variable]
static const u8 HTPLLBR[3][4] = {
^
8 warnings generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_SOC_MT6359
Depends on SOUND && !UML && SND && SND_SOC && MTK_PMIC_WRAP
Selected by
- SND_SOC_MT8192_MT6359_RT1015_RT5682 && SOUND && !UML && SND && SND_SOC && I2C && SND_SOC_MT8192
vim +/PREDIV +110 drivers/phy/mediatek/phy-mtk-hdmi-mt8173.c
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 109
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 @110 static const u8 PREDIV[3][4] = {
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 111 {0x0, 0x0, 0x0, 0x0}, /* 27Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 112 {0x1, 0x1, 0x1, 0x1}, /* 74Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 113 {0x1, 0x1, 0x1, 0x1} /* 148Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 114 };
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 115
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 @116 static const u8 TXDIV[3][4] = {
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 117 {0x3, 0x3, 0x3, 0x2}, /* 27Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 118 {0x2, 0x1, 0x1, 0x1}, /* 74Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 119 {0x1, 0x0, 0x0, 0x0} /* 148Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 120 };
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 121
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 @122 static const u8 FBKSEL[3][4] = {
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 123 {0x1, 0x1, 0x1, 0x1}, /* 27Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 124 {0x1, 0x0, 0x1, 0x1}, /* 74Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 125 {0x1, 0x0, 0x1, 0x1} /* 148Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 126 };
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 127
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 @128 static const u8 FBKDIV[3][4] = {
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 129 {19, 24, 29, 19}, /* 27Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 130 {19, 24, 14, 19}, /* 74Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 131 {19, 24, 14, 19} /* 148Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 132 };
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 133
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 @134 static const u8 DIVEN[3][4] = {
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 135 {0x2, 0x1, 0x1, 0x2}, /* 27Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 136 {0x2, 0x2, 0x2, 0x2}, /* 74Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 137 {0x2, 0x2, 0x2, 0x2} /* 148Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 138 };
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 139
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 @140 static const u8 HTPLLBP[3][4] = {
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 141 {0xc, 0xc, 0x8, 0xc}, /* 27Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 142 {0xc, 0xf, 0xf, 0xc}, /* 74Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 143 {0xc, 0xf, 0xf, 0xc} /* 148Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 144 };
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 145
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 @146 static const u8 HTPLLBC[3][4] = {
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 147 {0x2, 0x3, 0x3, 0x2}, /* 27Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 148 {0x2, 0x3, 0x3, 0x2}, /* 74Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 149 {0x2, 0x3, 0x3, 0x2} /* 148Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 150 };
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 151
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 @152 static const u8 HTPLLBR[3][4] = {
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 153 {0x1, 0x1, 0x0, 0x1}, /* 27Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 154 {0x1, 0x2, 0x2, 0x1}, /* 74Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 155 {0x1, 0x2, 0x2, 0x1} /* 148Mhz */
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 156 };
8f83f26891e125 drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c Jie Qiu 2016-01-04 157
:::::: The code at line 110 was first introduced by commit
:::::: 8f83f26891e12570780dcfc8ae376b655915ff6d drm/mediatek: Add HDMI support
:::::: TO: Jie Qiu <jie.qiu(a)mediatek.com>
:::::: CC: Philipp Zabel <p.zabel(a)pengutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[freescale-fslc:5.4-2.1.x-imx 8723/16398] drivers/irqchip/irq-imx-irqsteer.c:399:21: error: 'imx_irqsteer_runtime_suspend' undeclared here (not in a function); did you mean
by kernel test robot
tree: https://github.com/Freescale/linux-fslc 5.4-2.1.x-imx
head: bef3e06d83685406b847623947543314c7318b07
commit: 1b98a5088798abe3786a3c35f1f66115aef37883 [8723/16398] MLK-17290-01 irqchip: imx-irqsteer: add runtime pm support
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Freescale/linux-fslc/commit/1b98a5088798abe3786a3c35f1...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.1.x-imx
git checkout 1b98a5088798abe3786a3c35f1f66115aef37883
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the freescale-fslc/5.4-2.1.x-imx HEAD bef3e06d83685406b847623947543314c7318b07 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
drivers/irqchip/irq-imx-irqsteer.c: In function 'imx_irqsteer_chans_enable':
drivers/irqchip/irq-imx-irqsteer.c:204:27: error: 'irqsteer_data' undeclared (first use in this function)
204 | ret = clk_prepare_enable(irqsteer_data->ipg_clk);
| ^~~~~~~~~~~~~
drivers/irqchip/irq-imx-irqsteer.c:204:27: note: each undeclared identifier is reported only once for each function it appears in
In file included from include/linux/device.h:23,
from include/linux/of_platform.h:9,
from drivers/irqchip/irq-imx-irqsteer.c:14:
drivers/irqchip/irq-imx-irqsteer.c: At top level:
>> drivers/irqchip/irq-imx-irqsteer.c:399:21: error: 'imx_irqsteer_runtime_suspend' undeclared here (not in a function); did you mean 'pm_generic_runtime_suspend'?
399 | SET_RUNTIME_PM_OPS(imx_irqsteer_runtime_suspend,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/pm.h:342:21: note: in definition of macro 'SET_RUNTIME_PM_OPS'
342 | .runtime_suspend = suspend_fn, \
| ^~~~~~~~~~
>> drivers/irqchip/irq-imx-irqsteer.c:400:7: error: 'imx_irqsteer_runtime_resume' undeclared here (not in a function)
400 | imx_irqsteer_runtime_resume, NULL)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/pm.h:343:20: note: in definition of macro 'SET_RUNTIME_PM_OPS'
343 | .runtime_resume = resume_fn, \
| ^~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for GPIO_MXC
Depends on GPIOLIB && HAS_IOMEM && ARCH_MXC
Selected by
- GPIO_MXC_PAD_WAKEUP && GPIOLIB && HAS_IOMEM && IMX_SCU
WARNING: unmet direct dependencies detected for PCIE_MOBIVEIL_HOST
Depends on PCI && PCI_MSI_IRQ_DOMAIN
Selected by
- PCIE_MOBIVEIL_PLAT && PCI && (ARCH_ZYNQMP || COMPILE_TEST && OF
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86
vim +399 drivers/irqchip/irq-imx-irqsteer.c
395
396 static const struct dev_pm_ops imx_irqsteer_pm_ops = {
397 SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
398 pm_runtime_force_resume)
> 399 SET_RUNTIME_PM_OPS(imx_irqsteer_runtime_suspend,
> 400 imx_irqsteer_runtime_resume, NULL)
401 };
402
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[arnd-playground:nvme-platform 26/35] lib/devres.c:47:10: error: implicit declaration of function 'ioremap_np'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git nvme-platform
head: 7dc06cf18b266aa30ab60ffd33ac7cfce46bf06d
commit: 937351e37861082319fc07f4dca659d833da5a63 [26/35] lib: devres: Introduce devm_ioremap_np()
config: parisc-randconfig-r004-20210214 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground nvme-platform
git checkout 937351e37861082319fc07f4dca659d833da5a63
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
lib/devres.c: In function '__devm_ioremap':
>> lib/devres.c:47:10: error: implicit declaration of function 'ioremap_np'; did you mean 'ioremap_uc'? [-Werror=implicit-function-declaration]
47 | addr = ioremap_np(offset, size);
| ^~~~~~~~~~
| ioremap_uc
lib/devres.c:47:8: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
47 | addr = ioremap_np(offset, size);
| ^
cc1: some warnings being treated as errors
vim +47 lib/devres.c
25
26 static void __iomem *__devm_ioremap(struct device *dev, resource_size_t offset,
27 resource_size_t size,
28 enum devm_ioremap_type type)
29 {
30 void __iomem **ptr, *addr = NULL;
31
32 ptr = devres_alloc(devm_ioremap_release, sizeof(*ptr), GFP_KERNEL);
33 if (!ptr)
34 return NULL;
35
36 switch (type) {
37 case DEVM_IOREMAP:
38 addr = ioremap(offset, size);
39 break;
40 case DEVM_IOREMAP_UC:
41 addr = ioremap_uc(offset, size);
42 break;
43 case DEVM_IOREMAP_WC:
44 addr = ioremap_wc(offset, size);
45 break;
46 case DEVM_IOREMAP_NP:
> 47 addr = ioremap_np(offset, size);
48 break;
49 }
50
51 if (addr) {
52 *ptr = addr;
53 devres_add(dev, ptr);
54 } else
55 devres_free(ptr);
56
57 return addr;
58 }
59
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[intel-linux-intel-lts:5.10/yocto 1743/4757] drivers/dma-buf/heaps/cma_heap.c:185:10: error: implicit declaration of function 'vmap'; did you mean
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.10/yocto
head: d59e5c7205e70ede134856033e66c7242e6cbcae
commit: f853204a169c95e2c5cb469c4528aeec6b1b59a2 [1743/4757] dma-buf: heaps: Move heap-helper logic into the cma_heap implementation
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel/linux-intel-lts/commit/f853204a169c95e2c5cb469c4...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.10/yocto
git checkout f853204a169c95e2c5cb469c4528aeec6b1b59a2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/dma-buf/heaps/cma_heap.c: In function 'cma_heap_do_vmap':
>> drivers/dma-buf/heaps/cma_heap.c:185:10: error: implicit declaration of function 'vmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration]
185 | vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL);
| ^~~~
| kmap
>> drivers/dma-buf/heaps/cma_heap.c:185:49: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MTE'?
185 | vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL);
| ^~~~~~
| VM_MTE
drivers/dma-buf/heaps/cma_heap.c:185:49: note: each undeclared identifier is reported only once for each function it appears in
drivers/dma-buf/heaps/cma_heap.c: In function 'cma_heap_vunmap':
>> drivers/dma-buf/heaps/cma_heap.c:225:3: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'? [-Werror=implicit-function-declaration]
225 | vunmap(buffer->vaddr);
| ^~~~~~
| kunmap
cc1: some warnings being treated as errors
vim +185 drivers/dma-buf/heaps/cma_heap.c
180
181 static void *cma_heap_do_vmap(struct cma_heap_buffer *buffer)
182 {
183 void *vaddr;
184
> 185 vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL);
186 if (!vaddr)
187 return ERR_PTR(-ENOMEM);
188
189 return vaddr;
190 }
191
192 static int cma_heap_vmap(struct dma_buf *dmabuf, struct dma_buf_map *map)
193 {
194 struct cma_heap_buffer *buffer = dmabuf->priv;
195 void *vaddr;
196 int ret = 0;
197
198 mutex_lock(&buffer->lock);
199 if (buffer->vmap_cnt) {
200 buffer->vmap_cnt++;
201 dma_buf_map_set_vaddr(map, buffer->vaddr);
202 goto out;
203 }
204
205 vaddr = cma_heap_do_vmap(buffer);
206 if (IS_ERR(vaddr)) {
207 ret = PTR_ERR(vaddr);
208 goto out;
209 }
210 buffer->vaddr = vaddr;
211 buffer->vmap_cnt++;
212 dma_buf_map_set_vaddr(map, buffer->vaddr);
213 out:
214 mutex_unlock(&buffer->lock);
215
216 return ret;
217 }
218
219 static void cma_heap_vunmap(struct dma_buf *dmabuf, struct dma_buf_map *map)
220 {
221 struct cma_heap_buffer *buffer = dmabuf->priv;
222
223 mutex_lock(&buffer->lock);
224 if (!--buffer->vmap_cnt) {
> 225 vunmap(buffer->vaddr);
226 buffer->vaddr = NULL;
227 }
228 mutex_unlock(&buffer->lock);
229 dma_buf_map_clear(map);
230 }
231
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[freescale-fslc:5.4-2.1.x-imx 8723/16398] drivers/irqchip/irq-imx-irqsteer.c:204:27: error: 'irqsteer_data' undeclared
by kernel test robot
tree: https://github.com/Freescale/linux-fslc 5.4-2.1.x-imx
head: bef3e06d83685406b847623947543314c7318b07
commit: 1b98a5088798abe3786a3c35f1f66115aef37883 [8723/16398] MLK-17290-01 irqchip: imx-irqsteer: add runtime pm support
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Freescale/linux-fslc/commit/1b98a5088798abe3786a3c35f1...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.1.x-imx
git checkout 1b98a5088798abe3786a3c35f1f66115aef37883
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the freescale-fslc/5.4-2.1.x-imx HEAD bef3e06d83685406b847623947543314c7318b07 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
drivers/irqchip/irq-imx-irqsteer.c: In function 'imx_irqsteer_chans_enable':
>> drivers/irqchip/irq-imx-irqsteer.c:204:27: error: 'irqsteer_data' undeclared (first use in this function)
204 | ret = clk_prepare_enable(irqsteer_data->ipg_clk);
| ^~~~~~~~~~~~~
drivers/irqchip/irq-imx-irqsteer.c:204:27: note: each undeclared identifier is reported only once for each function it appears in
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PCIE_MOBIVEIL_HOST
Depends on PCI && PCI_MSI_IRQ_DOMAIN
Selected by
- PCIE_MOBIVEIL_PLAT && PCI && (ARCH_ZYNQMP || COMPILE_TEST && OF
vim +/irqsteer_data +204 drivers/irqchip/irq-imx-irqsteer.c
193
194 #ifdef CONFIG_PM_SLEEP
195 static int imx_irqsteer_chans_enable(struct irqsteer_data *data)
196 {
197 return 0;
198 }
199 #else
200 static int imx_irqsteer_chans_enable(struct irqsteer_data *data)
201 {
202 int ret;
203
> 204 ret = clk_prepare_enable(irqsteer_data->ipg_clk);
205 if (ret) {
206 dev_err(data->dev, "failed to enable ipg clk: %d\n", ret);
207 return ret;
208 }
209
210 /* steer all IRQs into configured channel */
211 writel_relaxed(BIT(data->channel), data->regs + CHANCTRL);
212
213 /* read back CHANCTRL register cannot reflact on HW register
214 * real value due to the HW action, so add one flag here.
215 */
216 data->inited = true;
217 return 0;
218 }
219 #endif
220
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[freescale-fslc:pr/256 8790/16397] drivers/remoteproc/remoteproc_core.c:85:59: error: macro "memcpy" passed 5 arguments, but takes just 3
by kernel test robot
Hi Peng,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/256
head: 833dfde20a84e72abea15e51e24b5027091c864c
commit: ad144fec7a113f7abafcf29e24aa841782d40935 [8790/16397] MLK-23754-19 remoteproc: add rproc_memcpy
config: i386-randconfig-p001-20210213 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Freescale/linux-fslc/commit/ad144fec7a113f7abafcf29e24...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/256
git checkout ad144fec7a113f7abafcf29e24aa841782d40935
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/remoteproc/remoteproc_core.c: In function 'rproc_memcpy':
>> drivers/remoteproc/remoteproc_core.c:85:59: error: macro "memcpy" passed 5 arguments, but takes just 3
85 | return rproc->ops->memcpy(rproc, dest, src, count, flags);
| ^
In file included from arch/x86/include/asm/string.h:3,
from include/linux/string.h:20,
from arch/x86/include/asm/page_32.h:35,
from arch/x86/include/asm/page.h:14,
from arch/x86/include/asm/thread_info.h:12,
from include/linux/thread_info.h:38,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/module.h:10,
from drivers/remoteproc/remoteproc_core.c:20:
arch/x86/include/asm/string_32.h:182: note: macro "memcpy" defined here
182 | #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
|
drivers/remoteproc/remoteproc_core.c: In function 'rproc_find_carveout_by_name':
drivers/remoteproc/remoteproc_core.c:271:2: warning: function 'rproc_find_carveout_by_name' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
271 | vsnprintf(_name, sizeof(_name), name, args);
| ^~~~~~~~~
drivers/remoteproc/remoteproc_core.c: In function 'rproc_mem_entry_init':
drivers/remoteproc/remoteproc_core.c:1000:2: warning: function 'rproc_mem_entry_init' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
1000 | vsnprintf(mem->name, sizeof(mem->name), name, args);
| ^~~~~~~~~
drivers/remoteproc/remoteproc_core.c: In function 'rproc_of_resm_mem_entry_init':
drivers/remoteproc/remoteproc_core.c:1036:2: warning: function 'rproc_of_resm_mem_entry_init' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
1036 | vsnprintf(mem->name, sizeof(mem->name), name, args);
| ^~~~~~~~~
vim +/memcpy +85 drivers/remoteproc/remoteproc_core.c
73
74 /*
75 * rproc_memcpy() - memcpy verison for remoteproc usage
76 * @flags:
77 * - 0 means to DA
78 * - 1 means from DA
79 *
80 */
81 void *rproc_memcpy(struct rproc *rproc, void *dest,
82 const void *src, size_t count, int flags)
83 {
84 if (rproc->ops->memcpy)
> 85 return rproc->ops->memcpy(rproc, dest, src, count, flags);
86
87 return memcpy(dest, src, count);
88 }
89 EXPORT_SYMBOL(rproc_memcpy);
90
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[arnd-playground:nvme-platform 25/35] drivers/of/address.c:903:10: error: implicit declaration of function 'ioremap_np'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git nvme-platform
head: 7dc06cf18b266aa30ab60ffd33ac7cfce46bf06d
commit: aacd239d9ab8edf623e68063b6a96218a1c029f9 [25/35] of/address: Add infrastructure to declare MMIO as non-posted
config: parisc-randconfig-r004-20210214 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground nvme-platform
git checkout aacd239d9ab8edf623e68063b6a96218a1c029f9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
drivers/of/address.c: In function 'of_iomap':
>> drivers/of/address.c:903:10: error: implicit declaration of function 'ioremap_np'; did you mean 'ioremap_uc'? [-Werror=implicit-function-declaration]
903 | return ioremap_np(res.start, resource_size(&res));
| ^~~~~~~~~~
| ioremap_uc
>> drivers/of/address.c:903:10: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
903 | return ioremap_np(res.start, resource_size(&res));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/of/address.c: In function 'of_io_request_and_map':
>> drivers/of/address.c:938:7: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
938 | mem = ioremap_np(res.start, resource_size(&res));
| ^
cc1: some warnings being treated as errors
vim +903 drivers/of/address.c
887
888 /**
889 * of_iomap - Maps the memory mapped IO for a given device_node
890 * @np: the device whose io range will be mapped
891 * @index: index of the io range
892 *
893 * Returns a pointer to the mapped memory
894 */
895 void __iomem *of_iomap(struct device_node *np, int index)
896 {
897 struct resource res;
898
899 if (of_address_to_resource(np, index, &res))
900 return NULL;
901
902 if (res.flags & IORESOURCE_MEM_NONPOSTED)
> 903 return ioremap_np(res.start, resource_size(&res));
904 else
905 return ioremap(res.start, resource_size(&res));
906 }
907 EXPORT_SYMBOL(of_iomap);
908
909 /*
910 * of_io_request_and_map - Requests a resource and maps the memory mapped IO
911 * for a given device_node
912 * @device: the device whose io range will be mapped
913 * @index: index of the io range
914 * @name: name "override" for the memory region request or NULL
915 *
916 * Returns a pointer to the requested and mapped memory or an ERR_PTR() encoded
917 * error code on failure. Usage example:
918 *
919 * base = of_io_request_and_map(node, 0, "foo");
920 * if (IS_ERR(base))
921 * return PTR_ERR(base);
922 */
923 void __iomem *of_io_request_and_map(struct device_node *np, int index,
924 const char *name)
925 {
926 struct resource res;
927 void __iomem *mem;
928
929 if (of_address_to_resource(np, index, &res))
930 return IOMEM_ERR_PTR(-EINVAL);
931
932 if (!name)
933 name = res.name;
934 if (!request_mem_region(res.start, resource_size(&res), name))
935 return IOMEM_ERR_PTR(-EBUSY);
936
937 if (res.flags & IORESOURCE_MEM_NONPOSTED)
> 938 mem = ioremap_np(res.start, resource_size(&res));
939 else
940 mem = ioremap(res.start, resource_size(&res));
941
942 if (!mem) {
943 release_mem_region(res.start, resource_size(&res));
944 return IOMEM_ERR_PTR(-ENOMEM);
945 }
946
947 return mem;
948 }
949 EXPORT_SYMBOL(of_io_request_and_map);
950
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months