[tnguy-next-queue:dev-queue 56/87] drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:180:35: error: 'struct pci_dev' has no member named 'physfn'; did you mean 'is_physfn'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
head: 8dc0a23f11b8c1f96d92576e74e11cc0056b4784
commit: 66544c2946fd655590b501fc10bf16c61abcc524 [56/87] i40e: Add restoration of VF MSI-X state during PCI reset
config: i386-randconfig-a016-20210611 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git/comm...
git remote add tnguy-next-queue https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git
git fetch --no-tags tnguy-next-queue dev-queue
git checkout 66544c2946fd655590b501fc10bf16c61abcc524
# 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/net/ethernet/intel/i40e/i40e_virtchnl_pf.c: In function 'i40e_restore_all_vfs_msi_state':
>> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:180:35: error: 'struct pci_dev' has no member named 'physfn'; did you mean 'is_physfn'?
180 | if (vfdev->is_virtfn && vfdev->physfn == pdev)
| ^~~~~~
| is_physfn
vim +180 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
154
155 /**
156 * i40e_restore_all_vfs_msi_state - restore VF MSI state after PF FLR
157 * @pdev: pointer to a pci_dev structure
158 *
159 * Called when recovering from a PF FLR to restore interrupt capability to
160 * the VFs.
161 */
162 void i40e_restore_all_vfs_msi_state(struct pci_dev *pdev)
163 {
164 struct pci_dev *vfdev;
165 u16 vf_id;
166 int pos;
167
168 /* Continue only if this is a PF */
169 if (!pdev->is_physfn)
170 return;
171
172 if (!pci_num_vf(pdev))
173 return;
174
175 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_SRIOV);
176 if (pos) {
177 pci_read_config_word(pdev, pos + PCI_SRIOV_VF_DID, &vf_id);
178 vfdev = pci_get_device(pdev->vendor, vf_id, NULL);
179 while (vfdev) {
> 180 if (vfdev->is_virtfn && vfdev->physfn == pdev)
181 pci_restore_msi_state(vfdev);
182 vfdev = pci_get_device(pdev->vendor, vf_id, vfdev);
183 }
184 }
185 }
186
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH next v2 1/2] dump_stack: move cpu lock to printk.c
by kernel test robot
Hi John,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20210607]
url: https://github.com/0day-ci/linux/commits/John-Ogness/introduce-printk-cpu...
base: 7f09e895a7f3e0af63bf9ec6c7c22893ec7e6c8e
config: mips-randconfig-r036-20210607 (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/0day-ci/linux/commit/136bcc2980e636b2ae156ca63fbe95c71...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review John-Ogness/introduce-printk-cpu-lock/20210608-040454
git checkout 136bcc2980e636b2ae156ca63fbe95c713e44c1b
# 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 warnings (new ones prefixed by >>):
lib/dump_stack.c: In function 'dump_stack_lvl':
>> lib/dump_stack.c:107:2: warning: 'lock_flag' is used uninitialized in this function [-Wuninitialized]
107 | printk_cpu_unlock_irqrestore(lock_flag, irq_flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/lock_flag +107 lib/dump_stack.c
90
91 /**
92 * dump_stack - dump the current task information and its stack trace
93 *
94 * Architectures can override this implementation by implementing its own.
95 */
96 asmlinkage __visible void dump_stack_lvl(const char *log_lvl)
97 {
98 unsigned long irq_flags;
99 bool lock_flag;
100
101 /*
102 * Permit this cpu to perform nested stack dumps while serialising
103 * against other CPUs
104 */
105 printk_cpu_lock_irqsave(&lock_flag, &irq_flags);
106 __dump_stack(log_lvl);
> 107 printk_cpu_unlock_irqrestore(lock_flag, irq_flags);
108 }
109 EXPORT_SYMBOL(dump_stack_lvl);
110
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[freescale-fslc:5.4-2.3.x-imx 14893/19343] drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1094:19: error: implicit declaration of function 'pci_iomap'; did you mean 'pcim_iomap'?
by kernel test robot
Hi Fugang,
First bad commit (maybe != root cause):
tree: https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: ef8eb7d4787bee4be718a83b6c73fb8cc7e8f158
commit: f186a4e65f54a28973c743f8c007b18c1ce95be6 [14893/19343] MLK-24962 net: wireless: nxp: mxm_wifiex: upgrade to mxm5x16203 release
config: sh-allmodconfig (attached as .config)
compiler: sh4-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/f186a4e65f54a28973c743f8c0...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
git checkout f186a4e65f54a28973c743f8c007b18c1ce95be6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
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 >>):
In file included from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:31:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.h:133:20: error: array type has incomplete element type 'struct msix_entry'
133 | struct msix_entry msix_entries[PCIE_NUM_MSIX_VECTORS];
| ^~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:394:5: warning: no previous prototype for 'woal_pcie_probe' [-Wmissing-prototypes]
394 | int woal_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id)
| ^~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c: In function 'woal_pcie_probe':
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:441:6: error: implicit declaration of function 'pci_is_enabled'; did you mean 'pci_acs_enabled'? [-Werror=implicit-function-declaration]
441 | if (pci_is_enabled(pdev))
| ^~~~~~~~~~~~~~
| pci_acs_enabled
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c: At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:896:13: warning: no previous prototype for 'woal_pcie_write_data_sync' [-Wmissing-prototypes]
896 | mlan_status woal_pcie_write_data_sync(moal_handle *handle, mlan_buffer *pmbuf,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:912:13: warning: no previous prototype for 'woal_pcie_read_data_sync' [-Wmissing-prototypes]
912 | mlan_status woal_pcie_read_data_sync(moal_handle *handle, mlan_buffer *pmbuf,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c: In function 'woal_pcie_init':
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1089:8: error: implicit declaration of function 'pci_request_region'; did you mean 'pci_request_regions'? [-Werror=implicit-function-declaration]
1089 | ret = pci_request_region(pdev, 0, DRV_NAME);
| ^~~~~~~~~~~~~~~~~~
| pci_request_regions
>> drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1094:19: error: implicit declaration of function 'pci_iomap'; did you mean 'pcim_iomap'? [-Werror=implicit-function-declaration]
1094 | card->pci_mmap = pci_iomap(pdev, 0, 0);
| ^~~~~~~~~
| pcim_iomap
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1094:17: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
1094 | card->pci_mmap = pci_iomap(pdev, 0, 0);
| ^
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1104:18: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
1104 | card->pci_mmap1 = pci_iomap(pdev, 2, 0);
| ^
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1118:2: error: implicit declaration of function 'pci_release_region'; did you mean 'pci_release_regions'? [-Werror=implicit-function-declaration]
1118 | pci_release_region(pdev, 2);
| ^~~~~~~~~~~~~~~~~~
| pci_release_regions
>> drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1120:2: error: implicit declaration of function 'pci_iounmap'; did you mean 'pcim_iounmap'? [-Werror=implicit-function-declaration]
1120 | pci_iounmap(pdev, card->pci_mmap);
| ^~~~~~~~~~~
| pcim_iounmap
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c: In function 'woal_pcie_register_dev':
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1174:9: error: implicit declaration of function 'pci_enable_msix_exact' [-Werror=implicit-function-declaration]
1174 | ret = pci_enable_msix_exact(pdev, card->msix_entries, nvec);
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1197:6: error: implicit declaration of function 'pci_disable_msix'; did you mean 'pci_disable_sriov'? [-Werror=implicit-function-declaration]
1197 | pci_disable_msix(pdev);
| ^~~~~~~~~~~~~~~~
| pci_disable_sriov
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1209:9: error: implicit declaration of function 'pci_enable_msi'; did you mean 'pci_enable_ats'? [-Werror=implicit-function-declaration]
1209 | ret = pci_enable_msi(pdev);
| ^~~~~~~~~~~~~~
| pci_enable_ats
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1216:5: error: implicit declaration of function 'pci_disable_msi'; did you mean 'pci_disable_ats'? [-Werror=implicit-function-declaration]
1216 | pci_disable_msi(pdev);
| ^~~~~~~~~~~~~~~
| pci_disable_ats
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c: At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1418:5: warning: no previous prototype for 'woal_pcie_dump_reg_info' [-Wmissing-prototypes]
1418 | int woal_pcie_dump_reg_info(moal_handle *phandle, t_u8 *buffer)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1752:13: warning: no previous prototype for 'woal_read_reg_eight_bit' [-Wmissing-prototypes]
1752 | mlan_status woal_read_reg_eight_bit(moal_handle *handle, t_u32 reg, t_u8 *data)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:1767:13: warning: no previous prototype for 'woal_pcie_rdwr_firmware' [-Wmissing-prototypes]
1767 | rdwr_status woal_pcie_rdwr_firmware(moal_handle *phandle, t_u8 doneflag)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:2013:6: warning: no previous prototype for 'woal_pcie_dump_fw_info_v2' [-Wmissing-prototypes]
2013 | void woal_pcie_dump_fw_info_v2(moal_handle *phandle)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:2192:6: warning: no previous prototype for 'woal_pcie_dump_fw_info' [-Wmissing-prototypes]
2192 | void woal_pcie_dump_fw_info(moal_handle *phandle)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.h:130,
from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.h:62,
from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:31:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_priv.h:282:34: warning: 'woal_private_args' defined but not used [-Wunused-const-variable=]
282 | static const struct iw_priv_args woal_private_args[] = {
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +1094 drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c
688b67b2c7220b Fugang Duan 2020-04-19 1088
688b67b2c7220b Fugang Duan 2020-04-19 1089 ret = pci_request_region(pdev, 0, DRV_NAME);
688b67b2c7220b Fugang Duan 2020-04-19 1090 if (ret) {
688b67b2c7220b Fugang Duan 2020-04-19 1091 PRINTM(MERROR, "req_reg(0) error\n");
688b67b2c7220b Fugang Duan 2020-04-19 1092 goto err_req_region0;
688b67b2c7220b Fugang Duan 2020-04-19 1093 }
688b67b2c7220b Fugang Duan 2020-04-19 @1094 card->pci_mmap = pci_iomap(pdev, 0, 0);
688b67b2c7220b Fugang Duan 2020-04-19 1095 if (!card->pci_mmap) {
688b67b2c7220b Fugang Duan 2020-04-19 1096 PRINTM(MERROR, "iomap(0) error\n");
688b67b2c7220b Fugang Duan 2020-04-19 1097 goto err_iomap0;
688b67b2c7220b Fugang Duan 2020-04-19 1098 }
688b67b2c7220b Fugang Duan 2020-04-19 1099 ret = pci_request_region(pdev, 2, DRV_NAME);
688b67b2c7220b Fugang Duan 2020-04-19 1100 if (ret) {
688b67b2c7220b Fugang Duan 2020-04-19 1101 PRINTM(MERROR, "req_reg(2) error\n");
688b67b2c7220b Fugang Duan 2020-04-19 1102 goto err_req_region2;
688b67b2c7220b Fugang Duan 2020-04-19 1103 }
688b67b2c7220b Fugang Duan 2020-04-19 1104 card->pci_mmap1 = pci_iomap(pdev, 2, 0);
688b67b2c7220b Fugang Duan 2020-04-19 1105 if (!card->pci_mmap1) {
688b67b2c7220b Fugang Duan 2020-04-19 1106 PRINTM(MERROR, "iomap(2) error\n");
688b67b2c7220b Fugang Duan 2020-04-19 1107 goto err_iomap2;
688b67b2c7220b Fugang Duan 2020-04-19 1108 }
688b67b2c7220b Fugang Duan 2020-04-19 1109
6b4a83a75fc1dc Fugang Duan 2020-05-28 1110 PRINTM(MINFO,
6b4a83a75fc1dc Fugang Duan 2020-05-28 1111 "PCI memory map Virt0: %p PCI memory map Virt2: "
6b4a83a75fc1dc Fugang Duan 2020-05-28 1112 "%p\n",
6b4a83a75fc1dc Fugang Duan 2020-05-28 1113 card->pci_mmap, card->pci_mmap1);
688b67b2c7220b Fugang Duan 2020-04-19 1114
688b67b2c7220b Fugang Duan 2020-04-19 1115 return MLAN_STATUS_SUCCESS;
688b67b2c7220b Fugang Duan 2020-04-19 1116
688b67b2c7220b Fugang Duan 2020-04-19 1117 err_iomap2:
688b67b2c7220b Fugang Duan 2020-04-19 1118 pci_release_region(pdev, 2);
688b67b2c7220b Fugang Duan 2020-04-19 1119 err_req_region2:
688b67b2c7220b Fugang Duan 2020-04-19 @1120 pci_iounmap(pdev, card->pci_mmap);
688b67b2c7220b Fugang Duan 2020-04-19 1121 err_iomap0:
688b67b2c7220b Fugang Duan 2020-04-19 1122 pci_release_region(pdev, 0);
688b67b2c7220b Fugang Duan 2020-04-19 1123 err_req_region0:
688b67b2c7220b Fugang Duan 2020-04-19 1124 #if 0
688b67b2c7220b Fugang Duan 2020-04-19 1125 err_set_dma_mask:
688b67b2c7220b Fugang Duan 2020-04-19 1126 #endif
688b67b2c7220b Fugang Duan 2020-04-19 1127
:::::: The code at line 1094 was first introduced by commit
:::::: 688b67b2c7220b01521ffe560da7eee33042c7bd MLK-23806-01 net: wireless: nxp: mxm_wifiex: add initial MxM wifi driver
:::::: TO: Fugang Duan <fugang.duan(a)nxp.com>
:::::: CC: Fugang Duan <fugang.duan(a)nxp.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[freescale-fslc:5.4-2.3.x-imx 10205/19343] drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c:214:14: error: 'struct drm_bridge' has no member named 'of_node'
by kernel test robot
Hi Robert,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: ef8eb7d4787bee4be718a83b6c73fb8cc7e8f158
commit: c40c90f2d3265167edd6384dd8691dc88f78308d [10205/19343] LF-811-1: drm/bridge: Add driver for legacy Freescale Seiko 43WVFIG adapter
config: m68k-randconfig-r002-20210611 (attached as .config)
compiler: m68k-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/c40c90f2d3265167edd6384dd8...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
git checkout c40c90f2d3265167edd6384dd8691dc88f78308d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
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 >>):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/agp_backend.h:33,
from include/drm/drmP.h:35,
from drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c:17:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from arch/m68k/include/asm/irqflags.h:6,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/mutex.h:18,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/cdev.h:5,
from include/drm/drmP.h:36,
from drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c:17:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/asm-generic/bug.h:139:27: note: in definition of macro 'WARN_ON_ONCE'
139 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro 'virt_addr_valid'
170 | #define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn))
| ^~~~~~~~~~~~~~~
include/linux/dma-mapping.h:355:19: note: in expansion of macro 'pfn_valid'
355 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c: In function 'seiko_adapter_probe':
>> drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c:214:14: error: 'struct drm_bridge' has no member named 'of_node'
214 | adap->bridge.of_node = dev->of_node;
| ^
In file included from drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c:20:
At top level:
include/drm/drm_of.h:64:12: warning: 'drm_of_component_probe_with_match' defined but not used [-Wunused-function]
64 | static int drm_of_component_probe_with_match(struct device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +214 drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c
166
167 static int seiko_adapter_probe(struct platform_device *pdev)
168 {
169 struct device *dev = &pdev->dev;
170 struct seiko_adapter *adap;
171 struct device_node *remote;
172 u32 bus_mode;
173 int port;
174
175 adap = devm_kzalloc(dev, sizeof(*adap), GFP_KERNEL);
176 if (!adap)
177 return -ENOMEM;
178
179 of_property_read_u32(dev->of_node, "bus_mode", &bus_mode);
180 if (bus_mode != 18 && bus_mode != 24) {
181 dev_err(dev, "Invalid bus_mode: %d\n", bus_mode);
182 return -EINVAL;
183 }
184
185 switch (bus_mode) {
186 case 18:
187 adap->bpc = 6;
188 adap->bus_format = MEDIA_BUS_FMT_RGB666_1X18;
189 break;
190 case 24:
191 adap->bpc = 8;
192 adap->bus_format = MEDIA_BUS_FMT_RGB888_1X24;
193 break;
194 }
195
196 for (port = 0; port < 2; port++) {
197 remote = of_graph_get_remote_node(dev->of_node, port, -1);
198 if (!remote) {
199 dev_err(dev, "No remote for port %d\n", port);
200 return -ENODEV;
201 }
202 adap->panel = of_drm_find_panel(remote);
203 if (!IS_ERR(adap->panel))
204 break;
205 }
206 if (IS_ERR(adap->panel)) {
207 dev_err(dev, "No panel found: %ld\n", PTR_ERR(adap->panel));
208 return PTR_ERR(adap->panel);
209 }
210
211 adap->dev = dev;
212 adap->bridge.driver_private = adap;
213 adap->bridge.funcs = &seiko_adapter_bridge_funcs;
> 214 adap->bridge.of_node = dev->of_node;
215
216 drm_bridge_add(&adap->bridge);
217
218 return 0;
219 }
220
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[freescale-fslc:pr/368 15428/19342] include/linux/string.h:399:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter
by kernel test robot
Hi Adrian,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/368
head: 276aedc8f14ef8063b7cdda81d7de372500d1fce
commit: a452c44357d9c68c27c39327e50b41e4b6cffe8d [15428/19342] MLK-25015: sound: soc: codecs: pcm512x: set input sclk
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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/a452c44357d9c68c27c39327e5...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/368
git checkout a452c44357d9c68c27c39327e50b41e4b6cffe8d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 errors (new ones prefixed by >>):
In file included from sound/soc/fsl/imx-pcm512x.c:21:
sound/soc/fsl/imx-pcm512x.c:357:23: warning: initialized field overwritten [-Woverride-init]
357 | SND_SOC_DAILINK_REG(hifi),
| ^~~~
include/sound/soc.h:919:13: note: in definition of macro 'SND_SOC_DAILINK_REG3'
919 | .codecs = codec, \
| ^~~~~
include/sound/soc.h:924:53: note: in expansion of macro 'SND_SOC_DAILINK_REG1'
924 | #define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func
| ^~~~
sound/soc/fsl/imx-pcm512x.c:357:3: note: in expansion of macro 'SND_SOC_DAILINK_REG'
357 | SND_SOC_DAILINK_REG(hifi),
| ^~~~~~~~~~~~~~~~~~~
sound/soc/fsl/imx-pcm512x.c:357:23: note: (near initialization for 'imx_pcm512x_dai[0].codecs')
357 | SND_SOC_DAILINK_REG(hifi),
| ^~~~
include/sound/soc.h:919:13: note: in definition of macro 'SND_SOC_DAILINK_REG3'
919 | .codecs = codec, \
| ^~~~~
include/sound/soc.h:924:53: note: in expansion of macro 'SND_SOC_DAILINK_REG1'
924 | #define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func
| ^~~~
sound/soc/fsl/imx-pcm512x.c:357:3: note: in expansion of macro 'SND_SOC_DAILINK_REG'
357 | SND_SOC_DAILINK_REG(hifi),
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/list.h:9,
from include/linux/module.h:9,
from sound/soc/fsl/imx-pcm512x.c:13:
include/linux/kernel.h:47:25: warning: initialized field overwritten [-Woverride-init]
47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^
include/sound/soc.h:920:16: note: in expansion of macro 'ARRAY_SIZE'
920 | .num_codecs = ARRAY_SIZE(codec), \
| ^~~~~~~~~~
include/sound/soc.h:914:37: note: in expansion of macro 'SND_SOC_DAILINK_REG3'
914 | #define SND_SOC_DAILINK_REG1(name) SND_SOC_DAILINK_REG3(name##_cpus, name##_codecs, name##_platforms)
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:924:53: note: in expansion of macro 'SND_SOC_DAILINK_REG1'
924 | #define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func
| ^~~~
include/sound/soc.h:926:2: note: in expansion of macro 'SND_SOC_DAILINK_REGx'
926 | SND_SOC_DAILINK_REGx(__VA_ARGS__, \
| ^~~~~~~~~~~~~~~~~~~~
sound/soc/fsl/imx-pcm512x.c:357:3: note: in expansion of macro 'SND_SOC_DAILINK_REG'
357 | SND_SOC_DAILINK_REG(hifi),
| ^~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:47:25: note: (near initialization for 'imx_pcm512x_dai[0].num_codecs')
47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^
include/sound/soc.h:920:16: note: in expansion of macro 'ARRAY_SIZE'
920 | .num_codecs = ARRAY_SIZE(codec), \
| ^~~~~~~~~~
include/sound/soc.h:914:37: note: in expansion of macro 'SND_SOC_DAILINK_REG3'
914 | #define SND_SOC_DAILINK_REG1(name) SND_SOC_DAILINK_REG3(name##_cpus, name##_codecs, name##_platforms)
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:924:53: note: in expansion of macro 'SND_SOC_DAILINK_REG1'
924 | #define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func
| ^~~~
include/sound/soc.h:926:2: note: in expansion of macro 'SND_SOC_DAILINK_REGx'
926 | SND_SOC_DAILINK_REGx(__VA_ARGS__, \
| ^~~~~~~~~~~~~~~~~~~~
sound/soc/fsl/imx-pcm512x.c:357:3: note: in expansion of macro 'SND_SOC_DAILINK_REG'
357 | SND_SOC_DAILINK_REG(hifi),
| ^~~~~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/processor.h:28,
from include/asm-generic/qrwlock.h:14,
from ./arch/arm64/include/generated/asm/qrwlock.h:1,
from arch/arm64/include/asm/spinlock.h:8,
from include/linux/spinlock.h:89,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from arch/arm64/include/asm/stat.h:12,
from include/linux/stat.h:6,
from include/linux/module.h:10,
from sound/soc/fsl/imx-pcm512x.c:13:
In function 'memcpy',
inlined from 'imx_pcm512x_probe' at sound/soc/fsl/imx-pcm512x.c:429:2:
>> include/linux/string.h:399:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter
399 | __read_overflow2();
| ^~~~~~~~~~~~~~~~~~
vim +/__read_overflow2 +399 include/linux/string.h
6974f0c4555e28 Daniel Micay 2017-07-12 390
6974f0c4555e28 Daniel Micay 2017-07-12 391 __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t size)
6974f0c4555e28 Daniel Micay 2017-07-12 392 {
6974f0c4555e28 Daniel Micay 2017-07-12 393 size_t p_size = __builtin_object_size(p, 0);
6974f0c4555e28 Daniel Micay 2017-07-12 394 size_t q_size = __builtin_object_size(q, 0);
6974f0c4555e28 Daniel Micay 2017-07-12 395 if (__builtin_constant_p(size)) {
6974f0c4555e28 Daniel Micay 2017-07-12 396 if (p_size < size)
6974f0c4555e28 Daniel Micay 2017-07-12 397 __write_overflow();
6974f0c4555e28 Daniel Micay 2017-07-12 398 if (q_size < size)
6974f0c4555e28 Daniel Micay 2017-07-12 @399 __read_overflow2();
6974f0c4555e28 Daniel Micay 2017-07-12 400 }
6974f0c4555e28 Daniel Micay 2017-07-12 401 if (p_size < size || q_size < size)
6974f0c4555e28 Daniel Micay 2017-07-12 402 fortify_panic(__func__);
b008ae4cc74d3a Daniel Axtens 2020-06-03 403 return __underlying_memcpy(p, q, size);
6974f0c4555e28 Daniel Micay 2017-07-12 404 }
6974f0c4555e28 Daniel Micay 2017-07-12 405
:::::: The code at line 399 was first introduced by commit
:::::: 6974f0c4555e285ab217cee58b6e874f776ff409 include/linux/string.h: add the option of fortified string.h functions
:::::: TO: Daniel Micay <danielmicay(a)gmail.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[linux-arm:sa1100 50/57] ERROR: modpost: "ipaq_micro_tx_msg" [arch/arm/mach-sa1100/h3xxx-sleeve.ko] undefined!
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm sa1100
head: 2417136156c193c8d116afb6a86ad49c64dd0ba3
commit: e3d10d4185d0a7c33bf3d7f39dc4dcd52280352f [50/57] ARM: sa1100/h3xxx: sleeve support
config: arm-shannon_defconfig (attached as .config)
compiler: arm-linux-gnueabi-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
git remote add linux-arm git://git.armlinux.org.uk/~rmk/linux-arm
git fetch --no-tags linux-arm sa1100
git checkout e3d10d4185d0a7c33bf3d7f39dc4dcd52280352f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 >>, old ones prefixed by <<):
>> ERROR: modpost: "ipaq_micro_tx_msg" [arch/arm/mach-sa1100/h3xxx-sleeve.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[freescale-fslc:pr/368 11826/19342] include/asm-generic/div64.h:243:22: error: passing argument 1 of '__div64_32' from incompatible pointer type
by kernel test robot
Hi Adrian,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/368
head: 276aedc8f14ef8063b7cdda81d7de372500d1fce
commit: cdfd304a32248295f7d77f61d32137f1bb5bf64e [11826/19342] MLK-24423: sound: soc: fsl: imx pdm: fixed mclk improve voice
config: sh-allmodconfig (attached as .config)
compiler: sh4-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/cdfd304a32248295f7d77f61d3...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/368
git checkout cdfd304a32248295f7d77f61d32137f1bb5bf64e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
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 >>):
In file included from ./arch/sh/include/generated/asm/div64.h:1,
from include/linux/kernel.h:18,
from include/linux/list.h:9,
from include/linux/module.h:9,
from sound/soc/fsl/imx-pdm.c:12:
sound/soc/fsl/imx-pdm.c: In function 'imx_pdm_mic_hw_params':
include/asm-generic/div64.h:226:28: warning: comparison of distinct pointer types lacks a cast
226 | (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
| ^~
sound/soc/fsl/imx-pdm.c:241:16: note: in expansion of macro 'do_div'
241 | mclk_freq = (do_div(sample_rate, 8000) ?
| ^~~~~~
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:9,
from sound/soc/fsl/imx-pdm.c:12:
include/asm-generic/div64.h:239:25: warning: right shift count >= width of type [-Wshift-count-overflow]
239 | } else if (likely(((n) >> 32) == 0)) { \
| ^~
include/linux/compiler.h:77:40: note: in definition of macro 'likely'
77 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
sound/soc/fsl/imx-pdm.c:241:16: note: in expansion of macro 'do_div'
241 | mclk_freq = (do_div(sample_rate, 8000) ?
| ^~~~~~
In file included from ./arch/sh/include/generated/asm/div64.h:1,
from include/linux/kernel.h:18,
from include/linux/list.h:9,
from include/linux/module.h:9,
from sound/soc/fsl/imx-pdm.c:12:
>> include/asm-generic/div64.h:243:22: error: passing argument 1 of '__div64_32' from incompatible pointer type [-Werror=incompatible-pointer-types]
243 | __rem = __div64_32(&(n), __base); \
| ^~~~
| |
| unsigned int *
sound/soc/fsl/imx-pdm.c:241:16: note: in expansion of macro 'do_div'
241 | mclk_freq = (do_div(sample_rate, 8000) ?
| ^~~~~~
include/asm-generic/div64.h:217:38: note: expected 'uint64_t *' {aka 'long long unsigned int *'} but argument is of type 'unsigned int *'
217 | extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor);
| ~~~~~~~~~~^~~~~~~~
cc1: some warnings being treated as errors
vim +/__div64_32 +243 include/asm-generic/div64.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 219
^1da177e4c3f41 Linus Torvalds 2005-04-16 220 /* The unnecessary pointer compare is there
^1da177e4c3f41 Linus Torvalds 2005-04-16 221 * to check for type safety (n must be 64bit)
^1da177e4c3f41 Linus Torvalds 2005-04-16 222 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 223 # define do_div(n,base) ({ \
^1da177e4c3f41 Linus Torvalds 2005-04-16 224 uint32_t __base = (base); \
^1da177e4c3f41 Linus Torvalds 2005-04-16 225 uint32_t __rem; \
^1da177e4c3f41 Linus Torvalds 2005-04-16 226 (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 227 if (__builtin_constant_p(__base) && \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 228 is_power_of_2(__base)) { \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 229 __rem = (n) & (__base - 1); \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 230 (n) >>= ilog2(__base); \
461a5e51060c93 Nicolas Pitre 2015-10-30 231 } else if (__div64_const32_is_OK && \
461a5e51060c93 Nicolas Pitre 2015-10-30 232 __builtin_constant_p(__base) && \
461a5e51060c93 Nicolas Pitre 2015-10-30 233 __base != 0) { \
461a5e51060c93 Nicolas Pitre 2015-10-30 234 uint32_t __res_lo, __n_lo = (n); \
461a5e51060c93 Nicolas Pitre 2015-10-30 235 (n) = __div64_const32(n, __base); \
461a5e51060c93 Nicolas Pitre 2015-10-30 236 /* the remainder can be computed with 32-bit regs */ \
461a5e51060c93 Nicolas Pitre 2015-10-30 237 __res_lo = (n); \
461a5e51060c93 Nicolas Pitre 2015-10-30 238 __rem = __n_lo - __res_lo * __base; \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 239 } else if (likely(((n) >> 32) == 0)) { \
^1da177e4c3f41 Linus Torvalds 2005-04-16 240 __rem = (uint32_t)(n) % __base; \
^1da177e4c3f41 Linus Torvalds 2005-04-16 241 (n) = (uint32_t)(n) / __base; \
^1da177e4c3f41 Linus Torvalds 2005-04-16 242 } else \
^1da177e4c3f41 Linus Torvalds 2005-04-16 @243 __rem = __div64_32(&(n), __base); \
^1da177e4c3f41 Linus Torvalds 2005-04-16 244 __rem; \
^1da177e4c3f41 Linus Torvalds 2005-04-16 245 })
^1da177e4c3f41 Linus Torvalds 2005-04-16 246
:::::: The code at line 243 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[linux-stable-rc:linux-5.4.y 3729/7049] arch/riscv/include/asm/processor.h:68:2: error: implicit declaration of function 'barrier'
by kernel test robot
Hi Arvind,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head: 3909e2374335335c9504467caabc906d3f7487e4
commit: c2c5dc84ac51da90cadcb12554c69bdd5ac7aeeb [3729/7049] compiler.h: fix barrier_data() on clang
config: riscv-allmodconfig (attached as .config)
compiler: riscv64-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/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.4.y
git checkout c2c5dc84ac51da90cadcb12554c69bdd5ac7aeeb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
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 >>):
In file included from include/linux/prefetch.h:15,
from drivers/net/ethernet/intel/i40e/i40e_txrx.c:4:
arch/riscv/include/asm/processor.h: In function 'cpu_relax':
>> arch/riscv/include/asm/processor.h:68:2: error: implicit declaration of function 'barrier' [-Werror=implicit-function-declaration]
68 | barrier();
| ^~~~~~~
cc1: some warnings being treated as errors
vim +/barrier +68 arch/riscv/include/asm/processor.h
7db91e57a0acde Palmer Dabbelt 2017-07-10 59
7db91e57a0acde Palmer Dabbelt 2017-07-10 60
7db91e57a0acde Palmer Dabbelt 2017-07-10 61 static inline void cpu_relax(void)
7db91e57a0acde Palmer Dabbelt 2017-07-10 62 {
7db91e57a0acde Palmer Dabbelt 2017-07-10 63 #ifdef __riscv_muldiv
7db91e57a0acde Palmer Dabbelt 2017-07-10 64 int dummy;
7db91e57a0acde Palmer Dabbelt 2017-07-10 65 /* In lieu of a halt instruction, induce a long-latency stall. */
7db91e57a0acde Palmer Dabbelt 2017-07-10 66 __asm__ __volatile__ ("div %0, %0, zero" : "=r" (dummy));
7db91e57a0acde Palmer Dabbelt 2017-07-10 67 #endif
7db91e57a0acde Palmer Dabbelt 2017-07-10 @68 barrier();
7db91e57a0acde Palmer Dabbelt 2017-07-10 69 }
7db91e57a0acde Palmer Dabbelt 2017-07-10 70
:::::: The code at line 68 was first introduced by commit
:::::: 7db91e57a0acde126a162ababfb1e0ab190130cb RISC-V: Task implementation
:::::: TO: Palmer Dabbelt <palmer(a)dabbelt.com>
:::::: CC: Palmer Dabbelt <palmer(a)dabbelt.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months