Wind River Support Network


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:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP, Kernel


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

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:
#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:

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