Hi Fugang,
First bad commit (maybe != root cause):
tree:
https://github.com/Freescale/linux-fslc pr/394
head: 0615afea9fc72fd8d47c3ddfb314e0d1d53c51ad
commit: f186a4e65f54a28973c743f8c007b18c1ce95be6 [14893/20126] MLK-24962 net: wireless:
nxp: mxm_wifiex: upgrade to mxm5x16203 release
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 10.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 pr/394
git checkout f186a4e65f54a28973c743f8c007b18c1ce95be6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.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 +441 drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_pcie.c
688b67b2c7220b Fugang Duan 2020-04-19 385
688b67b2c7220b Fugang Duan 2020-04-19 386 /**
688b67b2c7220b Fugang Duan 2020-04-19 387 * @brief This function handles PCIE driver
probe
688b67b2c7220b Fugang Duan 2020-04-19 388 *
688b67b2c7220b Fugang Duan 2020-04-19 389 * @param pdev A pointer to pci_dev
structure
688b67b2c7220b Fugang Duan 2020-04-19 390 * @param id A pointer to pci_device_id
structure
688b67b2c7220b Fugang Duan 2020-04-19 391 *
688b67b2c7220b Fugang Duan 2020-04-19 392 * @return error code
688b67b2c7220b Fugang Duan 2020-04-19 393 */
6b4a83a75fc1dc Fugang Duan 2020-05-28 394 int woal_pcie_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
688b67b2c7220b Fugang Duan 2020-04-19 395 {
688b67b2c7220b Fugang Duan 2020-04-19 396 pcie_service_card *card = NULL;
688b67b2c7220b Fugang Duan 2020-04-19 397 t_u16 card_type = 0;
688b67b2c7220b Fugang Duan 2020-04-19 398 int ret = 0;
688b67b2c7220b Fugang Duan 2020-04-19 399
688b67b2c7220b Fugang Duan 2020-04-19 400 ENTER();
688b67b2c7220b Fugang Duan 2020-04-19 401
6b4a83a75fc1dc Fugang Duan 2020-05-28 402 PRINTM(MINFO, "vendor=0x%4.04X
device=0x%4.04X rev=%d\n", pdev->vendor,
6b4a83a75fc1dc Fugang Duan 2020-05-28 403 pdev->device, pdev->revision);
688b67b2c7220b Fugang Duan 2020-04-19 404
688b67b2c7220b Fugang Duan 2020-04-19 405 /* Preinit PCIE device so allocate PCIE
memory can be successful */
688b67b2c7220b Fugang Duan 2020-04-19 406 if (woal_pcie_preinit(pdev)) {
688b67b2c7220b Fugang Duan 2020-04-19 407 PRINTM(MFATAL, "MOAL PCIE preinit
failed\n");
688b67b2c7220b Fugang Duan 2020-04-19 408 LEAVE();
688b67b2c7220b Fugang Duan 2020-04-19 409 return -EFAULT;
688b67b2c7220b Fugang Duan 2020-04-19 410 }
688b67b2c7220b Fugang Duan 2020-04-19 411
688b67b2c7220b Fugang Duan 2020-04-19 412 card = kzalloc(sizeof(pcie_service_card),
GFP_KERNEL);
688b67b2c7220b Fugang Duan 2020-04-19 413 if (!card) {
688b67b2c7220b Fugang Duan 2020-04-19 414 PRINTM(MERROR, "%s: failed to alloc
memory\n", __func__);
688b67b2c7220b Fugang Duan 2020-04-19 415 ret = -ENOMEM;
688b67b2c7220b Fugang Duan 2020-04-19 416 goto err;
688b67b2c7220b Fugang Duan 2020-04-19 417 }
688b67b2c7220b Fugang Duan 2020-04-19 418
688b67b2c7220b Fugang Duan 2020-04-19 419 card->dev = pdev;
688b67b2c7220b Fugang Duan 2020-04-19 420
688b67b2c7220b Fugang Duan 2020-04-19 421 card_type = woal_update_card_type(card);
688b67b2c7220b Fugang Duan 2020-04-19 422 if (!card_type) {
688b67b2c7220b Fugang Duan 2020-04-19 423 PRINTM(MERROR, "pcie probe:
woal_update_card_type() failed\n");
688b67b2c7220b Fugang Duan 2020-04-19 424 ret = MLAN_STATUS_FAILURE;
688b67b2c7220b Fugang Duan 2020-04-19 425 goto err;
688b67b2c7220b Fugang Duan 2020-04-19 426 }
688b67b2c7220b Fugang Duan 2020-04-19 427 woal_pcie_init(card);
688b67b2c7220b Fugang Duan 2020-04-19 428
6b4a83a75fc1dc Fugang Duan 2020-05-28 429 if (woal_add_card(card,
&card->dev->dev, &pcie_ops, card_type) ==
6b4a83a75fc1dc Fugang Duan 2020-05-28 430 NULL) {
688b67b2c7220b Fugang Duan 2020-04-19 431 woal_pcie_cleanup(card);
688b67b2c7220b Fugang Duan 2020-04-19 432 PRINTM(MERROR, "%s: failed\n",
__func__);
688b67b2c7220b Fugang Duan 2020-04-19 433 ret = -EFAULT;
688b67b2c7220b Fugang Duan 2020-04-19 434 goto err;
688b67b2c7220b Fugang Duan 2020-04-19 435 }
688b67b2c7220b Fugang Duan 2020-04-19 436
688b67b2c7220b Fugang Duan 2020-04-19 437 LEAVE();
688b67b2c7220b Fugang Duan 2020-04-19 438 return ret;
688b67b2c7220b Fugang Duan 2020-04-19 439 err:
688b67b2c7220b Fugang Duan 2020-04-19 440 kfree(card);
688b67b2c7220b Fugang Duan 2020-04-19 @441 if (pci_is_enabled(pdev))
688b67b2c7220b Fugang Duan 2020-04-19 442 pci_disable_device(pdev);
688b67b2c7220b Fugang Duan 2020-04-19 443
688b67b2c7220b Fugang Duan 2020-04-19 444 LEAVE();
688b67b2c7220b Fugang Duan 2020-04-19 445 return ret;
688b67b2c7220b Fugang Duan 2020-04-19 446 }
688b67b2c7220b Fugang Duan 2020-04-19 447
:::::: The code at line 441 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