Wind River Support Network

HomeDefectsLIN6-10746
Fixed

LIN6-10746 : wrlinux6, fsl-e500mc kernel can't remove the usdpaa module, qman driver build failure

Created: Jan 18, 2016    Updated: Dec 3, 2018
Resolved Date: Feb 18, 2016
Found In Version: 6.0.0.26
Fix Version: 6.0.0.28
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP, Kernel

Description

Customer use WRlinux6 on P2041 board.
They want to remove the following options from kernel menuconfig:
CONFIG_FSL_USDPAA
FSL_PME2

After changing the kernel configuration, the kernel build failed when compile the  qman driver, the error log is : 
/r9c00/V200R009C00_MAIN/build/linux/kernel_project/build-fsl_e500mc/linux/drivers/staging/fsl_qbman/qman_driver.c:592:34: error: 'QBMAN_ANY_PORTAL_IDX' undeclared (first use in this function)
return qm_get_unused_portal_idx(QBMAN_ANY_PORTAL_IDX);

The QBMAN_ANY_PORTAL_IDX is defined in the include/Linux/fsl_usdpaa.h, and it's depends on the FSL_USDPAA:
#ifdef CONFIG_FSL_USDPAA
……
#define QBMAN_ANY_PORTAL_IDX 0xffffffff
……
#endif /* CONFIG_FSL_USDPAA */

They want to resolve this issue, so that they can remove the above usdpaa and PME2 from kernel.

I tried to move the definition out of the:
 #ifdef CONFIG_FSL_USDPAA
  ...
#endif

in the include/Linux/fsl_usdpaa.h, it works.

Please verify if this defect can be accepted and resolved in the following RCPL.

Other Downloads


Live chat
Online